Reddit · search
Search indexed public Reddit posts. GET /v1/reddit/search accepts your x-api-key header. Costs 5 credits per successful fresh call; failures and opt-in cache hits (cache_max_age) are free. Native path: GET /api/v1/web/reddit/search. Same request parameters and JSON shape as the reference API, so you can switch by changing the base URL.
Request parameters
Search-engine discovery through Serper, not Reddit native search. Returns indexed post URLs, titles and snippets. No complete post body, votes, author or comment counts; use the post endpoint for feed fields. Index coverage and freshness vary.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keywords to find in indexed public Reddit posts. |
cursor | string | No | Search-engine page number, 1–10 (default 1); not a Reddit cursor. |
freshness | string | No | 24h (default), 1h, 7d, or live. Accepted cache hits are free; live forces refresh except simultaneous requests may share newly fetched data. |
Code examples
Set SIGNALSHELF_BASE_URL (https://signalshelf.dev) and SIGNALSHELF_API_KEY on your server.
Replace the placeholder values with real ones before running.
curl "$SIGNALSHELF_BASE_URL/v1/reddit/search?query=query" \
-H "x-api-key: $SIGNALSHELF_API_KEY"const response = await fetch(process.env.SIGNALSHELF_BASE_URL + "/v1/reddit/search?query=query", {
headers: { 'x-api-key': process.env.SIGNALSHELF_API_KEY },
});
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body);import os, requests
response = requests.get(
os.environ['SIGNALSHELF_BASE_URL'] + "/v1/reddit/search?query=query",
headers={'x-api-key': os.environ['SIGNALSHELF_API_KEY']},
timeout=30,
)
response.raise_for_status()
print(response.json())Response
Returns success, credits_charged and credits_remaining, plus the fields of the source, in the same JSON shape as the reference API.
More results: cursor (Search-engine page number, 1–10 (default 1); not a Reddit cursor).
Errors and credits
Failed calls cost nothing. 400: invalid parameters. 401: missing or revoked key. 402: no credits left. 404: not found at the source. 429: rate limit. 502 or 503: the source blocked or failed the lookup; retry later.
More Reddit endpoints
12 other Reddit endpoints use the same key and credits.