audience_insights
Get audience insights
Changed onGet Audience Insights for an ad account. The response will return insights for 3 types of audiences: the ad account's engaged audience on Pinterest, the ad account's total audience on Pinterest and Pinterest's total audience.
get/ad_accounts/{ad_account_id}/audience_insights
Request
- Base URLhttps://api.pinterest.com/v5
- Auth
- OAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:read
- or OAuth 2Client credentialsToken URLhttps://api.pinterest.com/v3/oauth/access_token/Scopesads:read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ad_account_idstring required
Unique identifier of an ad account.
Query parameters
audience_insight_type'YOUR_TOTAL_AUDIENCE' | 'YOUR_ENGAGED_AUDIENCE' | 'PINTEREST_TOTAL_AUDIENCE' required
Example:YOUR_TOTAL_AUDIENCE
Type of audience insights.
Response
The request has succeeded.
Example response
{
"categories": [
{
"id": "1234567",
"index": 1.2,
"key": "1234567",
"name": "travel",
"ratio": 0.551
}
],
"date": "2022-10-09",
"demographics": {
"ages": [
{
"name": "United States",
"key": "us",
"ratio": 0.551
}
],
"countries": [
{
"name": "United States",
"key": "us",
"ratio": 0.551
}
],
"devices": [
{
"name": "United States",
"key": "us",
"ratio": 0.551
}
],
"genders": [
{
"name": "United States",
"key": "us",
"ratio": 0.551
}
],
"metros": [
{
"name": "United States",
"key": "us",
"ratio": 0.551
}
]
},
"size": 10000,
"size_is_upper_bound": true,
"type": "YOUR_TOTAL_AUDIENCE"
}Changes
- 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
added the non-success response with the status
- info
the
response's property default valueYOUR_TOTAL_AUDIENCEwas removed for the status
- info
- info
the endpoint scheme security
client_credentialswas added to the API
- info