Pinterest board pins API
The pins on a board, 25 a page, each with its save count.
GET /v1/pinterest/board/pins1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/pinterest/board/pins?url=https%3A%2F%2Fwww.pinterest.com%2Fpinterest%2Fholiday-decor-ideas%2F",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "id": "e1_AfqPShyPrAjoxu9KmtFHYqBILWRd_5DK_ClColF1_BDHwVhNjX6P", "title": "", "description": " ", "link": null, "domain": "Uploaded by user", "images": { "170x": { "…": "3 fields" }, "136x136": { "…": "3 fields" }, "236x": { "…": "3 fields" }, "474x": { "…": "3 fields" }, "736x": { "…": "3 fields" }, "orig": { "…": "3 fields" } }, "videos": null, "pinner": { "node_id": "VXNlcjo0MjQ2MDUyMDg1MjY0NTUyODM=", "image_medium_url": "https://i.pinimg.com/75x75_RS/1c/b5/61/1cb561c8e7b9c709f78d110a4b5f0863.jpg", "id": "424605208526455283", "verified_identity": { "…": "2 fields" }, "is_primary_website_verified": true, "username": "pinterest", "full_name": "Pinterest", "image_small_url": "https://i.pinimg.com/30x30_RS/1c/b5/61/1cb561c8e7b9c709f78d110a4b5f0863.jpg", "is_verified_merchant": false }, "board": { "node_id": "Qm9hcmQ6NDI0NjA1MTM5ODA4MTI1NDQ1", "id": "424605139808125445", "followed_by_me": false, "name": "Holiday decor ideas", "is_collaborative": false, "privacy": "public", "url": "/pinterest/holiday-decor-ideas/", "type": "board", "owner": { "…": "9 fields" }, "layout": "featured_board", "…": "1 more fields" }, "aggregated_pin_data": { "node_id": "QWdncmVnYXRlZFBpbkRhdGE6MzA0NjgzMzE5Mzg2MjUxMTU1Mg==", "id": "3046833193862511552", "did_it_data": { "…": "10 fields" }, "aggregated_stats": { "…": "2 fields" }, "is_shop_the_look": false, "creator_analytics": null }, "…": "62 more fields" }, "… 5 more" ], "bookmark": "Y2JZakk0ZVU1WWQzaE9SR3QzVGxSck5VOUVWVFJPVkZFMFRucFZOVXRyWkZKVVEzQTRUbXBGTUZsVVZU…"}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | Board URL. Example: https://www.pinterest.com/pinterest/pinterest-tips/. |
afterquery | string | Cursor: the previous page’s bookmark. |
Response fields
200 with a PinterestPinPage, in Pinterest’s own pin, board and user objects.
| Field | Type | Description |
|---|---|---|
data | PinterestPin[] | |
bookmark | string | Pass it as after for the next page; absent on the last page. |
Status codes
| Status | Meaning |
|---|---|
200 | A page of pins. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The pin, board, account or topic does not exist, is not public, or is only known by an encrypted id. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Pinterest is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How do I get the next page?
Pass the response’s bookmark back as after.
Pinterest is a trademark of Pinterest, Inc. We are not affiliated with or endorsed by Pinterest.