scraper
Back to API docs

Overview

  • Overview

APIs

  • POSTPost
  • POSTSearch
  • POSTSubreddit
  • POSTUser Posts
  • POSTUser Comments
  • POSTCommunity

Reddit Community

1 credit

Discover subreddits by keyword.

POST/api/v1/tools/reddit/community

Parameters

querystringrequired

Keyword to find subreddits by (e.g. "machine learning").

maxItemsnumber

Maximum number of subreddits to return. Defaults to 50. Set 0 to return everything the call can fetch. Upper bound is determined by your plan.

includeNsfwboolean

Include over-18 communities. Defaults to true.

depthstring

Field preset used when fields is omitted: basic, the default, returns every field except the HTML text, and detailed also returns it. fields overrides depth.

fieldsstring[]

Subreddit fields to include. Overrides depth. Use ["*"] for all fields.

Response Schema

dataobject

Community discovery result

subredditsobject[]

Matching subreddits in relevance order. Fields depend on depth and fields. The main fields are listed below.

countnumber

Number of subreddits returned

truncatedboolean

True when the request budget stopped the walk before maxItems was met. This includes a maxItems of 0.

metaobject

Request metadata

toolstring

Tool name (reddit-community)

creditsUsednumber

Credits consumed (1)

requestIdstring

Unique request ID

Request

curl -X POST https://scraper.run/api/v1/tools/reddit/community \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"query": "machine learning",
"maxItems": 10
}'

Response Example

{
"data": {
"subreddits": [
{
"type": "subreddit",
"id": "2r3gv",
"fullName": "t5_2r3gv",
"name": "MachineLearning",
"namePrefixed": "r/MachineLearning",
"title": "Machine Learning",
"publicDescription": "Beginners please see learnmachinelearning",
"description": "Welcome to r/MachineLearning. Read the rules before you post.",
"subscribers": 3000000,
"activeUserCount": 1850,
"over18": false,
"quarantine": false,
"subredditType": "public",
"submissionType": "any",
"wikiEnabled": true,
"lang": "en",
"advertiserCategory": "Technology",
"communityIcon": "https://styles.redditmedia.com/t5_2r3gv/styles/communityIcon_example.png",
"createdUtc": 1248880800,
"created": "2009-07-29T15:20:00.000Z",
"url": "https://www.reddit.com/r/MachineLearning/",
"scrapedAt": "2026-04-08T18:00:00.000Z"
}
],
"count": 1,
"truncated": false
},
"meta": {
"tool": "reddit-community",
"creditsUsed": 1,
"requestId": "req_abc123"
}
}