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.
For these common issues, do the following:
If generating new tokens does not correct the problem, file a support ticket:
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.
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: Conversion date enums mapping| Enums | Corresponding Ads Manager conversion date settings |
|---|
(Default. Point in time when the user interacts with the ad.) | Date of ad event |
(Point in time when conversion event occurs.) | Date of conversion event |
Note how the following parameters and enums correspond to three sets of numeric values in Conversion window settings:
Conversion window enums mapping| Parameter | Description | Default enum | Corresponding Conversion window value |
|---|
| Number of days to use as the conversion attribution window for a Pin click action. | 30 | "click" (First set of numerals: 30/30/1) |
| Number of days to use as the conversion attribution window for an engagement action, such as
save, closeup, link click, or carousel card swipe. | 30 | "engagement" (Second set of numerals: 30/30/1) |
| Number of days to use as the conversion attribution window for a view action. | 1 | "view" (Third set of numerals: 30/30/1) |
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:
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.
If keeps returning for after you have taken the preceding actions, contact your Pinterest representitive or reach out to Support for help: 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:
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?