- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
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.
Part of the Pinterest Scraper API: 5 Pinterest endpoints on one key.
Request
Send your key in the x-api-key header.
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 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 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}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 examples, not your data.
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": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V...",133 "has_more": true,134 "parent": null135 },136 "cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtreVZUSjRRMVl4U25KV1dHUlhVbXh3VkZWdGMzaFdhelZaVW0xR2JHRXhjRkpXVjNScllXMVJlRlZ1Vm1wU1ZYQlBXVlJPVTJWV1pISlhhM1JYVm10V...",137 "has_more": true138}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 Python client has client.pinterest.search(...) and the TypeScript client client.pinterest.search(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.