Pinterest topic pins API
Pins for an ideas topic.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
parent is the topic with its search_count and related refinements (first page only: they come from the ideas page).
You send url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/pinterest/topic" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/'import os
import requests
params = {
"url": "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/",
}
res = requests.get(
"https://api.socialscrape.io/v1/pinterest/topic",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/pinterest/topic");
url.search = new URLSearchParams({
url: "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Pinterest topic pins",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/pinterest/topic",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | yes | Topic URL (pinterest.com/ideas/<topic>/<id>/). |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_1b68e1a2370feee91d9bb77e",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "pinterest",
"id": "e1_AfqPShzEpo1_wY8uuOmNbflNGOtzqgTv7-FDd98NRSlXAFTkDJiw",
"url": "https://www.pinterest.com/pin/e1_AfqPShzEpo1_wY8uuOmNbflNGOtzqgTv7-FDd98NRSlXAFTkDJiw/",
"type": "pin",
"author": {
"id": "942378428185917982",
"handle": "doggytastic",
"name": "DOGGYTASTIC",
"url": "https://www.pinterest.com/doggytastic/",
"avatar_url": "https://i.pinimg.com/140x140_RS/4f/6c/bb/4f6cbb0b080113d0deee783b6d1c2db4.jpg",
"verified": false
},
"title": "How To Stop Your Dog From Pulling On The Leash? Effective Training Tips",
"text": "How To Stop Your Dog From Pulling On The Leash? Discover effective leash training techniques to enjoy calm and enjoyable walks with your dog. Say goodbye to ...",
"published_at": "2024-07-03T09:00:18Z",
"duration_seconds": null,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": 2,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://i.pinimg.com/236x/ef/40/9a/ef409a3294a09dd1362e1f146db74b21.jpg",
"video_url": null,
"audio_url": null,
"image_urls": [
"https://i.pinimg.com/originals/ef/40/9a/ef409a3294a09dd1362e1f146db74b21.jpg"
],
"width": 800,
"height": 1200
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"alt_text": "a woman walking her dog with the words how to stop your dog from pulling on the leash",
"board": {
"id": "942378359467204545",
"name": "Dog Training Advice & Obedience Tips",
"url": "https://www.pinterest.com/doggytastic/dog-training-advice-obedience-tips/"
},
"domain": "doggytastic.com",
"dominant_color": "#6a706e",
"keywords": [
"Dog Walking Training",
"Dog Leash Training Tips",
"How To Leash Train A Dog"
],
"link": "https://www.doggytastic.com/how-to-stop-your-dog-from-pulling-on-the-leash/"
}
},
{
"object": "post",
"platform": "pinterest",
"id": "e1_AfqPShwwtRtsIGEAnEL2IzS42taJiLNBEDJgsAePnZMIo_JHDF9O",
"url": "https://www.pinterest.com/pin/e1_AfqPShwwtRtsIGEAnEL2IzS42taJiLNBEDJgsAePnZMIo_JHDF9O/",
"type": "pin",
"author": {
"id": "396035498390324686",
"handle": "ShaysHappyPlace",
"name": "My Happy Place",
"url": "https://www.pinterest.com/ShaysHappyPlace/",
"avatar_url": "https://i.pinimg.com/140x140_RS/95/2f/fe/952ffe7c63d57ce04f44788526e4882d.jpg",
"verified": false
},
"title": "7 Training Tips to Stop a Dog Pulling on a Harness",
"text": "Dog pulling on leash even when you're using a harness? Here are six tips to stop leash pulling using positive training techniques #dogs #dogtraining #dogtips...",
"published_at": "2020-08-06T03:20:53Z",
"duration_seconds": null,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": 3,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://i.pinimg.com/236x/ae/8d/d3/ae8dd3b3c70309a6eed1347f7116df88.jpg",
"video_url": null,
"audio_url": null,
"image_urls": [
"https://i.pinimg.com/originals/ae/8d/d3/ae8dd3b3c70309a6eed1347f7116df88.jpg"
],
"width": 550,
"height": 1300
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"alt_text": "two dogs on leashes with the title 6 training tips for harnessing",
"board": {
"id": "396035429670941588",
"name": "Woof!",
"url": "https://www.pinterest.com/ShaysHappyPlace/woof/"
},
"domain": "thedogclinic.com",
"dominant_color": "#967d8e",
"keywords": [
"Socializing Dogs",
"Dog Commands",
"Dog Behavior Problems"
],
"link": "https://www.thedogclinic.com/harness-pulling-tips"
}
}
],
"cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWlVSbGhXTVVreVZUSnpOVlV4U1hsVlZFcFhVbXh3VkZZeWMzaGphelZWVjIxb2JHRjZWbEpXVjNScllXMVdSMVZ1VW1wU2JrSnpWV3hvVTJWV1pISlhhM1JYVm10V...",
"has_more": true,
"parent": {
"object": "collection",
"platform": "pinterest",
"id": "894604313079",
"url": "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/",
"kind": "topic",
"title": "how to stop leash pulling",
"description": null,
"owner": null,
"item_count": null,
"cover_url": "https://i.pinimg.com/originals/4a/37/01/4a37015f1235a9b6434aaa8ae42a61bb.jpg",
"updated_at": "2026-10-30T00:10:58Z",
"extra": {
"refinements": [
{
"label": "Dog",
"name": "Dog Leash",
"url": "https://www.pinterest.com/ideas/dog-leash/920936006020/"
},
{
"label": "Holder",
"name": "Dog Leash Holder",
"url": "https://www.pinterest.com/ideas/dog-leash-holder/893453821037/"
},
{
"label": "Cat",
"name": "Cat Leash",
"url": "https://www.pinterest.com/ideas/cat-leash/927222536363/"
}
],
"search_count": 29
}
}
},
"cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWlVSbGhXTVVreVZUSnpOVlV4U1hsVlZFcFhVbXh3VkZZeWMzaGphelZWVjIxb2JHRjZWbEpXVjNScllXMVdSMVZ1VW1wU2JrSnpWV3hvVTJWV1pISlhhM1JYVm10V...",
"has_more": true
}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.pinterest.topic(...) and the TypeScript client client.pinterest.topic(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.