Pinterest board API
A board by URL: name, description, pin, follower and section counts, owner and cover.
GET /v1/pinterest/board1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/pinterest/board?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": "424605139808125445", "name": "Holiday decor ideas", "url": "/pinterest/holiday-decor-ideas/", "description": "Indoors or out — start dreaming of your best season yet.", "pin_count": 163, "follower_count": 4236668, "section_count": 0, "owner": { "node_id": "VXNlcjo0MjQ2MDUyMDg1MjY0NTUyODM=", "type": "user", "verified_identity": { "name": "pinterest", "verified": true }, "is_verified_merchant": false, "indexed": true, "ads_only_profile_site": null, "id": "424605208526455283", "first_name": "Pinterest", "domain_url": "www.pinterest.com", "blocked_by_me": false, "image_xlarge_url": "https://i.pinimg.com/280x280_RS/1c/b5/61/1cb561c8e7b9c709f78d110a4b5f0863.jpg", "is_ads_only_profile": false, "image_medium_url": "https://i.pinimg.com/75x75_RS/1c/b5/61/1cb561c8e7b9c709f78d110a4b5f0863.jpg", "is_tastemaker": false, "…": "6 more fields" }, "privacy": "public", "node_id": "Qm9hcmQ6NDI0NjA1MTM5ODA4MTI1NDQ1", "collab_board_email": false, "followed_by_me": false, "layout": "featured_board", "image_cover_url": "https://i.pinimg.com/custom_covers/200x150/424605139808125445_1794180318.jpg", "…": "33 more fields" }}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | Board URL. Example: https://www.pinterest.com/pinterest/pinterest-tips/. |
Response fields
200 with a PinterestBoardResponse, in Pinterest’s own pin, board and user objects.
| Field | Type | Description |
|---|---|---|
data | PinterestBoard |
Status codes
| Status | Meaning |
|---|---|
200 | The board. |
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
Pinterest is a trademark of Pinterest, Inc. We are not affiliated with or endorsed by Pinterest.