Get multiple Pin analytics
Changed onThis endpoint is currently in beta and not available to all apps. Learn more.
Get analytics for multiple pins owned by the "operation user_account" - or on a group board that has been shared with this account.
- The maximum number of pins supported in a single request is 100.
- By default, the "operation user_account" is the token user_account.
Optional: Business Access: Specify an ad_account_id (obtained via List ad accounts) to use the owner of that ad_account as the "operation user_account". In order to do this, the token user_account must have one of the following Business Access roles on the ad_account:
- For Pins on public or protected boards: Admin, Analyst.
- For Pins on secret boards: Admin.
If Pin was created before 2023-03-20 lifetime metrics will only be available for Video and Idea Pin formats. Lifetime metrics are available for all Pin formats since then.
Request
- Base URLhttps://api.pinterest.com/v5
- Auth
- OAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesboards:read, pins:read
- or OAuth 2Client credentialsToken URLhttps://api.pinterest.com/v3/oauth/access_token/Scopesboards:read, pins:read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
List of Pin IDs.
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.
Apps or devices to get data for, default is all.
Pin metric types to get data for.
Unique identifier of an ad account.
Response
The request has succeeded.
Changes
- warning
for the
queryrequest parametermetric_types, the type of propertyitems/changed from no type tostring - info
added the enum value
IMPRESSIONto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
OUTBOUND_CLICKto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
PIN_CLICKto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
PROFILE_VISITto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
QUARTILE_95_PERCENT_VIEWto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
SAVEto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
SAVE_RATEto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
TOTAL_COMMENTSto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
TOTAL_REACTIONSto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
USER_FOLLOWto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
VIDEO_10S_VIEWto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
VIDEO_AVG_WATCH_TIMEto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
VIDEO_MRC_VIEWto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
VIDEO_STARTto the propertyitems/of thequeryrequest parametermetric_types - info
added the enum value
VIDEO_V50_WATCH_TIMEto the propertyitems/of thequeryrequest parametermetric_types - info
added the non-success response with the status
- warning
- breaking
the
queryrequest parameterpin_idsbecame required - info
the endpoint scheme security
client_credentialswas added to the API - info
added the enum value
PROFILE_VISITto the propertyitems/oneOf[subschema #1]/of thequeryrequest parametermetric_types - info
added the enum value
USER_FOLLOWto the propertyitems/oneOf[subschema #1]/of thequeryrequest parametermetric_types
- breaking