Get answers to questions about using the Pinterest API.
Each API endpoint has associated scopes, which define its required user permissions. Your token may not have the appropriate scopes for the endpoint you want to contact.
If you are not certain what scopes your token provides, use the Token Debugger tool to find out. To add scopes, you will need to generate a brand new token with those scopes through the Authorization Code or Client Credentials grant type. My access or refresh token is not working. What should I do?
Take the following actions to address problems with a token.
Check and address token-specific issues
Use the Token Debugger tool to see why your refresh token is not working. Common issues include: Token is expired or invalid.
User session is expired or invalid. For example, your user may be logged out of their token session because of a changed password.
Token has insufficient scopes. See the
FAQ about insufficient scopes.
For these common issues, do the following:
If generating new tokens does not correct the problem, file a support ticket:
Go to
Get more help in Help Center.
Select Pinterest API and Developer Tools.
Select Developer site and click Continue.
Select API Technical Support and click Continue.
Enter requested information in the forms.
Check your app status or account status
Check with your Pinterest representative to see if your app has been deactivated or your account has been revoked. Or file a support ticket in inquire.
Go to
Get more help in Help Center.
Select Pinterest API and Developer Tools.
Select Developer site and click Continue.
Select API Technical Support and click Continue.
Enter requested information in the forms.
What should I do if I see a data discrepancy between an API response and Ads Manager?
Take the following actions to address the main reasons for data discrepancies between the API and Ads Manager:
Match conversion settings
Make sure you are using the same conversion settings in Ads Manager as when you fetch data from an API endpoint, such as . Note how the following enums in the parameter correspond to Conversion date settings in Ads Manager: Note how the following parameters and enums correspond to three sets of numeric values in Conversion window settings:
Make sure the and values in your analytics endpoints match the date range filter settings in Ads reporting. If you do not see certain values returned by an analytics endpoint, check whether the corresponding Ads Manager report contains values of 0.
Analytics endpoints only return arrays with data. If a specific campaign has only values of 0 returned for all requested data, it will not be included in the response.
If you still see discrepancies after taking these actions, file a Support ticket:
Go to
Get more help in Help Center.
Select Pinterest API and Developer Tools.
Select Developer site and click Continue.
Select API Technical Support and click Continue.
Enter requested information in the forms.
Some data is missing in the response from an analytics endpoint. What should I do?
If you do not see certain data returned by an analytics endpoint, check whether the corresponding Ads Manager report contains values of 0.
Analytics endpoints only return arrays with data. If a specific campaign has only values of 0 returned for all requested data, it will not be included in the response.
How do I access the multiple Pin analytics?
How can I check whether I am close to exceeding a rate limit?
To monitor your request tally against your rate limit, set up verbose output with your API requests, so that you can view rate limit information in the response header. See Manage rate limits. How do I transition from a testing API environment to a production environment?
When you are ready to move on from Sandbox to a production environment, take the following actions, as detailed in the Sandbox guide: I expect the Get Pin endpoint to return a video URL, but it returns "null". What should I do?
First, make sure your app has access to the video URL by verifying the following:
Your organization has access to the
feature, which is
restricted. Ask your Pinterest representative if you are not sure.
Your access token includes the
scope. Use
Token Debugger to check your scopes. If necessary, generate a new token with the
scope.
Your app has been granted access to the video URL. If the asset belongs to a partner, use the API to
see if you have access and
request it if necessary.
If keeps returning for after you have taken the preceding actions, contact your Pinterest representitive or reach out to Support for help: Go to
Get more help in Help Center.
Select Pinterest API and Developer Tools.
Select API Technical Support and click Continue.
Select Pinterest API v5 and click Continue.
Enter or provide requested information in each form, clicking Continue to advance to the next form. Then click Submit on the last form.
To see your campaign, ad group, or ads analytics by country or metro zone or code, set the parameter to when calling an analytics endpoint. A successful request returns the code and the associated analytics. Learn more about seeing zone and code information. How do I publish ad-only Pins?
To publish ad-only Pins, do the following:
Create an ad using the
endpoint.
Specify the appropriate
values for the Pins you want to publish.
What should I do to debug persistent internal server errors?
If your API requests return internal server errors, file a Support ticket to have them addressed and resolved:
Go to
Get more help in Help Center.
Select Pinterest API and Developer Tools.
Select Developer site and click Continue.
Select App management support and click Continue.
Enter or provide requested information in each form, clicking Continue to advance to the next form. Then click Submit on the last form.
What are the available dimensions for pulling geographic data via Pinterest API?
What do integer values mean for entity statuses in reports?
The and reporting columns return integer values that map to statuses:
Note that campaign management endpoints , , and return equivalent string enum values , , and for the response field.
Entity status is different from the field returned by the campaign management
endpoints. Entity status represents the state explicitly assigned to an entity: ,
, or . It corresponds to the field returned by campaign management
endpoints. The separate field represents the entity's computed delivery
state, considering its entity status together with factors such as scheduling, budget,
parent-entity status, and review status. Possible fields are , ,
, , and . Entity status is different from the field returned by the campaign management
endpoints. Entity status represents the state explicitly assigned to an entity: ,
, or . It corresponds to the field returned by campaign management
endpoints. The separate field represents the entity's computed delivery
state, considering its entity status together with factors such as scheduling, budget,
parent-entity status, and review status. Possible fields are , ,
, , and .
Endpoints that expose CAMPAIGN_ENTITY_STATUS
at the , , and
report levels
Endpoints that expose AD_GROUP_ENTITY_STATUS