Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to obtain Pinterest V3 API-KEY or access_token

I am trying to fetch Pinterest data, which would be the public info of the user(follower count etc), and all pins for a user.

I know the v3 API are up now and v2 apis have been taken down.

I found this link which gives me end points for exactly what I want:

http://techslides.com/most-repinned-pinterest-pins-by-website/

But I am unable to get an access_token. I have asked pinterest for api access but they have not replied. And I am unable to sniff app data too.

I also tried Pinterest's signature tester tool which is on their website but no luck. The link it generates doesn't work either. It returns a authorization failure.

https://developers.pinterest.com/tools/signature/

I have access to APP-ID and Client-Secret. I need to know how can I get an access token/ API-KEY to get the following work fine for me:

https://api.pinterest.com/v3/users/jessicamalba/?access_token=APIKEY

EDIT

Before I am told that is an duplicate of

How to get access token for access Pinterest Api

I would just say that it is not. This question was asked one year ago and was asked in respect to V2 api. Which now return a 404 status. So now here I am asking about the V3 api.

like image 767
Sambhav Sharma Avatar asked Jun 12 '14 22:06

Sambhav Sharma


People also ask

Is there a Pinterest API?

The Pinterest API (v5) allows developers to connect quickly and begin building applications to enable faster creation of content on Pinterest and access user, Pin and ads analytics.

What is my Pinterest app ID?

Pin ID can be found by looking at a Pin's URL. The string of numbers at the end of the URL is the Pin ID (example: pinterest.com/pin/617415430169271912).


1 Answers

Okay, so as of today, following are the parts of the api that are public and used by widgets.

Public parts of API (used by widgets) Retrieving the pins on a particular board:

GET http://widgets.pinterest.com/v3/pidgets/boards/eecolor/test/pins/
GET http://api.pinterest.com/v3/pidgets/boards/eecolor/test/pins/

Retrieving the pins of a particular user:

GET http://widgets.pinterest.com/v3/pidgets/users/eecolor/pins/

Retrieving the information of (a) particular pin(s):

GET http://widgets.pinterest.com/v3/pidgets/pins/info/?pin_ids=521150988102375972
GET http://widgets.pinterest.com/v3/pidgets/pins/info/?pin_ids=521150988102375972,10133167885969245

Count the number of pins:

http://widgets.pinterest.com/v1/urls/count.json?url={urlEncodedLink} http://widgets.pinterest.com/v1/urls/count.json?url=http%3A%2F%2Fwww.flickr.com%2Fphotos%2Fssass%2F3436030086%2F

Note that the link is returned in the other API responses

You can use ?callback=myJsFunction to use JSONP

GET http://widgets.pinterest.com/v3/pidgets/boards/eecolor/test/pins/?callback=myJsFunction

You can use api instead of widgets and also https

GET http://api.pinterest.com/v3/pidgets/boards/eecolor/test/pins/
GET https://api.pinterest.com/v3/pidgets/boards/eecolor/test/pins/

like image 116
Sambhav Sharma Avatar answered Sep 28 '22 02:09

Sambhav Sharma