Get nutrition summary
Total and average calories, protein, fat and carbs for a date range, with the gap to your goal.
GET https://cotlet.dev/api/v1/fitatu/nutrition-summary
read
Returns the same balance the Summary view shows: total and average calorie intake and macros over the period, and the difference to your calorie goal. Free Fitatu accounts can read 1 to 7 days. Premium and Premium+AI accounts can read any period. Totals can be underestimated when manufacturers give incomplete data.
Parameters
| Name | Type | Description |
|---|---|---|
| from date required | date | First day, YYYY-MM-DD. |
| to date required | date | Last day, YYYY-MM-DD. |
Request
curl "https://cotlet.dev/api/v1/fitatu/nutrition-summary?from=2026-10-06&to=2026-10-12" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fitatu", "get_nutrition_summary", {"from":"2026-10-06","to":"2026-10-12"}) const result = await cotlet.call('fitatu', 'get_nutrition_summary', {"from":"2026-10-06","to":"2026-10-12"}); cotlet call fitatu get_nutrition_summary --data '{"from":"2026-10-06","to":"2026-10-12"}' Example response
{
"from": "2026-10-06",
"to": "2026-10-12",
"days": 7,
"total_kcal": 14420,
"average_kcal": 2060,
"goal_kcal": 2150,
"vs_goal_kcal": -630,
"protein_g": 880,
"fat_g": 484,
"carbs_g": 1636
}