Insight Social
GET /v1/reddit/subreddits/search

Reddit Subreddits Search API

Returns up to 25 communities matching a topic, each with the name at author.id, subscriber count, description and icon. include=details adds the creation date, weekly activity, rules and language.

10–260 credits, metered · cursor pagination · failed calls free · 10 free calls to start

curl "https://api.insightsocial.app/v1/reddit/subreddits/search?query=machine+learning" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "reddit",
"endpoint": "/v1/reddit/subreddits/search",
"schema_version": "2",
"data": {
"items": [
{
"author": {
"id": "<string>",
"username": "<string | null>",
"display_name": "<string | null>",
"avatar_url": "<string | null>",
"bio": "<string | null>",
"verified": "<boolean | null>",
"followers": "<integer | null>",
"followers_approximate": "<boolean | null>",
"following": "<integer | null>",
"posts_count": "<integer | null>",
"likes_count": "<integer | null>",
"url": "<string | null>",
"location": "<string | null>",
"external_url": "<string | null>",
"private": "<boolean | null>",
"joined_at": "<string | null>",
"last_post_at": "<string | null>",
"ext": "<object | null>"
}
}
],
"total": "<integer | null>",
"truncated": "<boolean | null>"
},
"pagination": {
"next_cursor": "<string | null>",
"has_more": "<boolean>"
},
"unavailable": [],
"credits_used": "<integer>"
}

When to use it

Use it to find which communities discuss a subject. Send include=details instead of one subreddit/details call per community, plus 1 per row filled, 26 at most.

Parameters

Query parameters for GET /v1/reddit/subreddits/search. Send your key in the x-api-key header.

NameRequiredDescription
queryYesTopic or keyword to find communities for.
cursorNoCursor to get more results. Get 'cursor' from the previous response.
includeNoSet to details (one token only) to fill author.joined_at, author.ext.weekly_active_users, author.ext.weekly_contributions, author.ext.rules_text and author.ext.language on every row in this one call (a row the details lookup's main source cannot answer gets only the creation date and the language, and is still billed).
limitNoTake the top N communities of the page (1 to 25). It is not a page size: the cursor still advances past the whole page, so rows beyond N are not returned by the next page.

Response fields

The same unified schema every platform returns, so code written for Reddit works on the other eight. A field the platform did not provide is null and listed in unavailable.

FieldTypeNotes
idstringAn identifier, always a string. Never parse it as a number: several platforms use ids above 2^53.
usernamestring | null
display_namestring | null
avatar_urlstring | null
biostring | null
verifiedboolean | null
followersinteger | nullA count. null when the platform does not expose it; 0 only when it is really zero.
followers_approximateboolean | null
followinginteger | nullA count. null when the platform does not expose it; 0 only when it is really zero.
posts_countinteger | nullA count. null when the platform does not expose it; 0 only when it is really zero.
likes_countinteger | nullA count. null when the platform does not expose it; 0 only when it is really zero.
urlstring | null
locationstring | null
external_urlstring | null
privateboolean | null
joined_atstring | nullISO-8601 timestamp in UTC, ending in Z.
last_post_atstring | nullISO-8601 timestamp in UTC, ending in Z.
extobject | nullPlatform-specific fields, snake_case.

Every field, error and example is in the Reddit Subreddits Search API reference.

How much does the Reddit Subreddits Search API cost?

Metered: 10–260 credits a call. The ceiling is reserved when the call starts and you are charged what it actually read.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Know the price first

    Add dry_run=1 and the response quotes the call without making it. Nothing is charged.

  • One balance

    API calls and Chrome extension exports share the same credits, on the free plan too.

Reddit Subreddits Search API: frequently asked questions

Send GET /v1/reddit/subreddits/search with the query parameter and your key in the x-api-key header. Returns up to 25 communities matching a topic, each with the name at author.id, subscriber count, description and icon. include=details adds the creation date, weekly activity, rules and language.