Pinterest pin search
Beta GET /v1/pinterest/search
GET /v1/pinterest/search
Pins matching a keyword, about 24 per page. Search pins carry opaque ids (e1_...), so their url is the pin page but the pin endpoint cannot look the id up again.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search terms. Also accepted as keyword, q. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl
curl -G "https://api.socialscrape.io/v1/pinterest/search" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "query=living room ideas"Python
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,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
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);
}n8n
{
"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": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"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": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V05sVldVbE5YUjBwSVZXdG9XbUV4Y0ROV01GcFRWMVp3Ums1Vk5XbFNXRUYzVm10U1IyRXhiRmhTYms1cVUw...",
"has_more": true,
"parent": null
},
"cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V05sVldVbE5YUjBwSVZXdG9XbUV4Y0ROV01GcFRWMVp3Ums1Vk5XbFNXRUYzVm10U1IyRXhiRmhTYms1cVUw...",
"has_more": true
}Response#
A list of Post objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- Pinterest pin (
GET /v1/pinterest/pin) - Pinterest user boards (
GET /v1/pinterest/profile/boards) - Pinterest board pins (
GET /v1/pinterest/board) - Pinterest topic pins (
GET /v1/pinterest/topic)