Reddit API in JavaScript
Read Reddit from Node.js with fetch. One GET returns posts as JSON. You don't need an OAuth app or an SDK, and the same code runs in Deno, Bun and edge runtimes.

The job
Reddit requires approval for new API access and set 2026-10-31 as the date it stops accepting new public requests. That puts many JavaScript bots built on the old endpoints at risk. This route needs only a key from this service and a standard fetch call.
The Reddit API guide covers what changed, and the search API guide covers query options.
How it works
Set the key
Read
CHATTERAPI_KEYfrom your environment.Call search
fetch/v1/reddit/search?q=...with theAuthorization: Bearerheader.Page through results
Pass
nextCursorinto the next request until it comes back empty.
Endpoints that do it
| Endpoint | What it's for | Credits |
|---|---|---|
| Search postsGET /v1/reddit/search | Posts by keyword. | 2 credits |
| List subreddit postsGET /v1/reddit/subreddits/{name}/posts | A community's posts. | 2 credits |
| Get a thread with commentsGET /v1/reddit/threads/{id} | A post with its comments. | 3 credits |
Free tools for the same job
Try the job in a browser first. These tools call the same endpoints, and you don't need a key or any code.
The JavaScript call and its response
Open the JavaScript tab for the code.
curl "https://api.chatterapi.com/v1/reddit/search?q=best+crm+for+small+business&time=year" \
-H "Authorization: Bearer $CHATTERAPI_KEY"{
"data": [
{
"id": "1wdihhj",
"fullname": "t3_1wdihhj",
"title": "What CRM should a small business use?",
"body": "We’re a small B2B business with 6 people and sales is still pretty founder led, but revenue has grown enough that keeping leads, follow ups and customer conversations spread across spreadsheets and inboxes is starting to…",
"author": "NotedWhisky",
"subreddit": "CRM",
"permalink": "/r/CRM/comments/1wdihhj/what_crm_should_a_small_business_use/",
"url": "https://www.reddit.com/r/CRM/comments/1wdihhj/what_crm_should_a_small_business_use/",
"externalUrl": null,
"score": 51,
"numComments": 186,
"upvoteRatio": null,
"createdAt": "2026-09-11T14:52:16.000Z",
"nsfw": false,
"locked": null,
"media": null
},
{
"id": "1vmy4xb",
"fullname": "t3_1vmy4xb",
"title": "If You Had to Pick the Best CRM for Small Business Today, What Would It Be?",
"body": "I've spent the last few days reading reviews and watching videos, and somehow I'm even more undecided than when I started.\n\nEvery CRM looks amazing on its website, but that doesn't tell you what it's like after you've be…",
"author": "Living_Dependent242",
"subreddit": "CRMSoftware",
"permalink": "/r/CRMSoftware/comments/1vmy4xb/if_you_had_to_pick_the_best_crm_for_small/",
"url": "https://www.reddit.com/r/CRMSoftware/comments/1vmy4xb/if_you_had_to_pick_the_best_crm_for_small/",
"externalUrl": null,
"score": 10,
"numComments": 56,
"upvoteRatio": null,
"createdAt": "2026-08-13T02:25:31.000Z",
"nsfw": false,
"locked": null,
"media": null
}
],
"page": {
"nextCursor": "AX-v…",
"hasMore": true
}
}Recorded from a live call on . Long text is shortened and the cursor is cut. A live key is charged 2 credits for this call. A test key returns this same sample for 0 credits.
What it won't do
- Reddit is read-only here.
- Keep the key on the server.
- Removed content is not returned.
Questions
Do I need a Reddit app?
Does it work with Node 18?
fetch.