get_period_summary
Read daily calorie and macro totals against your configured targets for up to 31 diary days, flagging days without food entries so you can compare periods.
Instructions
Read daily kcal and Macro totals alongside the User's configured Daily Targets.
Includes both endpoints, at most 31 Diary Days, and marks days without Food Entries. To compare two periods, call once for each period. Returns numbers without evaluation. Past days reuse Food Entries already read during this server session, for up to twelve hours. Missing days use FatSecret's month totals; today is always fresh. Set refresh=true when the User requests fresh data or says they changed these days in the FatSecret app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_day | Yes | Last Diary Day in the period, inclusive, as YYYY-MM-DD. | |
| refresh | No | ||
| from_day | Yes | First Diary Day in the period, inclusive, as YYYY-MM-DD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Every Diary Day in the period, in chronological order. | |
| to_day | Yes | ||
| from_day | Yes |