Skip to content

Pinterest Pin analytics API: GET /pins/{pin_id}/analytics

When PubNio calls Pinterest's Pin analytics request, GET /pins/{pin_id}/analytics: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

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/refreshes asks 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, and end_date query parameters carry the request. PubNio stores summary_metrics as totals and daily_metrics as 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:read and pins: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:read and user_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.

Sources

Type to search…

↑↓ navigate↵ selectEsc close