Skip to content

Structured Reddit data: every input is optional. Cursor-paginated, 1 credit per successful call.

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

Call GET /api/v2/reddit-subreddit-search/. The results are in data.items; send data.next_cursor back as cursor to get the next page. 9 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/reddit-subreddit-search/" \
-H "X-API-Key: YOUR_API_KEY" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
subredditsstringnoSelfDrivingCarsSubreddit to search inside ("SelfDrivingCars", "r/SelfDrivingCars" or a reddit.com/r/<name> URL; a full /r/<name>/search/?q=..&sort=..&t=..&type=.. URL fills the empty options). EMPTY = all of Reddit. At least one of subreddits / queries on the first call; ignored when cursor is supplied.
queriesstringnowaymoSearch terms (Reddit syntax works). EMPTY = the subreddit's unfiltered list. ONE native Reddit search page per call (7 posts / ~9-10 comments / 7 media - Reddit ignores page-size params; source=api = 100-row Listing pages), rows in Reddit's order with flat id / title / score / num_comments / author / permalink / url (+ body for comments, media_urls for media) plus the full post (or comment) + computed blocks. Required on the first call (unless subreddits is given); ignored when cursor is supplied.
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.
typestringnopostsposts (default) | comments | media - Reddit's search tabs.
postscommentsmedia
locked in cursor
sortstringnorelevancerelevance (default) | hot | top | new | comments (comments type: relevance | top | new).
relevancehottopnewcomments
locked in cursor
timeframestringno—hour | day | week | month | year | all (relevance / top / comments only).
hourdayweekmonthyearall
locked in cursor
include_bodybooleannofalsetrue = hydrate every hit via oauth.reddit.com/api/info (selftext, upvote_ratio, flair, media, awards ...).
locked in cursor
sourcestringnoautoauto (default) = the site's index (fresh guest sessions raced on a wall); when it stays walled the first page falls back and the walk continues on that index: posts+query -> api search, subreddit without query -> api listing, media -> api filtered to image/video/gallery, comments in a subreddit -> Arctic Shift archive (rows carry source, response warning). web = site index only; api = oauth.reddit.com Listing search (100 a page, after cursor, bodies included, posts only). Nothing able to serve the page -> HTTP 502 naming the cursor to retry.
autowebapi
locked in cursor
trimbooleannotruefalse = + every raw Reddit field of hydrated hits in the post / comment block.
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": {
"subreddit": "SelfDrivingCars",
"subreddit_scope": "SelfDrivingCars",
"query": "waymo",
"type": "posts",
"source": "web",
"sort": "top",
"timeframe": "year",
"page": 1,
"page_size": 7,
"items": [
{
"input_subreddit": "SelfDrivingCars",
"keyword": "waymo",
"subreddit_scope": "SelfDrivingCars",
"type": "posts",
"status": "ok",
"position": 1,
"id": "1rfu3mo",
"name": "t3_1rfu3mo",
"url": "https://www.reddit.com/r/SelfDrivingCars/comments/1rfu3mo/comical_multiwaymo_interaction_at_an_intersection/",
"title": "Comical multi-Waymo interaction at an intersection",
"score": 1708,
"num_comments": 176,
"author": "danlev",
"subreddit": "SelfDrivingCars",
"permalink": "/r/SelfDrivingCars/comments/1rfu3mo/comical_multiwaymo_interaction_at_an_intersection/",
"published_at": "2026-02-27T02:18:35.407Z",
"created_utc": 1772158715,
"nsfw": false,
"thumbnail_url": "https://external-preview.redd.it/...",
"media_urls": null,
"selftext": null,
"hydrated": false,
"sort": "top",
"timeframe": "year",
"source": "web",
"post": {
"id": "1rfu3mo",
"name": "t3_1rfu3mo",
"content": {
"text": "Comical multi-Waymo interaction at an intersection",
"...": "..."
},
"author": {
"username": "danlev",
"display_name": "t2_3z9p1",
"...": "..."
},
"engagement": {
"likes": 1708,
"comments": 176,
"...": "..."
},
"flags": {
"nsfw": false,
"spoiler": false,
"deleted": false,
"...": "..."
},
"published_at": "2026-02-27T02:18:35.407Z",
"ext": {
"subreddit": "SelfDrivingCars",
"title": "...",
"selftext": null,
"...": "..."
},
"...": "(same shape as the v1 row)"
},
"computed": {
"engagement_rate": null,
"language": "en",
"content_category": "other",
"estimated_reach": null
},
"scraped_at": "2026-09-21T11:28:04.512Z"
},
{
"position": 2,
"id": "1tbaptd",
"title": "Dolgov posts video of Waymo freeway crash detection",
"score": 843,
"num_comments": 96,
"author": "versedaworst",
"...": "(same shape as row 1)"
},
"... 5 more rows (positions 3-7: 1pmvror, 1vffpzj, 1q6vxwr, 1pem9ep, 1ohtvrt) ..."
],
"note": null,
"next_cursor": "eyJjIjoiZXlKallXNWthV1JoZEdWelgzSmxkSFZ5Ym1Wa0lqb2llMXdpYzJWamRHbHZibDh4WDNCcGNHVnNhVzVsWHpCZloyeHZZbUZzWDIxdlpHbG1hV1Z5YzF3aU9sd2lNVndpTEZ3aWMyVmpkR2x2Ymw4eFgzQnBjR1ZzYVc1bFh6RmZiRzlqWVd4ZmJXOWthV1pwWlhKelhDSTZYQ0l5WENJc1hDSnpaV04wYVc5dVh6SmZjR2x3Wld4cGJtVmZOMTl6WTI5d1pWOXpkMmwwWTJobGNsd2lPbHdpTUZ3aUxGd2ljMlZqZEdsdmJsOHlYM0JwY0dWc2FXNWxYemhmY0c5emRGOXpaV0Z5WTJoY0lqcGNJamRjSWl4Y0luTmxZM1JwYjI1Zk0xOXdhWEJsYkdsdVpWOHdYM05wWkdWaVlYSmZZMjl0YlhWdWFYUjVYMmx1Wm05Y0lqcGNJakJjSW4waUxDSmxlSEJsY21sbGJtTmxYM05sYkdWamRHbHZiaUk2SW5CdmMzUmZkMmwwYUY5amIyMXRkVzVwZEhsZmMybGtaV0poY2lJc0ltVjRjR1Z5YVdWdVkyVmZkbVZ5YzJsdmJpSTZJbVJsWm1GMWJIUWlMQ0p6WldOMGFXOXVYekpmY0dsd1pXeHBibVZmT0Y5d2IzTjBYM05sWVhKamFDSTZJamNpZlE9PSIsImxrIjp7InNvcnQiOiJ0b3AiLCJ0aW1lZnJhbWUiOiJ5ZWFyIn0sInAiOjEsInBvcyI6NywicSI6IndheW1vIiwicyI6WyJ0M18xcmZ1M21vIiwidDNfMXRiYXB0ZCIsInQzXzFwbXZyb3IiLCJ0M18xdmZmcHpqIiwidDNfMXE2dnh3ciIsInQzXzFwZW05ZXAiLCJ0M18xb2h0dnJ0Il0sInN1YiI6IlNlbGZEcml2aW5nQ2FycyJ9"
}
}

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

FieldTypeExampleDescription
subredditstringSelfDrivingCars—
subreddit_scopestringSelfDrivingCars—
querystringwaymo—
typestringposts—
sourcestringweb—
sortstringtop—
timeframestringyear—
pageinteger1—
page_sizeinteger7—
itemsarray[3 items]The results.
notenullnull—
next_cursorstringeyJjIjoiZXlKallXNWthV1JoZEdWelgzSmxkSFZ5Ym1Wa…Pass back as cursor for the next page. null on the last page.
items[].input_subredditstringSelfDrivingCars—
items[].keywordstringwaymo—
items[].subreddit_scopestringSelfDrivingCars—
items[].typestringposts—
items[].statusstringok—
items[].positioninteger1—
items[].idstring1rfu3mo—
items[].namestringt3_1rfu3mo—
items[].urlstringhttps://www.reddit.com/r/SelfDrivingCars/comm…—
items[].titlestringComical multi-Waymo interaction at an interse…—
items[].scoreinteger1708—
items[].num_commentsinteger176—
items[].authorstringdanlev—
items[].subredditstringSelfDrivingCars—
items[].permalinkstring/r/SelfDrivingCars/comments/1rfu3mo/comical_m…—
items[].published_atstring2026-02-27T02:18:35.407Z—
items[].created_utcinteger1772158715—
items[].nsfwbooleanfalse—
items[].thumbnail_urlstringhttps://external-preview.redd.it/...—
items[].media_urlsnullnull—
items[].selftextnullnull—
items[].hydratedbooleanfalse—
items[].sortstringtop—
items[].timeframestringyear—
items[].sourcestringweb—
items[].postobject{…}—
items[].computedobject{…}—
items[].scraped_atstring2026-09-21T11:28:04.512Z—

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/reddit-subreddit-search/";
let params = {};
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.items ?? []));
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: type, sort, timeframe, include_body, source, trim. Set them on the first call; later pages reuse them.
  • Reddit Comment Replies — Structured Reddit data: send urls. Cursor-paginated, 1 credit per successful call.
  • Reddit Post Comments — Structured Reddit data: send urls. Cursor-paginated, 1 credit per successful call.
  • Reddit Post Search — Structured Reddit data: send queries. Cursor-paginated, 1 credit per successful call.
  • Reddit Post Transcript — Structured Reddit data: send urls. Single lookup, 1 credit per successful call.