← All guides
API guides

Get a Reddit thread as JSON, with the votes still attached.

Reddit’s RSS feeds used to be the easy way to read a thread. They never carried scores, and today they mostly return 404 or 429. Here is how to get a post and its comments with the numbers that matter, and what to expect from each call.

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.

EXAMPLE
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.

FieldExample
post.score21412
post.upvote_ratio0.94
post.num_comments1841
comments[].score11627
comments[].depth0
comments[].parent_idt3_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.

EndpointWhat you getCredits
/v1/reddit/postOne post with score, ratio and comment count3
/v1/reddit/post/commentsThe post plus about 100 comments4
/v1/reddit/subredditHot, new, top, rising or controversial posts3
/v1/reddit/user/postsA user’s submitted posts3
/v1/reddit/user/commentsA user’s comments, with the post each one replies to3
/v1/reddit/search/loggedinReddit’s own post search, with a cursor4

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.

API quickstart

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.

Open the playground