Ingredient Search
GET {{baseUrl}}/food/ingredients/search?query=burger&addChildren=true&minProteinPercent=10&maxProteinPercent=90&minFatPercent=10&maxFatPercent=90&minCarbsPercent=10&maxCarbsPercent=90&metaInformation=false&intolerances=egg&sort=calories&sortDirection=asc&offset=394&number=10
Search for simple whole foods (e.g. fruits, vegetables, nuts, grains, meat, fish, dairy etc.).
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
query | string | The (natural language) search query. | |
addChildren | boolean | Whether to add children of found foods. | |
minProteinPercent | number | The minimum percentage of protein the food must have (between 0 and 100). | |
maxProteinPercent | number | The maximum percentage of protein the food can have (between 0 and 100). | |
minFatPercent | number | The minimum percentage of fat the food must have (between 0 and 100). | |
maxFatPercent | number | The maximum percentage of fat the food can have (between 0 and 100). | |
minCarbsPercent | number | The minimum percentage of carbs the food must have (between 0 and 100). | |
maxCarbsPercent | number | The maximum percentage of carbs the food can have (between 0 and 100). | |
metaInformation | boolean | Whether to return more meta information about the ingredients. | |
intolerances | string | A comma-separated list of intolerances. All recipes returned must not contain ingredients that are not suitable for people with the intolerances entered. See a full list of supported intolerances. | |
sort | string | The strategy to sort recipes by. See a full list of supported sorting options. | |
sortDirection | string | The direction in which to sort. Must be either 'asc' (ascending) or 'desc' (descending). | |
offset | number | The number of results to skip (between 0 and 900). | |
number | number | The maximum number of items to return (between 1 and 100). Defaults to 10. |
RESPONSES
status: OK
{"results":[{"id":19400,"name":"banana chips","image":"banana-chips.jpg"},{"id":93779,"name":"banana liqueur","image":"limoncello.jpg"}],"offset":0,"number":2,"totalResults":13}