The Pinterest API has the following three main endpoints:
- Users: Users endpoint provides a convenient way to get information about an authenticated user. It also allows you to search for boards or pins for the user.
- Boards: Boards endpoint allows you to work with authenticated users' boards. It also provides the ability to fetch the boards and pins of any other user.
- Pins: The Pins endpoint, besides providing a way to manage your own pins, allows you to fetch pins, boards, and the pins on a board for any user.
We create a function pinterest_paging() which will help us to deal with pagination. It will return a list with JSON elements as a result:
import requests ### Pinterest API connection with paging def pinterest_paging(url ...