Get diary

Everything logged on one day, grouped by meal, with calories and macros per entry and for the day.

GET https://cotlet.dev/api/v1/fitatu/diary

read

Returns the food diary for one day, meal by meal, in the order of your meal scheme. Each entry has an item_id, the amount you logged and its calories, protein, fat and carbohydrates. Totals cover the whole day. Use item_id with delete_diary_item.

Parameters

Parameters: get_diary
NameTypeDescription
date date date Day to read, YYYY-MM-DD. Default: today.

Request

cURL
curl https://cotlet.dev/api/v1/fitatu/diary \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("fitatu", "get_diary")
Node.js
const result = await cotlet.call('fitatu', 'get_diary');
CLI
cotlet call fitatu get_diary

Example response

JSON

{
  "date": "2026-10-13",
  "meals": [
    {
      "meal": "breakfast",
      "items": [
        {
          "item_id": "it_5c20",
          "name": "Rye bread",
          "amount": "2 slices",
          "kcal": 160,
          "protein_g": 6,
          "fat_g": 2,
          "carbs_g": 30
        },
        {
          "item_id": "it_5c21",
          "name": "Egg",
          "amount": "2 pieces",
          "kcal": 144,
          "protein_g": 12,
          "fat_g": 10,
          "carbs_g": 1
        }
      ]
    }
  ],
  "totals": {
    "kcal": 304,
    "protein_g": 18,
    "fat_g": 12,
    "carbs_g": 31
  }
}

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.