FatSecret
App · 4 actions
Find food nutrition details and recipes in the FatSecret catalog.
Actions
| Action | What it does |
|---|---|
| Get food | Read food serving sizes and nutrition facts. |
| Get recipe | Read a recipe’s ingredients, directions and nutrition. |
| Search foods | Find generic and branded foods by keyword. |
| Search recipes | Find recipes by keyword. |
Get food
Read food serving sizes and nutrition facts.
Inputs
- Food id
food_idtextRequired - The ID from Search foods.
Outputs
dataobject- Data.
has_moretrue/false- Whether another page is available.
next_cursortext- Continuation value for the next page, when available.
Example output
{
"data": {
"food": {
"food_description": "Per 100g: 52 kcal",
"food_id": "4501",
"food_name": "Apple",
"food_type": "Generic"
}
},
"has_more": false,
"next_cursor": null
}Get recipe
Read a recipe’s ingredients, directions and nutrition.
Inputs
- Recipe id
recipe_idtextRequired - The ID from Search recipes.
Outputs
dataobject- Data.
has_moretrue/false- Whether another page is available.
next_cursortext- Continuation value for the next page, when available.
Example output
{
"data": {
"recipe": {
"recipe_description": "Oats and apple.",
"recipe_id": "154",
"recipe_name": "Apple oatmeal"
}
},
"has_more": false,
"next_cursor": null
}Search foods
Find generic and branded foods by keyword.
Inputs
- Query
querytextRequired - Text to search for.
- Page
pagenumber - First page is 0.At least 0.
- Limit
limitnumber - Maximum results per page.From 1 to 50.
Outputs
dataobject- Data.
has_moretrue/false- Whether another page is available.
next_cursortext- Continuation value for the next page, when available.
Example output
{
"data": {
"foods": {
"food": [
{
"food_description": "Per 100g: 52 kcal",
"food_id": "4501",
"food_name": "Apple",
"food_type": "Generic"
}
],
"max_results": "20",
"page_number": "0",
"total_results": "1"
}
},
"has_more": false,
"next_cursor": null
}Search recipes
Find recipes by keyword.
Inputs
- Query
querytextRequired - Text to search for.
- Page
pagenumber - First page is 0.At least 0.
- Limit
limitnumber - Maximum results per page.From 1 to 50.
Outputs
dataobject- Data.
has_moretrue/false- Whether another page is available.
next_cursortext- Continuation value for the next page, when available.
Example output
{
"data": {
"recipes": {
"max_results": "20",
"page_number": "0",
"recipe": [
{
"recipe_description": "Oats and apple.",
"recipe_id": "154",
"recipe_name": "Apple oatmeal"
}
],
"total_results": "1"
}
},
"has_more": false,
"next_cursor": null
}