PubNio calls Pinterest’s GET /pins/{pin_id}/analytics (pins/analytics) to read a published Pin’s metrics.
How PubNio calls it
- Post analytics: the analytics sync makes this call for published posts;
POST /api/v1/analytics/refreshesasks for an early read. - PubNio asks only for the metrics the agent requested that Pinterest reports for Pins, over the clamped date range.
- The
metric_types,start_date, andend_datequery parameters carry the request. PubNio storessummary_metricsas totals anddaily_metricsas the day-by-day series, from the entry keyed by the Pin ID, or the first entry when that key is missing. - When none of the requested metrics maps to a Pinterest Pin metric, PubNio sends no request at all.
Scopes
- The pinned spec lists 2 scopes, all required:
boards:readandpins:read. - PubNio’s Pinterest sign-in requests every one of them.
- Before the post analytics sync makes this call, PubNio checks that the account granted
pins:readanduser_accounts:read.
Errors
PubNio has no Pinterest error code pages yet. Provider error codes covers the providers that have them.
Spec and changes
pins/analytics in the pinned spec, revision 5c6c1fc9a6dbdee1df537f3f805f09262c496917.
Refreshed by hand: no weekly change record.
Limits
- Pinterest reports Pin analytics with a delay, so a new Pin reads as pending first.