{ "opencollection": "1.0.0", "info": { "name": "Pinterest Resources API", "version": "5.13.0" }, "items": [ { "info": { "name": "Resources", "type": "folder" }, "items": [ { "info": { "name": "Get ad accounts countries", "type": "http" }, "http": { "method": "GET", "url": "https://api.pinterest.com/v5/resources/ad_account_countries", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.pinterest.com/oauth/", "accessTokenUrl": "https://api.pinterest.com/v5/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get Ad Accounts countries" }, { "info": { "name": "Get available metrics' definitions", "type": "http" }, "http": { "method": "GET", "url": "https://api.pinterest.com/v5/resources/delivery_metrics", "params": [ { "name": "report_type", "value": "", "type": "query", "description": "Report type." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.pinterest.com/oauth/", "accessTokenUrl": "https://api.pinterest.com/v5/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get the definitions for ads and organic metrics available across both synchronous and asynchronous report endpoints.\nThe `display_name` attribute will match how the metric is named in our native tools like Ads Manager.\nSee Organic Analytics and Ads Analytics for more information." }, { "info": { "name": "Get lead form questions", "type": "http" }, "http": { "method": "GET", "url": "https://api.pinterest.com/v5/resources/lead_form_questions", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.pinterest.com/oauth/", "accessTokenUrl": "https://api.pinterest.com/v5/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get a list of all lead form question type names. Some questions might not be used.\n\nThis endpoint is currently in beta and not available to all apps. Learn more." }, { "info": { "name": "Get metrics ready state", "type": "http" }, "http": { "method": "GET", "url": "https://api.pinterest.com/v5/resources/metrics_ready_state", "params": [ { "name": "date", "value": "", "type": "query", "description": "Analytics reports request date (UTC). Format: YYYY-MM-DD" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.pinterest.com/oauth/", "accessTokenUrl": "https://api.pinterest.com/v5/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Learn whether conversion or non-conversion metrics are finalized and ready to query." }, { "info": { "name": "Get interest details", "type": "http" }, "http": { "method": "GET", "url": "https://api.pinterest.com/v5/resources/targeting/interests/:interest_id", "params": [ { "name": "interest_id", "value": "", "type": "path", "description": "Unique identifier of an interest." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.pinterest.com/oauth/", "accessTokenUrl": "https://api.pinterest.com/v5/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

Get details of a specific interest given interest ID.

Click here for a spreadsheet listing interests and their IDs.

" }, { "info": { "name": "Get targeting options", "type": "http" }, "http": { "method": "GET", "url": "https://api.pinterest.com/v5/resources/targeting/:targeting_type", "params": [ { "name": "targeting_type", "value": "", "type": "path", "description": "Public targeting type." }, { "name": "client_id", "value": "", "type": "query", "description": "Client ID." }, { "name": "oauth_signature", "value": "", "type": "query", "description": "Oauth signature" }, { "name": "timestamp", "value": "", "type": "query", "description": "Timestamp" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.pinterest.com/oauth/", "accessTokenUrl": "https://api.pinterest.com/v5/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "

You can use targeting values in ads placement to define your intended audience.

Targeting metrics are organized around targeting specifications.

For more information on ads targeting, see Audience targeting.

\n

Sample return:

 [{"36313": "Australia: Moreton Bay - North", "124735": ""
        }
      ]
    }
  ],
  "bundled": true
}