reddit.com Search Posts API
Searches Reddit posts and returns the matching posts, plus a cursor for the next results.
https://api.maviapi.com/v1/sites/reddit/search_posts5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
querystring in query | Optional | python asyncio | search words; Reddit operators such as author:name, flair:name, site:example.com, self:yes and title:word work |
subredditstring in query | Optional | None | subreddit name to search within (e.g. python); null searches all of Reddit |
sortstring in query | Optional | relevance | relevance, hot, top, new or comments (most commented) |
time_filterstring in query | Optional | all | only posts from the last hour, day, week, month, year, or all |
limitinteger in query | Optional | 14 | number of results to return, 1 to 50 (results come in batches of about 7, so larger values take longer) |
cursorstring in query | Optional | None | next_cursor from a previous call with the same query, to continue after its results |
Response fields
querye.g."python asyncio"subredditreturnede.g.14results
ide.g."t3_1vye1o2"titlee.g."asyncio explanation"authore.g."Trick_Floor_519"subreddite.g."learnpython"scoree.g.0comment_counte.g.9createde.g."2026-08-25T22:02:21.732000+0000"permalinke.g."https://www.reddit.com/r/learnpython/comments/1vye1o2/asyncio_explanation/"thumbnailmatching_snippetnsfwe.g.falsespoilere.g.falsenext_cursore.g."eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMlwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCI0XCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMTBfcXVlcnlfc3VnZ2VzdGlvbnNcIjpcIjZcIixcInNlY3Rpb25fMl9waXBlbGluZV84X2R5bmFtaWNfMV9wb3N0X3NlYXJjaFwiOlwiMTRcIixcInNlY3Rpb25fM19waXBlbGluZV8wX2R5bmFtaWNfMF9zdWJyZWRkaXRfc2VhcmNoXCI6XCI1XCIsXCJzZWN0aW9uXzNfcGlwZWxpbmVfMF9keW5hbWljXzFfYXV0aG9yX3NlYXJjaFwiOlwiMVwifSIsImV4cGVyaWVuY2Vfc2VsZWN0aW9uIjoicG9zdHNfdjIiLCJleHBlcmllbmNlX3ZlcnNpb24iOiJkZXNrdG9wIiwic2VjdGlvbl8yX3BpcGVsaW5lXzhfZHluYW1pY18xX3Bvc3Rfc2VhcmNoIjoiMTQifQ=="Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/reddit/search_posts' \
-H "Authorization: Bearer $MAVI_KEY"reddit.com Search Posts API questions
What you get, what it costs and how to call it.
What does the reddit.com Search Posts API return?
Searches Reddit posts and returns the matching posts, plus a cursor for the next results. The response has query, subreddit, returned, results and next_cursor.
Which parameters does the reddit.com Search Posts API take?
Every parameter of GET /search_posts is optional. You can pass query, subreddit, sort, time_filter, limit and cursor.
How much does one reddit.com Search Posts 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 Posts API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/reddit/search_posts 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 Posts 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.