Read a recipe
get_recipeFetch a complete BBC Good Food recipe by ID: get ingredients, cooking steps, timings, rating, and nutrition. Handles subscriber-only recipes and metric/US versions.
Instructions
Read one recipe on BBC Good Food: its ingredients, its steps, its times, its rating and its nutrition. Pass the 'id' a search_recipes row carries, which is the page's own path. A recipe behind the site's subscription comes back with everything except its ingredients and steps, and says so: its page on the site is where a subscriber reads it. The site writes many of its recipes twice, once for its own readers and once restated for readers in the United States, and 'unit_system' chooses which of the two to read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The page's own path, as a search_recipes row carries it. | |
| servings | No | Put the ingredients to this many people. Quantities are then recomputed by this server, not published by the site, and each line says so under 'scaling'. | |
| unit_system | No | Which of the site's own two renditions to read: 'metric' as it writes for its own readers, 'us' as it restates for readers in the United States. Both are the site's words. A recipe it restated nowhere comes back as it published it, said in 'unit_system' and in the notes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | The page. Show this when citing the recipe. | |
| diets | Yes | ||
| notes | Yes | ||
| steps | Yes | Empty when the recipe sits behind the site's subscription. | |
| title | Yes | ||
| yield | Yes | What the ingredients were put to, and what they were put from. | |
| author | Yes | ||
| rating | Yes | 1 to 5. Null when nobody has rated it. | |
| source | Yes | ||
| premium | Yes | True when the recipe sits behind the site's subscription. | |
| nutrition | Yes | ||
| difficulty | Yes | ||
| yield_text | Yes | The site's own wording, such as 'Serves 4 - 6'. | |
| description | Yes | ||
| ingredients | Yes | Empty when the recipe sits behind the site's subscription. | |
| unit_system | Yes | Which of the site's two renditions this answer carries. | |
| yield_count | Yes | The first whole number of that wording. | |
| cook_minutes | Yes | ||
| prep_minutes | Yes | ||
| rating_count | Yes | ||
| nutrition_per | Yes | The site's own wording for the serving. | |
| total_minutes | Yes |