Pinterest pin search API
Pins matching a keyword, about 24 per page.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
Search pins carry opaque ids (e1_...), so their url is the pin page but the pin endpoint cannot look the id up again.
You send query.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/pinterest/search" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'query=living room ideas'import os
import requests
params = {
"query": "living room ideas",
}
res = requests.get(
"https://api.socialscrape.io/v1/pinterest/search",
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/search");
url.search = new URLSearchParams({
query: "living room ideas",
}).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 pin search",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/pinterest/search",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "query",
"value": "living room ideas"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search terms. Also accepted as keyword, q. |
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_fe6af9ab005607a80a43d9a2",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "pinterest",
"id": "e1_AfqPShwjNMJ4K2cnVZIX0_oqSVyHLtBpsvT3nv_x_T5Gf9PQ46LTXQ",
"url": "https://www.pinterest.com/pin/e1_AfqPShwjNMJ4K2cnVZIX0_oqSVyHLtBpsvT3nv_x_T5Gf9PQ46LTXQ/",
"type": "pin",
"author": {
"id": "1110137514305715123",
"handle": "HuliRecipes",
"name": "Yulia Recipes",
"url": "https://www.pinterest.com/HuliRecipes/",
"avatar_url": "https://i.pinimg.com/140x140_RS/4c/78/76/4c78766b76d46dddef2d86882735589f.jpg",
"verified": false
},
"title": null,
"text": "\"Discover the perfect blend of style and functionality with our step-by-step guide to creating a stunning Danish modern coffee table from mango wood!\"",
"published_at": "2026-08-29T00:54:32Z",
"duration_seconds": null,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": 373,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://i.pinimg.com/236x/79/ce/2b/79ce2bd61c95841d00e02c3de67f4998.jpg",
"video_url": null,
"audio_url": null,
"image_urls": [
"https://i.pinimg.com/originals/79/ce/2b/79ce2bd61c95841d00e02c3de67f4998.jpg"
],
"width": 1024,
"height": 1536
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"alt_text": "a living room filled with furniture and a flat screen tv mounted on a wall next to a kitchen",
"board": {
"id": "1110137445588421147",
"name": "All Home Decors Ideas",
"url": "https://www.pinterest.com/HuliRecipes/all-home-decors-ideas/"
},
"domain": "etsy.com",
"dominant_color": "#7f6652",
"keywords": [
"Neutral Cozy Living Room Ideas",
"Warm Neutral Home Interior",
"Warm Home Ideas"
],
"link": "https://www.etsy.com/listing/4549735042/danish-modern-coffee-table-mango-wood"
}
},
{
"object": "post",
"platform": "pinterest",
"id": "e1_AfqPShxLDwKpUlT_olGSihEZDhimpaknD5aTkrm9oQXmx99zIv-SKA",
"url": "https://www.pinterest.com/pin/e1_AfqPShxLDwKpUlT_olGSihEZDhimpaknD5aTkrm9oQXmx99zIv-SKA/",
"type": "pin",
"author": {
"id": "1049901869289427155",
"handle": "dreambundles",
"name": "DreamBundles",
"url": "https://www.pinterest.com/dreambundles/",
"avatar_url": "https://i.pinimg.com/140x140_RS/51/bd/14/51bd14c222462bc47b2f5b22283c5697.jpg",
"verified": false
},
"title": "15 Gorgeous Living Room Ideas 2026",
"text": "Find fresh living room inspiration with soft neutrals, warm wood, rich fabrics, and elevated decor.",
"published_at": "2026-08-25T22:22:16Z",
"duration_seconds": null,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": 9,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://i.pinimg.com/236x/b0/43/25/b04325b115c8cb8d57b6237617a0ae95.jpg",
"video_url": null,
"audio_url": null,
"image_urls": [
"https://i.pinimg.com/originals/b0/43/25/b04325b115c8cb8d57b6237617a0ae95.png"
],
"width": 1000,
"height": 1500
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"alt_text": "a living room with couches, chairs and tables in the middle of it is featured for",
"board": {
"id": "1049901800571131190",
"name": "Home Ideas",
"url": "https://www.pinterest.com/dreambundles/home-ideas/"
},
"domain": "dreambundles.com",
"dominant_color": "#a58e7f",
"keywords": [
"Warm Family Room Ideas",
"Beautiful Family Room Ideas",
"2027 Living Room Colors"
],
"link": "https://dreambundles.com/blogs/home-ideas/classy-living-room-ideas"
}
}
],
"cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V...",
"has_more": true,
"parent": null
},
"cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V...",
"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), 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.search(...) and the TypeScript client client.pinterest.search(). 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.