Recipe API
The Recipe API provides access to over 200,000 recipes from all cuisines.
From 6,055 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 388ms | 407ms | 475ms | 760ms | 1307ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v3/recipe GET
https://api.api-ninjas.com/v3/recipe
Get a list of recipes for a given recipe name or ingredient(s). Returns a list of recipes. To access more results, use the limit parameter to limit the number of results and the offset parameter to offset results for pagination in multiple API calls.
Parameters
Either title or ingredients parameter must be provided.
titleoptionalRecipe title to search for.
ingredientsoptionalpremium onlyComma-separated list of ingredients to search for.
limitoptionalpremium onlyNumber of results to return. Must be between
1and10. If not set, a default value of1will be used.offsetoptionalpremium onlyNumber of results to offset for pagination.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
Returns an array of recipe objects matching the query. Each object contains the following fields:
titleRecipe title.
ingredientsArray of ingredient strings. Each ingredient contains the name and quantity.
servingsServing information / yield description.
instructionsFull text instructions describing how to prepare the recipe.
nutritionpremium onlyNutrition information object containing calories, fat, saturated fat, protein, sodium, potassium, dietary fiber, cholesterol, sugars, and total carbohydrates.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v3/recipe?title=lentil%20soupHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v3/recipe?title=lentil%20soup" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.