Skip to content

Structured Pinterest data: send queries. Cursor-paginated, 1 credit per successful call.

GET · POST1 credit / successful callCursor-paginated
GEThttps://api.scrapier.io/api/v2/pinterest-search/Open in Playground

Call GET /api/v2/pinterest-search/ with queries. The results are in data.pins; send data.next_cursor back as cursor to get the next page. 3 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/pinterest-search/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "queries=wallpaper" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
queriesstringyese.g. wallpaperSearch keyword. Ignored when cursor is supplied (the cursor carries it).
cursorstringno—Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page.
content_filterstringnoall'all' (pins) or 'videos' (Pinterest's video search). Alias: filter.
allvideos
locked in cursor
page_sizeintegerno25Minimum NEW pins per page (1-100). Pinterest serves ~25 per request, so a page may return up to ~2x this.
locked in cursor
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"queries": "minimalist tattoo",
"content_filter": "all",
"page": 1,
"page_size": 25,
"pins": [
{
"keyword": "minimalist tattoo",
"node_id": "22518066882805770",
"type": "pin",
"title": "20 Minimalist Tiny Tattoo Ideas",
"description": "Small fine-line tattoo inspiration",
"domain": "Uploaded by user",
"link": "",
"dominant_color": "#966f58",
"created_at": "Wed, 09 Sep 2026 02:26:40 +0000",
"board": {
"id": "...",
"url": "/user/board/"
},
"reaction_counts": {
"1": 12
},
"native_creator": {},
"pinner": {
"id": "...",
"username": "user",
"full_name": "User"
},
"image_url": "https://i.pinimg.com/originals/00/a8/34/00a83467113a7be09453054a90e5f183.jpg",
"image_width": 736,
"image_height": 1104,
"position": 1
}
],
"has_more": true,
"next_cursor": "pz1.eNrtV..."
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.pins.

FieldTypeExampleDescription
queriesstringminimalist tattoo—
content_filterstringall—
pageinteger1—
page_sizeinteger25—
pinsarray[1 item]The results.
has_morebooleantrue—
next_cursorstringpz1.eNrtV...Pass back as cursor for the next page. null on the last page.
pins[].keywordstringminimalist tattoo—
pins[].node_idstring22518066882805770—
pins[].typestringpin—
pins[].titlestring20 Minimalist Tiny Tattoo Ideas—
pins[].descriptionstringSmall fine-line tattoo inspiration—
pins[].domainstringUploaded by user—
pins[].linkstring—
pins[].dominant_colorstring#966f58—
pins[].created_atstringWed, 09 Sep 2026 02:26:40 +0000—
pins[].boardobject{…}—
pins[].reaction_countsobject{…}—
pins[].native_creatorobject{…}—
pins[].pinnerobject{…}—
pins[].image_urlstringhttps://i.pinimg.com/originals/00/a8/34/00a83…—
pins[].image_widthinteger736—
pins[].image_heightinteger1104—
pins[].positioninteger1—

Pass data.next_cursor back as cursor until it is null. Required inputs are ignored once a cursor is sent. Each page is one billed call. More in Pagination.

const url = "https://api.scrapier.io/api/v2/pinterest-search/";
let params = { queries: "wallpaper" };
const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call
const res = await fetch(`${url}?${new URLSearchParams(params)}`, {
headers: { "X-API-Key": "YOUR_API_KEY" },
signal: AbortSignal.timeout(210_000),
});
const body = await res.json();
if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
const data = body.data;
items.push(...(data.pins ?? []));
if (!data.next_cursor) break; // null = last page
params = { cursor: data.next_cursor };
}

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • Locked into the cursor: content_filter, page_size. Set them on the first call; later pages reuse them.