Pinterest pin search API
Pins matching a keyword, about 24 per page.
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
- 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).
1curl -G "https://api.socialscrape.dev/v1/pinterest/search" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "query=living room ideas"1import os2import requests34params = {5 "query": "living room ideas",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/pinterest/search",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/pinterest/search");2url.search = new URLSearchParams({3 "query": "living room ideas"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Pinterest pin search",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/pinterest/search",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "query",19 "value": "living room ideas"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_fe6af9ab005607a80a43d9a2",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "pinterest",14 "id": "e1_AfqPShwjNMJ4K2cnVZIX0_oqSVyHLtBpsvT3nv_x_T5Gf9PQ46LTXQ",15 "url": "https://www.pinterest.com/pin/e1_AfqPShwjNMJ4K2cnVZIX0_oqSVyHLtBpsvT3nv_x_T5Gf9PQ46LTXQ/",16 "type": "pin",17 "author": {18 "id": "1110137514305715123",19 "handle": "HuliRecipes",20 "name": "Yulia Recipes",21 "url": "https://www.pinterest.com/HuliRecipes/",22 "avatar_url": "https://i.pinimg.com/140x140_RS/4c/78/76/4c78766b76d46dddef2d86882735589f.jpg",23 "verified": false24 },25 "title": null,26 "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!\"",27 "published_at": "2026-08-29T00:54:32Z",28 "duration_seconds": null,29 "language": null,30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": null,34 "likes": 373,35 "comments": null,36 "shares": null,37 "saves": null,38 "dislikes": null39 },40 "media": {41 "thumbnail_url": "https://i.pinimg.com/236x/79/ce/2b/79ce2bd61c95841d00e02c3de67f4998.jpg",42 "video_url": null,43 "audio_url": null,44 "image_urls": [45 "https://i.pinimg.com/originals/79/ce/2b/79ce2bd61c95841d00e02c3de67f4998.jpg"46 ],47 "width": 1024,48 "height": 153649 },50 "song": null,51 "location": null,52 "is_pinned": null,53 "is_sponsored": false,54 "extra": {55 "alt_text": "a living room filled with furniture and a flat screen tv mounted on a wall next to a kitchen",56 "board": {57 "id": "1110137445588421147",58 "name": "All Home Decors Ideas",59 "url": "https://www.pinterest.com/HuliRecipes/all-home-decors-ideas/"60 },61 "domain": "etsy.com",62 "dominant_color": "#7f6652",63 "keywords": [64 "Neutral Cozy Living Room Ideas",65 "Warm Neutral Home Interior",66 "Warm Home Ideas"67 ],68 "link": "https://www.etsy.com/listing/4549735042/danish-modern-coffee-table-mango-wood"69 }70 },71 {72 "object": "post",73 "platform": "pinterest",74 "id": "e1_AfqPShxLDwKpUlT_olGSihEZDhimpaknD5aTkrm9oQXmx99zIv-SKA",75 "url": "https://www.pinterest.com/pin/e1_AfqPShxLDwKpUlT_olGSihEZDhimpaknD5aTkrm9oQXmx99zIv-SKA/",76 "type": "pin",77 "author": {78 "id": "1049901869289427155",79 "handle": "dreambundles",80 "name": "DreamBundles",81 "url": "https://www.pinterest.com/dreambundles/",82 "avatar_url": "https://i.pinimg.com/140x140_RS/51/bd/14/51bd14c222462bc47b2f5b22283c5697.jpg",83 "verified": false84 },85 "title": "15 Gorgeous Living Room Ideas 2026",86 "text": "Find fresh living room inspiration with soft neutrals, warm wood, rich fabrics, and elevated decor.",87 "published_at": "2026-08-25T22:22:16Z",88 "duration_seconds": null,89 "language": null,90 "hashtags": null,91 "mentions": null,92 "stats": {93 "views": null,94 "likes": 9,95 "comments": null,96 "shares": null,97 "saves": null,98 "dislikes": null99 },100 "media": {101 "thumbnail_url": "https://i.pinimg.com/236x/b0/43/25/b04325b115c8cb8d57b6237617a0ae95.jpg",102 "video_url": null,103 "audio_url": null,104 "image_urls": [105 "https://i.pinimg.com/originals/b0/43/25/b04325b115c8cb8d57b6237617a0ae95.png"106 ],107 "width": 1000,108 "height": 1500109 },110 "song": null,111 "location": null,112 "is_pinned": null,113 "is_sponsored": false,114 "extra": {115 "alt_text": "a living room with couches, chairs and tables in the middle of it is featured for",116 "board": {117 "id": "1049901800571131190",118 "name": "Home Ideas",119 "url": "https://www.pinterest.com/dreambundles/home-ideas/"120 },121 "domain": "dreambundles.com",122 "dominant_color": "#a58e7f",123 "keywords": [124 "Warm Family Room Ideas",125 "Beautiful Family Room Ideas",126 "2027 Living Room Colors"127 ],128 "link": "https://dreambundles.com/blogs/home-ideas/classy-living-room-ideas"129 }130 }131 ],132 "cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V05sVldVbE5YUjBwSVZXdG9XbUV4Y0ROV01GcFRWMVp3Ums1Vk5XbFNXRUYzVm10U1IyRXhiRmhTYms1cVUw...",133 "has_more": true,134 "parent": null135 },136 "cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V05sVldVbE5YUjBwSVZXdG9XbUV4Y0ROV01GcFRWMVp3Ums1Vk5XbFNXRUYzVm10U1IyRXhiRmhTYms1cVUw...",137 "has_more": true138}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)