Pinterest topic (ideas) API
A Pinterest ideas page: the topic, follower and search counts, related topics, trending searches, and its best pins.
GET /v1/pinterest/topic1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/pinterest/topic?url=https%3A%2F%2Fwww.pinterest.com%2Fideas%2Fhome-decor%2F935249274030%2F",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": { "id": "935249274030", "key": "home decor", "follower_count": 298621117, "node_id": "SW50ZXJlc3Q6OTM1MjQ5Mjc0MDMw", "is_klp_term": true, "klp_community_board_display_name": null, "related_boards": [ { "node_id": "Qm9hcmQ6MTEyNDc3NDE0NDM3NzM4NTg1Mw==", "id": "1124774144377385853", "url": "/jenniferbasharat130/home-decor/", "owner": { "…": "6 fields" }, "name": "Home decor", "has_custom_cover": false, "board_order_modified_at": "Sat, 05 Sep 2026 10:13:43 +0000", "pin_count": 15, "images": { "…": "1 fields" }, "should_show_board_collaborators": true, "…": "3 more fields" }, "… 9 more" ], "is_interest": true, "image_source": "g", "klp_community_view_count": null, "…": "29 more fields" }, "pins": [ { "id": "e1_AfqPShzGVP8gWIKKHAbmu9TdW-mCOzi4F6bEz-hcWF6gzhIdJgyC", "images": { "236x": { "…": "3 fields" }, "474x": { "…": "3 fields" }, "736x": { "…": "3 fields" }, "orig": { "…": "3 fields" } }, "videos": null, "node_id": "UGluOmUxX0FmcVBTaHpHVlA4Z1dJS0tIQWJtdTlUZFctbUNPemk0RjZiRXotaGNXRjZnemhJZEpneUM=", "dominant_color": "#725734", "image_signature": "3f8a38ec0ac72c24d3cbfe7a6ed53aa1", "type": "pin", "tracking_params": "CwABAAAAEDIyNzQ2MDE4NDgwMjYxNTAGAAMATwsABwAAAApuZ2FwaS9wcm9kAA" }, "… 5 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | Ideas page URL or its numeric id. Example: https://www.pinterest.com/ideas/living-room-ideas/919398409316/. |
Response fields
200 with a PinterestTopic, in Pinterest’s own pin, board and user objects.
| Field | Type | Description |
|---|---|---|
data | PinterestInterest | A topic (ideas page): name, follower and search counts, related topics, trending searches. |
pins | PinterestPin[] | The topic’s best pins (about 20; Pinterest shows no more logged out). |
Status codes
| Status | Meaning |
|---|---|
200 | The topic and its 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 many pins?
About 20: all Pinterest shows a logged-out visitor.
Pinterest is a trademark of Pinterest, Inc. We are not affiliated with or endorsed by Pinterest.