---
search:
  tags:
    - Foods
    - GET
seo:
  description: >-
    A food the account created, uses (in its meal plans, exchange groups or
    recipes) or got… Reference for the GET /foods/{food_id} endpoint in the
    Almendra API.
sidebar:
  label: Get a food
  badge: GET
title: Get a food
type: openapi-operation
---
A food the account created, uses (in its meal plans, exchange groups or recipes) or got from `GET /foods` in the last 30 days, with every nutrient per 100 g and its household measures. Also answers recipes. Any other food answers 404: the food database can only be reached through the limited search.

Requires the `library:read` permission.

`GET /foods/{food_id}`

**Responses**

- `200` — Food
- `400` — Invalid path parameter, query parameter or request body
- `401` — Missing or invalid API key
- `403` — The account behind the API key has no active paid plan, or the key lacks the permission this operation needs
- `404` — Food not found
- `429` — Rate limit exceeded (600 requests per 60 seconds); retry after \`Retry-After\` seconds
- `500` — Unexpected server error

Response example, 200:

```json
{
  "_id": "string",
  "name": "Pechuga de pollo, cocida",
  "type": "food",
  "source": "CENAN (2017)",
  "category": "string",
  "createdByThisAccount": true,
  "caloriesKcal": 165,
  "proteinG": 31,
  "carbsG": 0,
  "fatG": 3.6,
  "nutrients": {
    "fiber_g": 0,
    "sodium_mg": 74,
    "iron_mg": 1
  },
  "measures": [
    {
      "amount": 1,
      "description": "taza",
      "grams": 240
    }
  ]
}
```
