Skip to content

Pinterest account analytics API: GET /user_account/analytics

When PubNio calls Pinterest's account analytics request, GET /user_account/analytics: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

PubNio calls Pinterest’s GET /user_account/analytics (user_account/analytics) to read a Pinterest account’s daily metrics.

How PubNio calls it

  • Account analytics: the account sync makes this call; GET /api/v1/workspaces/{workspaceId}/analytics/accounts/{accountId} returns what it stored.
  • PubNio sends the range and only the account metrics it can map, and reads daily values from the response.
  • PubNio reads the ALL entry of the answer, or the first entry when there is none. The follower count is not part of it: when followers are asked for, a separate GET /user_account read supplies follower_count.

Scopes

  • The pinned spec lists one scope: user_accounts:read.
  • PubNio’s Pinterest sign-in requests every one of them.
  • Before the account 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

user_account/analytics in the pinned spec, revision 5c6c1fc9a6dbdee1df537f3f805f09262c496917.

Refreshed by hand: no weekly change record.

Limits

  • Board-level analytics are not read: every board of the account shares these account figures.

Sources

Type to search…

↑↓ navigate↵ selectEsc close