FatSecret

App · 4 actions

Find food nutrition details and recipes in the FatSecret catalog.

Actions

ActionWhat it does
Get foodRead food serving sizes and nutrition facts.
Get recipeRead a recipe’s ingredients, directions and nutrition.
Search foodsFind generic and branded foods by keyword.
Search recipesFind recipes by keyword.

Get food

Read food serving sizes and nutrition facts.

Inputs

Food idfood_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 idrecipe_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

QueryquerytextRequired
Text to search for.
Pagepagenumber
First page is 0.At least 0.
Limitlimitnumber
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

QueryquerytextRequired
Text to search for.
Pagepagenumber
First page is 0.At least 0.
Limitlimitnumber
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
}

On this page