Reddit Subreddit API
Get a community's card: name, description, weekly visitors and whether it is marked NSFW.
- 1 credit per call
- Failed calls are free
- Updated
- reddit.subreddit.get
{ "title": null, "active_users": null, "created_utc": null, "description": "A community dedicated to all things web development: both front-end and back-end. For more design-related questions, try /r/web_design.", "nsfw": false, "subscribers": null, "url": "https://www.reddit.com/r/webdev/", "weekly_visitors": 459900}
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| name | string | yes | The community's name, such as askreddit or r/askreddit, or its link. | webdev |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | What it is | Example |
|---|---|---|---|
| title | null | The community's title, when it has one. | null |
| active_users | null | Members online now, when Reddit shows it. | null |
| created_utc | null | When the community was created, when Reddit shows it. | null |
| description | string | The community's description. | A community dedicated to all things web development: both front… |
| nsfw | boolean | Whether Reddit marks it as adult content. | false |
| subscribers | null | Members, when Reddit shows the count. | null |
| url | string | The community's page. | https://www.reddit.com/r/webdev/ |
| weekly_visitors | integer | Weekly visitors, as Reddit shows them. | 459,900 |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "reddit.subreddit.get", "input": { "name": "webdev" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "reddit.subreddit.get", "input": { "name": "webdev" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "reddit.subreddit.get", "input": { "name": "webdev" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
https://data.upscrape.com/mcp
With Upscrape, get the Reddit subreddit for name "webdev". Tell me what it costs before you run it, then show the results as a table.
More from the Reddit API
Reddit Subreddit API FAQ
The short answers. The docs have the long ones.
How much does the Reddit Subreddit API cost?
1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Send name. The input fields below list every option with its type and limits.
Do I need a Reddit login?
No. It reads public Reddit data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds reddit.subreddit.get, checks its price and runs it with the same credits as the REST API.
Your first Reddit call is free.
Up to 100 free credits to start, no card needed.