curl --request POST \
--url https://api.example.com/api/parseRecipe \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'{
"success": true,
"title": "<string>",
"ingredients": [
{
"groupName": "<string>",
"ingredients": [
{
"amount": "<string>",
"units": "<string>",
"ingredient": "<string>"
}
]
}
],
"instructions": [
{}
],
"author": "<string>",
"sourceUrl": "<string>",
"summary": "<string>",
"cuisine": [
{}
],
"servings": "<string>",
"prepTimeMinutes": 123,
"cookTimeMinutes": 123,
"totalTimeMinutes": 123,
"storageGuide": "<string>",
"shelfLife": {
"fridge": 123,
"freezer": 123
},
"platingNotes": "<string>",
"servingVessel": "<string>",
"servingTemp": "<string>",
"method": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retryAfter": 123
}
}Parse recipe data from any recipe website URL using JSON-LD or AI extraction
curl --request POST \
--url https://api.example.com/api/parseRecipe \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'{
"success": true,
"title": "<string>",
"ingredients": [
{
"groupName": "<string>",
"ingredients": [
{
"amount": "<string>",
"units": "<string>",
"ingredient": "<string>"
}
]
}
],
"instructions": [
{}
],
"author": "<string>",
"sourceUrl": "<string>",
"summary": "<string>",
"cuisine": [
{}
],
"servings": "<string>",
"prepTimeMinutes": 123,
"cookTimeMinutes": 123,
"totalTimeMinutes": 123,
"storageGuide": "<string>",
"shelfLife": {
"fridge": 123,
"freezer": 123
},
"platingNotes": "<string>",
"servingVessel": "<string>",
"servingTemp": "<string>",
"method": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retryAfter": 123
}
}/api/parseRecipe endpoint provides a unified interface for parsing recipes from any website. It uses a two-layer approach:
https://example.com/recipe/chocolate-caketrue for successful responsesgroupName and an array of ingredients.Show Ingredient Group Structure
["Italian", "Mediterranean"])"json-ld" (structured data) or "ai" (AI extraction)false for error responsescurl -X POST https://your-domain.com/api/parseRecipe \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.allrecipes.com/recipe/10813/best-chocolate-chip-cookies/"
}'
{
"success": true,
"title": "Best Chocolate Chip Cookies",
"ingredients": [
{
"groupName": "Main ingredients",
"ingredients": [
{
"amount": "2 1/4",
"units": "cups",
"ingredient": "all-purpose flour"
},
{
"amount": "1",
"units": "cup",
"ingredient": "unsalted butter, softened"
},
{
"amount": "2",
"units": "large",
"ingredient": "eggs"
}
]
}
],
"instructions": [
"Preheat oven to 375°F (190°C).",
"In a large bowl, cream together butter and sugars until light and fluffy.",
"Beat in eggs one at a time, then stir in vanilla."
],
"author": "Chef John",
"servings": "48 cookies",
"prepTimeMinutes": 15,
"cookTimeMinutes": 10,
"totalTimeMinutes": 25,
"cuisine": ["American"],
"method": "json-ld"
}
{
"success": false,
"error": {
"code": "ERR_NO_RECIPE_FOUND",
"message": "No complete recipe content found on this page"
}
}
ERR_RATE_LIMIT error, check the retryAfter timestamp to know when you can retry.