Search food

Search the Fitatu database of products and meals, with calories and macros per 100 g or 100 ml.

GET https://cotlet.dev/api/v1/fitatu/foods/search

read

Searches the Fitatu product and meal database, which holds over a million entries from raw basics to restaurant meals. Choose the database country, or limit results to products from Fitatu, the generic entries checked by its dietitians. Pass food_id to log_food. Results are ranked as the app ranks them.

Parameters

Parameters: search_food
NameTypeDescription
query string required string Product or meal name, e.g. "rye bread".
database enum enum Polish, English, Dutch, French, Italian, German or Spanish. Default: the database set on your account.
from_fitatu_only boolean boolean Only generic products from Fitatu, not tied to a brand.
limit integer integer 1 to 50. Default: 20.

Request

cURL
curl "https://cotlet.dev/api/v1/fitatu/foods/search?query=rye+bread" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("fitatu", "search_food", {"query":"rye bread"})
Node.js
const result = await cotlet.call('fitatu', 'search_food', {"query":"rye bread"});
CLI
cotlet call fitatu search_food --data '{"query":"rye bread"}'

Example response

JSON

{
  "foods": [
    {
      "food_id": "fd_88a1",
      "name": "Rye bread",
      "brand": null,
      "kcal_per_100": 259,
      "protein_g_per_100": 8.5,
      "fat_g_per_100": 3.3,
      "carbs_g_per_100": 48,
      "measures": [
        "slice",
        "gram"
      ]
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.