Search
Pins matching a query, about 25 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
query*stringWhat to search for.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.pinterest.search({ query: "coffee" });Example Response
{ "data": [ { "id": "e1_AfqPShy3WPDLBnGwaUF0Xhx8bap5Jv-tnSTZHBbS_D5DAYfDEpj8jA", "url": "https://www.pinterest.com/pin/e1_AfqPShy3WPDLBnGwaUF0Xhx8bap5Jv-tnSTZHBbS_D5DAYfDEpj8jA/", "text": null, "createdAt": "2026-11-17T03:13:11.000Z", "author": { "id": "1019080359339514940", "username": "aylinnicol2017", "displayName": "Ana Ruth", "avatarUrl": "https://s.pinimg.com/images/user/default_140.png", "verified": false, "url": "https://www.pinterest.com/aylinnicol2017/" }, "stats": { "views": null, "likes": 6, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "image", "url": "https://i.pinimg.com/originals/d1/86/97/d186970df154c451b60870f554d5b199.jpg", "thumbnailUrl": null, "width": 1024, "height": 1536, "durationSeconds": null } ], "hashtags": [], "mentions": [], "ext": { "kind": "story", "title": null, "link": "https://onelink.shein.com/59/67fgcof3713i?ismg_ol=8uVRn795nnD_01_KOC-C", "domain": "onelink.shein.com", "board": { "id": "1019080290621863005", "name": "Cosas para comprar", "url": "https://www.pinterest.com/aylinnicol2017/cosas-para-comprar/" }, "commentsId": "4012442934663022528", "openable": false, "dominantColor": "#755b49", "altText": "a woman holding a cup of coffee in her hands", "commentsDisabled": false } }, { "id": "e1_AfqPShzKVJTzlGpjMZLxjnxBFxUKjb13z7lEGTn55WV3oUmnRP9Z2g", "url": "https://www.pinterest.com/pin/e1_AfqPShzKVJTzlGpjMZLxjnxBFxUKjb13z7lEGTn55WV3oUmnRP9Z2g/", "text": null, "createdAt": "2026-11-17T11:36:51.000Z", "author": { "id": "1104789489748392668", "username": "preview_mokacoffeepot_com", "displayName": "Pinterest Preview mokacoffeepot_com", "avatarUrl": "https://s.pinimg.com/images/user/default_140.png", "verified": false, "url": "https://www.pinterest.com/preview_mokacoffeepot_com/" }, "stats": { "views": null, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "image", "url": "https://i.pinimg.com/originals/fb/25/b2/fb25b28693600235d70475f9c8ff529e.png", "thumbnailUrl": null, "width": 1080, "height": 1920, "durationSeconds": null } ], "hashtags": [], "mentions": [], "ext": { "kind": "image", "title": "Chocolate Peanut Butter Iced Coffee", "link": "https://www.mokacoffeepot.com/chocolate-peanut-butter-iced-coffee/", "domain": "mokacoffeepot.com", "board": { "id": "1104789421031119466", "name": "Inspo", "url": "https://www.pinterest.com/preview_mokacoffeepot_com/_inspo/" }, "commentsId": null, "openable": false, "dominantColor": "#d2c2b7", "altText": "two glasses of chocolate peanut butter iced coffee with whipped cream on top and the text overlay reads, chocolate peanut butter iced coffee", "commentsDisabled": false } } ], "pagination": { "nextCursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWllaR3hpVmtZMldWVlZNVlV4U25Sak0yUlhVa1ZLVkZWdE1WZFNhelZYVm0xb1RrMXNTbEJYYkdONFlXMVdWMVZ1VGxaaVNFSnlWRlZvVTJWV1pISlhhM1JYVm10V05sVldVbE5YUjBwWlVXeFNXbUpHVlRGV2JGcHlaVzFHUms5V1RsTldNMDR6Vm1wSmQyVkdXWGxTYkdScFUwVmFiMVZxU2pSaFJsWnlXa1JTYTFKdFVsbFpNRlUxWVVaYWRHVkdiRmRpUmtwUVYxWmtTMVl4V25GV2JGWk9VakZLVlZkV1VrSk5WVFZ6Vm01U1RsWnJTbGhVVldSNlpERlplRmR0ZEZOaGVsWlhWR3hhVjFVeVNs…", "hasMore": true }}