Migration Guide
Allrecipes & Food.com API Alternative: Recipe API vs Scraping
Allrecipes and Food.com don't offer public commercial APIs, and scraping schema.org/Recipe markup turns your product team into full-time parser maintainers. Here is how to replace a scraper or SERP pipeline with one consistent recipe and nutrition API.
Why scraping breaks recipe apps
Scraping vs Recipe API at a glance
Swipe table horizontally to compare →
| Question | Scraping / SERP APIs | Recipe API |
|---|---|---|
| Schema consistency | Every food blog formats schema.org/Recipe differently — mixed strings, missing yields, broken ISO durations, or HTML inside steps. | One strict JSON contract across 25,000+ recipes: typed quantities, units, grouped ingredients, and phased steps. |
| Nutrition & protein data | Often missing, unverified, or limited to calories. Micronutrients and per-ingredient sources are rarely present. | 32 per-serving nutrients calculated from USDA FoodData Central data on every recipe, linked by ingredient UUID. |
| Commercial & attribution risk | Consumer recipe sites (Allrecipes, Food.com, NYT) do not grant commercial scraping or republishing rights. | No attribution required on any plan. Commercial usage and caching rights start on Developer ($29/month). |
| Maintenance overhead | DOM changes, bot blocks, proxy rotation, and NLP ingredient parsers break continuously in production. | Stable REST API (GET /api/v1/recipes) with 60–300 req/min rate limits and predictable per-call metering. |
Replace your scraper in two API calls
Query the catalogue with GET /api/v1/recipes using text, cuisine, dietary, calorie, and protein filters, then fetch the full structured object with GET /api/v1/recipes/{id}. Each call uses one request.
# Search 25,000+ structured recipes with macro + dietary filters (1 request) curl -s "https://recipe-api.com/api/v1/recipes?q=chili&max_calories=600&min_protein=30&per_page=5" \ -H "X-API-Key: $RECIPE_API_KEY" # Fetch the full recipe with grouped ingredients, steps, and 32 nutrients (1 request) curl -s "https://recipe-api.com/api/v1/recipes/a066f472-ed0c-46ea-8e2c-a0053c3183a8" \ -H "X-API-Key: $RECIPE_API_KEY"
{
"data": {
"id": "a066f472-ed0c-46ea-8e2c-a0053c3183a8",
"name": "Texas Chili con Carne",
"meta": {
"active_time": "PT20M",
"passive_time": "PT1H40M",
"total_time": "PT2H",
"yield_count": 4,
"serving_size_g": 300
},
"dietary": {
"flags": ["Gluten-Free", "Dairy-Free", "Egg-Free", "Nut-Free"],
"not_suitable_for": []
},
"ingredients": [
{
"group_name": "Chili Base",
"items": [
{
"name": "stewing beef",
"quantity": 910,
"unit": "g",
"preparation": "cut into 1.3cm (1/2 inch) cubes",
"ingredient_id": "09f2eef4-739a-4fca-8b63-97d697257990",
"nutrition_source": "USDA FoodData Central"
}
]
}
],
"nutrition": {
"per_serving": {
"calories": 569.02,
"protein_g": 44.14,
"carbohydrates_g": 5.59,
"fat_g": 41.99,
"iron_mg": 7.16
},
"sources": ["USDA FoodData Central"]
}
}
}Mapping schema.org/Recipe to Recipe API
If your backend already ingests scraped schema.org/Recipe JSON-LD, every field maps cleanly — and you can delete your ingredient string parser. Inspect every nested key on the full schema reference.
Swipe table horizontally →
| Scraped schema.org/Recipe | Recipe API JSON | What you stop writing |
|---|---|---|
recipeIngredient: string[] | ingredients[].items[] { name, quantity, unit, preparation, ingredient_id } | No regex parsing of '2 lbs stewing beef, cubed' — quantities, units, and stable UUIDs are pre-structured. |
recipeInstructions: string | HowToStep[] | instructions[] { step_number, phase, text, structured } | Every step includes phase (prep/cook/finish), action verb, temperatures, durations, and doneness cues. |
nutrition: NutritionInformation (partial strings) | nutrition.per_serving (32 typed numeric keys) | Numeric values (number | null) ready for filtering, summing, and chart rendering without stripping 'g' or 'kcal'. |
suitableForDiet (rarely populated) | dietary.flags & dietary.not_suitable_for | Filter directly at query time with ?dietary=Gluten-Free,Vegan. |
recipeYield: '4 to 6 servings' | 4 | meta.yields, meta.yield_count, meta.serving_size_g | Numeric yield_count makes scaling servings deterministic. |
Frequently asked questions
Related guides
Stop maintaining recipe scrapers
Test 25,000+ structured recipes with 32 USDA-backed nutrients on the free evaluation tier — 50 requests, no card.