One call for a thread
Give /v1/reddit/post/comments a post URL or its id. You get the post and its first page of comments, about 100, in the order Reddit shows them.
curl -H "x-api-key: $SIGNALSHELF_KEY" \
"https://signalshelf.dev/v1/reddit/post/comments?url=https://www.reddit.com/r/technology/comments/1y08j0z/&trim=true"What comes back
The post carries its title, author, subreddit, score, upvote ratio, comment count, flair, link, self-text and creation time. Each comment carries its author, text, score, depth, parent id, creation time and permalink.
Depth and parent id let you rebuild the reply tree. A comment with depth 0 replies to the post. Anything deeper points at the comment it answers.
Add trim=true to drop the HTML copies of the text and shrink the response.
| Field | Example |
|---|---|
| post.score | 21412 |
| post.upvote_ratio | 0.94 |
| post.num_comments | 1841 |
| comments[].score | 11627 |
| comments[].depth | 0 |
| comments[].parent_id | t3_1y08j0z |
The other Reddit endpoints
The same data is available for listings. Each list returns about 25 items and an after cursor for the next page.
| Endpoint | What you get | Credits |
|---|---|---|
/v1/reddit/post | One post with score, ratio and comment count | 3 |
/v1/reddit/post/comments | The post plus about 100 comments | 4 |
/v1/reddit/subreddit | Hot, new, top, rising or controversial posts | 3 |
/v1/reddit/user/posts | A user’s submitted posts | 3 |
/v1/reddit/user/comments | A user’s comments, with the post each one replies to | 3 |
/v1/reddit/search/loggedin | Reddit’s own post search, with a cursor | 4 |
Speed, and why calls are paced
These calls take 5 to 10 seconds, slower than most SignalShelf endpoints, because each one loads the real Reddit page.
Requests are paced so a burst of traffic doesn’t get our access blocked. If you send a lot at once, some calls return 503 SERVER_BUSY with a Retry-After header and cost nothing. For hundreds of lookups, submit a bulk job instead: it queues the work and retries busy items for you.
Limits worth knowing
You get the first page of comments, about 100. Deeper “load more” branches on very large threads aren’t fetched yet.
Content you can’t see while logged in to Reddit isn’t returned. A failed call gives your credit back.
Try it
You get 1,000 free credits, no card. Paste a thread URL into the playground and look at the JSON before writing any code.