Pinterest API Paging Panel

Can anyone (educated) suggest how paging works with the unreleased Pinterest API?

For example, this link: https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/ returns the first 50 contacts of this particular board. But it contains 101 pins. How to get pages 2 and 3?

Since the API is not publicly available, I cannot find it, but maybe I know or can make a good guess.

thanks

Edit:

I tried:

https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/page/2/ https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/?page=2 https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/?p=2 https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/?offset=2 

Pinterest is based on Django, so it probably uses the REST Framework. Any ideas?

+8
rest api django paging pinterest
source share
2 answers

You can Paginate on the Pinterest API by adding the limit Curling parameter:

 https://api.pinterest.com/v1/boards/anapinskywalker/wanderlust/pins/? access_token=abcde& limit=2& fields=id,link,counts,note 

This will return two outputs, the second page of the object call will also be returned.

 "page": { "cursor":"abcde1234", "next":"https://api.pinterest.com/v1/boards/anapinskywalker/wanderlust/pins/?access_token=abcde&fields=id%2Clink%2Ccounts&2Cnote&limit=2&cursor=abcde1234" } 

You can then CURL with the following URL to see the following two outputs.

+1
source share

Even if they use some framework (for example, DRF), they have a million ways to customize the structure of the request. If I wanted to reverse engineer some non-published APIs that were open, I would either use Wireshark or Fiddler2. Then just start using the website and see what requests are running, figure out the request template, and create your own API for your ad-hoc API. Another option is just to browse the network part of the Chrome developer tools if you just need a general idea.

0
source share

All Articles