# Structured Recipe Extraction API

Extract structured recipe metadata by page URL via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, url, and retrieve structured data including recipe name, original ingredient lines, parsed ingredient quantity, original ingredient text, and source total duration for recipe catalogue, and source navigation.

Documentation: https://openany.si/market/apis/recipes/recipes-structured-recipe-extraction-api/?offering=3340ba33-9a92-4777-8e24-1375bd7e7512
API ID: 3340ba33-9a92-4777-8e24-1375bd7e7512
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/recipes/v1/recipe
Page update time: 2026-12-03T02:45:54.672Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:45:53.593Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits used",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Structured Recipe Extraction API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Recipe page URL."
        },
        "country": {
          "type": "string",
          "description": "Country to read the page from (ISO-2), for region-locked sites."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "url"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "authors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cached": {
      "type": "boolean"
    },
    "category": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cook_time": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "cuisine": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "description": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "image": {
      "type": "string"
    },
    "ingredients": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ingredients_parsed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "item": {
            "type": "string"
          },
          "note": {
            "type": "null"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "type": "string"
          },
          "unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "name": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "nutrition": {
      "type": "object",
      "properties": {
        "calories": {
          "type": "string"
        },
        "carbohydrateContent": {
          "type": "string"
        },
        "fatContent": {
          "type": "string"
        },
        "proteinContent": {
          "type": "string"
        },
        "saturatedFatContent": {
          "type": "string"
        },
        "sodiumContent": {
          "type": "string"
        },
        "sugarContent": {
          "type": "string"
        }
      }
    },
    "prep_time": {
      "type": "string"
    },
    "published_at": {
      "type": "string"
    },
    "rating": {
      "type": "null"
    },
    "review_count": {
      "type": "null"
    },
    "site": {
      "type": "string"
    },
    "steps_count": {
      "type": "integer"
    },
    "total_time": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "video": {
      "type": "null"
    },
    "yield": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/recipes/v1/recipe?output=json&raw=0&url=https%3A%2F%2Fwww.bbcgoodfood.com%2Frecipes%2Feasy-pancakes' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "authors": [
    "Cassie Best"
  ],
  "cached": false,
  "category": [
    "Breakfast, Brunch, Main course"
  ],
  "cook_time": "PT20M",
  "credits_used": 1,
  "cuisine": [
    "British"
  ],
  "description": "Learn how to make the perfect pancakes every time with our foolproof easy crêpe recipe – elaborate flip optional",
  "fetched_at": "2026-11-19T12:19:52.856Z",
  "image": "https://images.immediate.co.uk/production/volatile/sites/30/2020/08/recipe-image-legacy-id-1273477_8-ad36e3b.jpg?resize=440,400",
  "ingredients": [
    "100g plain flour",
    "2 large eggs",
    "300ml milk",
    "1 tbsp sunflower or vegetable oil plus a little extra for frying",
    "lemon wedges to serve (optional)",
    "caster sugar to serve (optional)"
  ],
  "ingredients_parsed": [
    {
      "item": "plain flour",
      "note": null,
      "quantity": 100,
      "quantity_text": "100",
      "text": "100g plain flour",
      "unit": "g"
    },
    {
      "item": "eggs",
      "note": null,
      "quantity": 2,
      "quantity_text": "2",
      "text": "2 large eggs",
      "unit": "large"
    },
    {
      "item": "milk",
      "note": null,
      "quantity": 300,
      "quantity_text": "300",
      "text": "300ml milk",
      "unit": "ml"
    },
    {
      "item": "sunflower or vegetable oil plus a little extra for frying",
      "note": null,
      "quantity": 1,
      "quantity_text": "1",
      "text": "1 tbsp sunflower or vegetable oil plus a little extra for frying",
      "unit": "tbsp"
    },
    {
      "item": "lemon wedges to serve (optional)",
      "note": null,
      "quantity": null,
      "quantity_text": null,
      "text": "lemon wedges to serve (optional)",
      "unit": null
    },
    {
      "item": "caster sugar to serve (optional)",
      "note": null,
      "quantity": null,
      "quantity_text": null,
      "text": "caster sugar to serve (optional)",
      "unit": null
    }
  ],
  "keywords": [
    "Cassie Best",
    "Cook school",
    "Crepe",
    "Crêpes",
    "easy pancakes",
    "Flip",
    "Flipping",
    "healthy pancakes",
    "How to make pancakes",
    "Make ahead",
    "Pancake day",
    "Pancake filling",
    "Shrove Tuesday",
    "Skills",
    "thin pancakes"
  ],
  "name": "Easy pancakes",
  "note": "The method's steps are on the recipe page (url); they are counted here, not copied.",
  "nutrition": {
    "calories": "61 calories",
    "carbohydrateContent": "7 grams carbohydrates",
    "fatContent": "2 grams fat",
    "proteinContent": "3 grams protein",
    "saturatedFatContent": "1 grams saturated fat",
    "sodiumContent": "0.1 milligram of sodium",
    "sugarContent": "1 grams sugar"
  },
  "prep_time": "PT10M",
  "published_at": "2025-03-31T17:35:17+01:00",
  "rating": null,
  "review_count": null,
  "site": "bbcgoodfood.com",
  "steps_count": 5,
  "total_time": "PT30M",
  "url": "https://www.bbcgoodfood.com/recipes/easy-pancakes",
  "video": null,
  "yield": "Makes 12"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/recipes/recipes-structured-recipe-extraction-api/?offering=3340ba33-9a92-4777-8e24-1375bd7e7512

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
