SignalShelf · Developer documentation

Reddit · post · comments

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

Request parameters

Public post feed (Reddit RSS): the post plus its comments (author, text, time, permalink), newest first, up to about 500. Scores, reply nesting and comment counts are not in the feed.

ParameterTypeRequiredDescription
urlstringYesPost URL (https://www.reddit.com/r/<sub>/comments/<id>/...) or the post id.
trimbooleanNoDrop body_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.

REQUEST EXAMPLE
curl "$SIGNALSHELF_BASE_URL/v1/reddit/post/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2Ftechnology%2Fcomments%2F1xy9znd%2F" \
  -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

4 other Reddit endpoints use the same key and credits.

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