Get account analytics
get_account_analyticsPinterest performance metrics for a whole connected account over a date range.
Use for account-level reporting (all pins, not only ones published
through PinBridge). For one pin use get_pin_analytics; for publish
headroom use get_rate_meter.
Returns account_id, start_date, end_date, provider_mode, totals,
daily rows (empty with include_daily=false; pass that when the totals
are enough), and source (stored or live) with data_as_of for stored
reads. Fails with not_found for an unknown account and with
token_expired / scope_missing when the Pinterest connection needs a
reconnect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Where to read from. auto (default): PinBridge's nightly stored history when it covers the range, else Pinterest. stored: history only (up to 366 days). live: always ask Pinterest (up to 90 days, counts against the read limit). | |
| metrics | No | Comma-separated Pinterest metric types, e.g. IMPRESSION,SAVE,PIN_CLICK,OUTBOUND_CLICK. Default: the organic engagement set. | |
| end_date | No | Inclusive end, YYYY-MM-DD. Default: today. Up to 366 days from stored history, 90 days when read live from Pinterest. | |
| account_id | Yes | UUID of a connected Pinterest account, from list_pinterest_accounts. | |
| start_date | No | Inclusive start, YYYY-MM-DD. Default: 30 days ago. | |
| include_daily | No | false: return only the range totals, with an empty daily list. Use it when the totals are all you need, e.g. over 90 days. Default: true. |