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
| Name | Type | Description |
|---|---|---|
| date date | date | Day to read, YYYY-MM-DD. Default: today. |
Request
curl https://cotlet.dev/api/v1/fitatu/diary \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fitatu", "get_diary") const result = await cotlet.call('fitatu', 'get_diary'); cotlet call fitatu get_diary Example response
{
"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
}
}