Get user account top video pins analytics
Changed onGets analytics data about a user's top video pins (limited to the top 50).
- By default, the "operation user_account" is the token user_account.
Optional: Business Access: Specify an ad_account_id to use the owner of that ad_account as the "operation user_account".
Request
- Base URLhttps://api.pinterest.com/v5
- Auth
- OAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopespins:read, user_accounts:read
- or OAuth 2Client credentialsToken URLhttps://api.pinterest.com/v3/oauth/access_token/Scopespins:read, user_accounts:read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Metric report start date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days back from today.
Metric report end date (UTC). Format: YYYY-MM-DD. Cannot be more than 90 days past start_date.
Sort metric for top video pins analytics.
Specify sorting order for video metrics
Filter on Pins that match your claimed domain.
Pin formats to get data for, default is all.
Apps or devices to get data for, default is all.
Filter to paid or organic data. Default is all.
Filter to activity from Pins created and saved by your, or activity created and saved by others from your claimed accounts
Metric types to get video data for, default is all.
Number of pins to include, default is 10. Max is 50.
Get metrics for pins created in the last "n" days.
Unique identifier of an ad account.
Response
The request has succeeded.
Changes
- info
for the
queryrequest parametercreated_in_last_n_days, the type was generalized fromintegertonumber - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- breaking
removed the enum value
PRODUCTfrom thequeryrequest parameterpin_format - breaking
removed the enum value
REGULARfrom thequeryrequest parameterpin_format - breaking
removed the enum value
VIDEOfrom thequeryrequest parameterpin_format - info
the endpoint scheme security
client_credentialswas added to the API
- breaking