SignalShelf · Developer documentation

Reddit · post

Read one public Reddit post. GET /v1/reddit/post accepts your x-api-key header. Costs 3 credits per successful fresh call; failures and opt-in cache hits (cache_max_age) are free. Native path: GET /api/v1/web/reddit/post. Same request parameters and JSON shape as the reference API, so you can switch by changing the base URL.

Request parameters

One Reddit post: title, text, author, link, score, upvote ratio, comment count, flair and timestamps. Read with a logged-in account.

ParameterTypeRequiredDescription
urlstringYesCanonical Reddit post URL, redd.it link or post id.
trimbooleanNoDrop selftext_html to shrink the response.
freshnessstringNo24h (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.

REQUEST EXAMPLE
curl "$SIGNALSHELF_BASE_URL/v1/reddit/post?url=url" \
  -H "x-api-key: $SIGNALSHELF_API_KEY"

Response

Returns success, credits_charged and credits_remaining, plus the fields of the source, in the same JSON shape as the reference API.

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.

Errors and limits

More Reddit endpoints

12 other Reddit endpoints use the same key and credits.

Reddit subreddit Reddit post comments Reddit user posts Reddit user comments Reddit post loggedin Reddit subreddit loggedin
Explore the API in your workspace. Sample results and accepted cache hits cost zero credits. Open the playground →