- This API contains over 6500 recipes from all around India.
- API Endpoint:
https://indian-food-recipe-graphql-api.herokuapp.com/graphql
- Try Quering the API at Explorer
type Query {
recipe: [Recipe!]!
random: [Recipe!]!
find(srno: String!): [Recipe!]!
findByName(recipeName: String!): [Recipe!]!
}
type Recipe {
id: ID!
Srno: String
RecipeName: String
TranslatedRecipeName: String
Ingredients: String
TranslatedIngredients: String
PrepTimeInMins: String
CookTimeInMins: String
TotalTimeInMins: String
Servings: String
Cuisine: String
Course: String
Diet: String
Instructions: String
TranslatedInstructions: String
URL: String
}
Get details of all Recipes:
query Query {
recipe {
TranslatedRecipeName
TranslatedIngredients
TotalTimeInMins
Cuisine
Servings
Course
Diet
TranslatedInstructions
}
}
Get a random Indian Recipe:
query Query {
random {
id
Srno
TranslatedRecipeName
RecipeName
Ingredients
TranslatedIngredients
PrepTimeInMins
CookTimeInMins
TotalTimeInMins
Servings
Cuisine
Diet
Course
Instructions
TranslatedInstructions
URL
}
}
query Query($srno: String!) {
find(srno: $srno) {
//recipe fields you need.
}
}
query Query($recipeName: String!) {
findByName(recipeName: $recipeName) {
//recipe fields you need.
}
}