# FatSecret

> Find food nutrition details and recipes in the FatSecret catalog.

App · 4 actions. Web page: https://docs.lodol.com/docs/integrations/fatsecret

## Actions

### Get food

Read food serving sizes and nutrition facts.

**Inputs**

- Food id (`food_id`, text, required): The ID from Search foods.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "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_id`, text, required): The ID from Search recipes.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "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 (`query`, text, required): Text to search for.
- Page (`page`, number): First page is 0. At least 0.
- Limit (`limit`, number): Maximum results per page. From 1 to 50.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "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 (`query`, text, required): Text to search for.
- Page (`page`, number): First page is 0. At least 0.
- Limit (`limit`, number): Maximum results per page. From 1 to 50.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "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
}
```
