Skip to content

reddit.com Search Subreddits API

Searches Reddit communities by name and topic and returns the matching subreddits, plus a cursor for more.

GEThttps://api.maviapi.com/v1/sites/reddit/search_subreddits5 credits per call

Parameters

NameRequiredExampleDescription
querystring in queryOptionalpythonsearch words, e.g. python or hiking
cursorstring in queryOptionalNonenext_cursor from a previous call with the same query, to continue after its results

Response fields

querystringe.g."python"
returnedintegere.g.10
subredditsobject[]8 fields
namestringe.g."Python"
idstringe.g."t5_2qh0y"
urlstringe.g."https://www.reddit.com/r/Python/"
descriptionstringe.g."The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. --- If you have questions or are new to Python use r/LearnPython"
weekly_visitorsintegere.g.89865
weekly_contributionsintegere.g.568
iconstringe.g."https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png?width=64&frame=1&auto=webp&s=92baaacc951d52b5071629852df033d53cafa5ec"
nsfwbooleane.g.false
next_cursorstringe.g."eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIwXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMF9zdWJyZWRkaXRfc2VhcmNoXCI6XCIxMFwifSIsImV4cGVyaWVuY2Vfc2VsZWN0aW9uIjoiY29tbXVuaXR5IiwiZXhwZXJpZW5jZV92ZXJzaW9uIjoiZGVmYXVsdCIsInNlY3Rpb25fMl9waXBlbGluZV8wX3N1YnJlZGRpdF9zZWFyY2giOiIxMCJ9"

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/reddit/search_subreddits' \
  -H "Authorization: Bearer $MAVI_KEY"

reddit.com Search Subreddits API questions

What you get, what it costs and how to call it.

What does the reddit.com Search Subreddits API return?

Searches Reddit communities by name and topic and returns the matching subreddits, plus a cursor for more. The response has query, returned, subreddits and next_cursor.

Which parameters does the reddit.com Search Subreddits API take?

Every parameter of GET /search_subreddits is optional. You can pass query and cursor.

How much does one reddit.com Search Subreddits API call cost?

One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.

How do I call the reddit.com Search Subreddits API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/reddit/search_subreddits with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.

Is the reddit.com Search Subreddits API official?

No. It is an independent, hosted API from maviapi for the public data on reddit.com, and it is not made, endorsed or supported by reddit.com. Its parameters and response fields are documented on this page.