Recipe by Id
Retrieve a recipe's information by its Id
Use the recipe
query to retrieve a recipe's details.
Required Argument
Argument Name
Type
Required
id
ID!
True
Available Fields
The following fields will be displayed in the response:
Field Name
Type
Description
id
ID!
The recipe's id
databaseId
String
The database id of the recipe
totalTime
String
Total preparation and cooking time in text format
E.g., 5 minutes
name
String
Name of the recipe
Refer to this documentation to get the complete list of recipe fields you can add to the query response
Simple Example
Field Name
Type
Description
id
ID!
The recipe's id
databaseId
String
The database id of the recipe
totalTime
String
Total preparation and cooking time in text format
E.g., 5 minutes
name
String
Name of the recipe
Refer to this documentation to get the complete list of recipe fields you can add to the query response
Example
Simple Example
{
recipe(id: "UmVjaXBlOmFmMDkzMjQ0LWZkZTMtNGE3Yy1iMTA4LWUxODExNTBkNmNiZQ==") {
name
author
nutritionalInfo {
calories
protein
carbs
fat
}
}
}
Full Example
{
recipe(id: "UmVjaXBlOjA2YjM1ODcwLTNlYTctNDYxZC1iZGMwLWIwNmY1ZGZmOTJhMw==") {
databaseId
totalTime
totalTimeInSeconds
name
rating
numberOfServings
ingredientLines
ingredients {
name
}
language
courses
cuisines
source {
siteUrl
displayName
recipeUrl
}
mainImage
isPremium
isFeatured
author
authorAvatar
ingredientsCount
favoritesCount
isUserFavorite
inUserShoppingList
weightInGrams
servingWeight
isLogged
relativeCalories {
carbs
fat
protein
fat
}
instructions
nutritionalInfo {
calories
protein
carbs
fat
sugar
fiber
saturatedFat
monounsaturatedFat
polyunsaturatedFat
transFat
cholesterol
sodium
potassium
vitaminA
vitaminC
calcium
iron
netcarbs
}
}
}
Last updated
Was this helpful?