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
ALLentry 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 separateGET /user_accountread suppliesfollower_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:readanduser_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.