Skip to content

reddit.com Search Posts API

Searches Reddit posts and returns the matching posts, plus a cursor for the next results.

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

Parameters

NameRequiredExampleDescription
querystring in queryOptionalpython asynciosearch words; Reddit operators such as author:name, flair:name, site:example.com, self:yes and title:word work
subredditstring in queryOptionalNonesubreddit name to search within (e.g. python); null searches all of Reddit
sortstring in queryOptionalrelevancerelevance, hot, top, new or comments (most commented)
time_filterstring in queryOptionalallonly posts from the last hour, day, week, month, year, or all
limitinteger in queryOptional14number of results to return, 1 to 50 (results come in batches of about 7, so larger values take longer)
cursorstring in queryOptionalNonenext_cursor from a previous call with the same query, to continue after its results

Response fields

querystringe.g."python asyncio"
subredditnull
returnedintegere.g.14
resultsobject[]12 fields
idstringe.g."t3_1vye1o2"
titlestringe.g."asyncio explanation"
authorstringe.g."Trick_Floor_519"
subredditstringe.g."learnpython"
scoreintegere.g.0
comment_countintegere.g.9
createdstringe.g."2026-08-25T22:02:21.732000+0000"
permalinkstringe.g."https://www.reddit.com/r/learnpython/comments/1vye1o2/asyncio_explanation/"
thumbnailnull
matching_snippetnull
nsfwbooleane.g.false
spoilerbooleane.g.false
next_cursorstringe.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
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.