Search Reddit posts by author, subreddit, title, text, link and date.
GET/api/posts/search
- Takes: Username
- Takes: URL
- Passive: the target is not contacted
Keyword search on posts is simple keyword matching. Results can also be returned as rss or jsonfeed with format.
Query parameters
authorUsername of the poster; u/ prefix is ignored
subredditSubreddit name; r/ prefix is ignored
titleKeywords in the title
selftextKeywords in the post body
queryKeywords in title or body
urlPosts linking to this URL
url_exactMatch the URL exactly
afterOnly items after this date: epoch, partial ISO 8601 or relative like 2d
beforeOnly items before this date
limit1 to 100, or auto
sortOrder by created_utc
fieldsComma-separated fields to return
Response fields · 13ShowHide
id
Post ID (base 36)
author
Username of the poster
author_fullname
Full account name of the poster
subreddit
Subreddit name
subreddit_id
Subreddit ID
title
Post title
selftext
Post body text
url
Linked URL
score
Score
num_comments
Number of comments
over_18
Marked adult
created_utc
Creation time, epoch seconds
retrieved_on
When the archive retrieved it
curl 'https://arctic-shift.photon-reddit.com/api/posts/search'{
"data": [
{
"id": "abc123",
"author": "example_user",
"subreddit": "example_sub",
"title": "An example post",
"url": "https://example.com/page",
"score": 12,
"num_comments": 3,
"created_utc": 1700000000
}
]
}