Questions tagged [pinterest-api]

Pinterest API allows for access to Pinterest via rest api endpoints.

13 questions
1
vote
1 answer

Why does the Pinterest V5 API /pins route give me an intermittent failure and apology, on POST?

Background: I'm working on a Pinterest integration. I would like to be able to create ads in Pinterest, which requires first having a pin created. I have code in place to do this, and the code works beautifully about 50% of the time. The other 50%…
Chris Doohan
  • 61
  • 1
  • 3
1
vote
0 answers

Get Pinterest API authorization code in Python

I am able to get my Ads API from Pinterest using the manual method of generating a authentication code using - https://www.pinterest.com/oauth/?client_id=ABC&redirect_uri=xyz.com&scope=ads:read But I want to be able to dynamically generate the…
0
votes
1 answer

Pinterest API V5 Create Pins With Local Images

I'm trying to make a pinner app with official Pinterest API. I completed most of the features, but I'm struggling with creating pins. I can't create a pin with my local files like: MEDIA_SOURCE = { "source_type": "image_url", …
NorkQ
  • 45
  • 1
  • 7
0
votes
0 answers

How can I fetch with the Pinterest api Ad-Data for Ads that had an ad-spent in a specific time frame?

We want to develop a Pinterest integration and we would like to fetch all ads that performed (had adspent) in a specific time range. Sadly the only way we see in the docs is to fetch all available ads first and then fetch with bookmarks they’re…
0
votes
0 answers

Not passing the same event_id from Pinterest Tag and API within a timeframe

I am sending page views, add to cart and purchase events through the Pinterest TAG and the API (through GA4 tag). On the Event deduplication page on the Pinterest Platform, it says that page views and add to cart events have a unique tag overlap of…
MaYord
  • 23
  • 4
0
votes
0 answers

How do I search for pins by keyword using pinterest api?

Is it possible to use the pinterest api (v5) to search across the site for pins or boards matching a keyword? I tried doing this (but it only gives me my own pins): // Search for pins with the keyword const searchUrl =…
chovy
  • 72,281
  • 52
  • 227
  • 295
0
votes
0 answers

Is it possible to schedule pin on pinterest using pinterest api call?

Using Pinterest api call is it possible to create a scheduled Pinterest pin? We have tried the below code but post-schedule immediately : $client->post("https://api.pinterest.com/v5/pins",[ 'headers' => [ "Authorization" => "Bearer " .…
0
votes
0 answers

C# - RestSharp Upload File to pinterest-media-upload.s3-accelerate.amazonaws.com Error PreconditionFailed

I have problem when trying to upload file to pinterest-media-upload.s3-accelerate.amazonaws.com using C# - RestSharp. This is the error result: PreconditionFailed At least one of the pre-conditions you specified…
AsdA
  • 9
  • 3
0
votes
1 answer

pinterest access token giving error authentication failed

I using below command to get access token curl -X POST https://api.pinterest.com/v5/oauth/token --header 'Authorization: Basic {base64 encoded string made of client_id:client_secret}' --header 'Content-Type:…
Rita
  • 31
  • 3
0
votes
0 answers

Pinterest API: Access to XMLHttpRequest blocked by CORS policy

Trying to access the pinterest API in my Next.js / React app, but it won't work: const redirectUrl = 'http://localhost:3000/pinterest'; const clientId = '1234'; const clientSecret = 'XXXXXXXXXXX'; let url =…
antonwilhelm
  • 5,768
  • 4
  • 19
  • 45
0
votes
0 answers

"Sorry we could not fetch the image" Pinterest error even though Image is publicly accessible

I am not sure what the real issue is but my image is publicly accessible via a url similar…
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
0 answers

Pinterest API for Conversions

I'm trying to request access to this API by following their instructions: https://developers.pinterest.com/blog/2022/04/12/introducing-pinterest-api-v5/ Note, that the location in the help does not exist. I went for "Pinterest API and Developer…
Tony McCreath
  • 2,882
  • 1
  • 14
  • 21