Reddit User Posts API
The Reddit User Posts API returns the posts a user submitted on
Reddit
as structured JSON, in the order Reddit lists them: new, hot, top or controversial. Each post comes with its title,
subreddit, score, comment count, text and media, and next_page_token pages through the rest. Look a user
up by their username, such as the author.username of a Reddit Search API
result, or by a link to their profile. Reddit returns no posts for users who hide them from their profile, and NSFW posts
and NSFW profiles are left out unless safe is off.
API Parameters
User
-
- Name
-
username - Required
- Required
- Description
-
The username, for example
thisisbillgates, or a link to the profile, for examplehttps://www.reddit.com/user/thisisbillgates/. Use theauthor.usernameof a Reddit Search API result, or look the user up first with the Reddit User API.
Sorting
-
- Name
-
sort_by - Required
- Optional
- Description
-
Sorts the posts. Posts the user pinned to their profile come first, with
is_pinnedset. Options are:new- newest first (default)hot- currently populartop- highest scorecontroversial- most mixed votes
-
- Name
-
time_period - Required
- Optional
- Description
-
Limits
topposts to a time range, and is only accepted with that sort. Reddit's default isany_time. Options are:last_hourlast_daylast_weeklast_monthlast_yearany_time
Filters
-
- Name
-
safe - Required
- Optional
- Description
-
Controls NSFW content.
active(default) leaves NSFW posts out and answers an NSFW profile with an error,offincludes them.
Pagination
-
- Name
-
next_page_token - Required
- Optional
- Description
-
The token for the next page of posts. Use the
pagination.next_page_tokenvalue from the previous response with the sameusername,sort_byandtime_period. A page holds about 25 posts, as on Reddit, which lists up to about 1,000 posts per sort.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
reddit_user_posts.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Posts
https://www.searchapi.io/api/v1/search?engine=reddit_user_posts&username=thisisbillgates
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "reddit_user_posts",
"username": "thisisbillgates"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_r7K8ndWgWe1iXDL23P45k2mY",
"status": "Success",
"created_at": "2026-10-28T22:00:11Z",
"request_time_taken": 1.15,
"parsing_time_taken": 0.03,
"total_time_taken": 1.18,
"request_url": "https://www.reddit.com/user/thisisbillgates/submitted/?sort=new",
"html_url": "https://www.searchapi.io/api/v1/searches/search_r7K8ndWgWe1iXDL23P45k2mY.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_r7K8ndWgWe1iXDL23P45k2mY"
},
"search_parameters": {
"engine": "reddit_user_posts",
"username": "thisisbillgates"
},
"posts": [
{
"position": 1,
"id": "t3_1x4yos5",
"title": "To prevent up to 80% of contrails, and eliminate almost 2% of *all* global warming, we would need to adjust the flight routes of just 5% of flights worldwide.",
"link": "https://www.reddit.com/r/climatechange/comments/1x4yos5/to_prevent_up_to_80_of_contrails_and_eliminate/",
"type": "link",
"author": {
"username": "thisisbillgates",
"id": "t2_91u3j",
"link": "https://www.reddit.com/user/thisisbillgates/"
},
"subreddit": {
"name": "climatechange",
"id": "t5_2rawx",
"link": "https://www.reddit.com/r/climatechange/"
},
"score": 2,
"upvote_ratio": 1.0,
"comments": 2,
"external_link": "https://i.redd.it/mh0hw95az8vh1.png",
"domain": "i.redd.it",
"removed_by": "moderator",
"iso_date": "2026-10-13T14:49:34Z"
},
"..."
],
"pagination": {
"next_page_token": "dDNfMWNrM25tNQ=="
}
}
Top Posts of All Time
https://www.searchapi.io/api/v1/search?engine=reddit_user_posts&sort_by=top&time_period=any_time&username=nasa
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "reddit_user_posts",
"username": "nasa",
"sort_by": "top",
"time_period": "any_time"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_mrlde4qgnnOHQyB9gL8Pvjx0",
"status": "Success",
"created_at": "2026-10-28T22:00:13Z",
"request_time_taken": 0.94,
"parsing_time_taken": 0.03,
"total_time_taken": 0.97,
"request_url": "https://www.reddit.com/user/nasa/submitted/?sort=top&t=all",
"html_url": "https://www.searchapi.io/api/v1/searches/search_mrlde4qgnnOHQyB9gL8Pvjx0.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_mrlde4qgnnOHQyB9gL8Pvjx0"
},
"search_parameters": {
"engine": "reddit_user_posts",
"username": "nasa",
"sort_by": "top",
"time_period": "any_time"
},
"posts": [
{
"position": 1,
"id": "t3_vxdrjs",
"title": "The first full-color images from the James Webb Space Telescope [OC]",
"link": "https://www.reddit.com/r/pics/comments/vxdrjs/the_first_fullcolor_images_from_the_james_webb/",
"type": "gallery",
"author": {
"username": "nasa",
"id": "t2_1dkvvygb",
"link": "https://www.reddit.com/user/nasa/"
},
"subreddit": {
"name": "pics",
"id": "t5_2qh0u",
"link": "https://www.reddit.com/r/pics/",
"icon": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png"
},
"score": 130248,
"upvote_ratio": 0.949400723654455,
"comments": 2883,
"images": [
{
"image": "https://preview.redd.it/the-first-full-color-images-from-the-james-webb-space-v0-t6332hcll5b91.jpg?width=1080&crop=smart&auto=webp&s=f801c16d91a02bb8b4bfd660ac744e940a8607d0",
"width": 2799,
"height": 2856
},
"..."
],
"iso_date": "2022-07-12T15:21:41Z",
"is_archived": true
},
"..."
],
"pagination": {
"next_page_token": "dDNfcGtic2Yy"
}
}
Pagination
Pass the pagination.next_page_token value from a response as next_page_token,
with the same username, sort_by and time_period, to get the next page.
https://www.searchapi.io/api/v1/search?engine=reddit_user_posts&next_page_token=dDNfcGtic2Yy&sort_by=top&time_period=any_time&username=nasa
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "reddit_user_posts",
"username": "nasa",
"sort_by": "top",
"time_period": "any_time",
"next_page_token": "dDNfcGtic2Yy"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_QNVPZBKo24jcw89yp8y471M9",
"status": "Success",
"created_at": "2026-10-28T22:00:15Z",
"request_time_taken": 1.25,
"parsing_time_taken": 0.03,
"total_time_taken": 1.28,
"request_url": "https://www.reddit.com/user/nasa/submitted/?sort=top&t=all",
"html_url": "https://www.searchapi.io/api/v1/searches/search_QNVPZBKo24jcw89yp8y471M9.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_QNVPZBKo24jcw89yp8y471M9"
},
"search_parameters": {
"engine": "reddit_user_posts",
"username": "nasa",
"sort_by": "top",
"time_period": "any_time",
"next_page_token": "dDNfcGtic2Yy"
},
"posts": [
{
"position": 1,
"id": "t3_z81bvi",
"title": "We heard folks were interested in high-res Artemis I photos",
"link": "https://www.reddit.com/user/nasa/comments/z81bvi/we_heard_folks_were_interested_in_highres_artemis/",
"type": "image",
"author": {
"username": "nasa",
"id": "t2_1dkvvygb",
"link": "https://www.reddit.com/user/nasa/"
},
"subreddit": {
"name": "u_nasa",
"id": "t5_k5gc6",
"link": "https://www.reddit.com/user/nasa/"
},
"score": 1628,
"upvote_ratio": 0.9969116738727609,
"comments": 57,
"thumbnail": "https://preview.redd.it/we-heard-folks-were-interested-in-high-res-artemis-i-photos-v0-03zl1xzmkx2a1.jpg?width=1080&crop=smart&auto=webp&s=651e9f8d02d51011752dd15a612d25c23dd7323e",
"image": "https://i.redd.it/03zl1xzmkx2a1.jpg",
"iso_date": "2022-11-29T18:09:03Z"
},
"..."
],
"pagination": {
"next_page_token": "dDNfeXg0a2sx"
}
}