---
title: "Reddit API: post search, subreddit feeds, rules as JSON"
description: "Reddit API for post search, subreddit feeds and rules, user profiles and history, front-page feeds and posts by domain as JSON. 1 credit per call."
url: https://perceptlayer.com/apis/reddit
---

[APIs](https://perceptlayer.com/apis) / [Social media](https://perceptlayer.com/verticals/social) / Reddit

1 credit per call 14 endpoints 28 datapoints 

# Reddit API

Reddit API for post search, subreddit feeds and rules, user profiles and history, front-page feeds and posts by domain as JSON. 1 credit per call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Reddit

GET /v1/reddit/search-posts?query=openai&sort=top&t=week&limit=10 

```
{
  "success": true,
  "data": {
    "query": "openai",
    "sort": "top",
    "time": "week",
    "posts": [
      {
        "id": "1xtu7qr",
        "fullname": "t3_1xtu7qr",
        "title": "What a poor soul..",
        "author": "Careless_Scallion_82",
        "author_fullname": "t2_dl4ogz77",
        "subreddit": "memes",
        "subreddit_id": "t5_2qjpg",
        "subreddit_subscribers": 36169974,
        "permalink": "https://www.reddit.com/r/memes/comments/1xtu7qr/what_a_poor_soul/",
        "url": "https://i.redd.it/y1amb0q0x11i1.jpeg",
        "domain": "i.redd.it",
        "post_type": "image",
        "score": 31390,
        "upvote_ratio": 0.97,
        "num_comments": 107,
        "num_crossposts": 3,
        "total_awards_received": 0,
        "author_flair": ":Doot: Doot :Doot:",
        "created_at": "2026-11-11T21:27:52+00:00",
        "created_utc": 1794432472,
        "over_18": false,
        "spoiler": false,
        "stickied": false,
        "locked": false,
        "archived": false,
        "is_original_content": false,
        "thumbnail_url": "https://preview.redd.it/y1amb0q0x11i1.jpeg?width=140&height=129&auto=webp&s=4ac7bb67c19333cb6450b01ffd69bfddfc8b4cc6",
        "preview_url": "https://preview.redd.it/y1amb0q0x11i1.jpeg?auto=webp&s=bcfc8a98daafea3122f2da8fbf43f11deda4629e"
      },
      {
        "id": "1xsql0c",
        "fullname": "t3_1xsql0c",
        "title": "Sad, hopeless eyes💔",
        "author": "SaiMan2303",
        "author_fullname": "t2_1ukm55dgp0",
        "subreddit": "SipsTea",
        "subreddit_id": "t5_5tdqj0",
        "subreddit_subscribers": 4117827,
        "permalink": "https://www.reddit.com/r/SipsTea/comments/1xsql0c/sad_hopeless_eyes/",
        "url": "https://i.redd.it/yletoele5t0i1.jpeg",
        "domain": "i.redd.it",
        "post_type": "image",
        "score": 7542,
        "upvote_ratio": 0.98,
        "num_comments": 51,
        "num_crossposts": 1,
        "total_awards_received": 0,
        "flair": {
          "text": "Wait a damn minute!:Wayment:",
          "text_color": "dark",
          "background_color": "#edeff1"
        },
        "author_flair": ":vip-green-v::vip-green-i::vip-green-p::KermitSlowerSip_APNG:",
        "created_at": "2026-11-10T15:58:48+00:00",
        "created_utc": 1794326328,
        "over_18": false,
        "spoiler": false,
        "stickied": false,
        "locked": false,
        "archived": false,
        "is_original_content": false,
        "thumbnail_url": "https://preview.redd.it/yletoele5t0i1.jpeg?width=140&height=133&auto=webp&s=b0079f5e92df9912cecb959180633dc372ba6d9b",
        "preview_url": "https://preview.redd.it/yletoele5t0i1.jpeg?auto=webp&s=00fa4e75ed355703a1cce28403bbd6b248f71b16"
      },
      {
        "id": "1xrz1mp",
        "fullname": "t3_1xrz1mp",
        "title": "NVIDIA's relationship with AI models got a plot twist 💀😂",
        "author": "RyzovaTech",
        "author_fullname": "t2_2qc1d44w1m",
        "subreddit": "ChatGPT",
        "subreddit_id": "t5_7hqomg",
        "subreddit_subscribers": 11744230,
        "permalink": "https://www.reddit.com/r/ChatGPT/comments/1xrz1mp/nvidias_relationship_with_ai_models_got_a_plot/",
        "url": "https://i.redd.it/eche52g3om0i1.jpeg",
        "domain": "i.redd.it",
        "post_type": "image",
        "score": 6354,
        "upvote_ratio": 0.98,
        "num_comments": 78,
        "num_crossposts": 2,
        "total_awards_received": 0,
        "flair": {
          "text": "Funny ",
          "text_color": "light",
          "background_color": "#0dd3bb"
        },
        "created_at": "2026-11-09T18:11:08+00:00",
        "created_utc": 1794247868,
        "over_18": false,
        "spoiler": false,
        "stickied": false,
        "locked": false,
        "archived": false,
        "is_original_content": false,
        "thumbnail_url": "https://preview.redd.it/eche52g3om0i1.jpeg?width=140&height=140&auto=webp&s=7014cde100f784828db6b64af04ccd363cfa8579",
        "preview_url": "https://preview.redd.it/eche52g3om0i1.jpeg?auto=webp&s=0ae602147d9cef6a90728f0418193e1e37b3f487"
      }
    ],
    "pagination": {
      "limit": 10,
      "next_after": "t3_1xtzobg",
      "has_more": true
    }
  },
  "meta": {
    "endpoint_family": "search_posts",
    "request_id": "req_e27fa7f55b7642978b8113afb3570e99",
    "credits_charged": 1,
    "credits_remaining": 1786
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search-posts`: the fields and shapes you will get, shortened to 3 items.

| # | id string | fullname string | title string | author string | author\_fullname string | subreddit string | subreddit\_id string | subreddit\_subscribers integer | permalink url | url url | domain string | post\_type string | score integer | upvote\_ratio number | num\_comments integer | num\_crossposts integer | total\_awards\_received integer | author\_flair string | created\_at string | created\_utc integer | over\_18 boolean | spoiler boolean | stickied boolean | locked boolean | archived boolean | is\_original\_content boolean | thumbnail\_url url | preview\_url url |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 1xtu7qr | t3\_1xtu7qr | What a poor soul.. | Careless\_Scallion\_82 | t2\_dl4ogz77 | memes | t5\_2qjpg | 36169974 | https://www.reddit.com/r/memes/comments/1xtu7qr/what\_a\_poor\_soul/ | https://i.redd.it/y1amb0q0x11i1.jpeg | i.redd.it | image | 31390 | 0.97 | 107 | 3 | 0 | :Doot: Doot :Doot: | 2026-11-11T21:27:52+00:00 | 1794432472 | false | false | false | false | false | false | https://preview.redd.it/y1amb0q0x11i1.jpeg?width=140&height=129&auto=webp&s=4ac7bb67c19333cb6450b01ffd69bfddfc8b4cc6 | https://preview.redd.it/y1amb0q0x11i1.jpeg?auto=webp&s=bcfc8a98daafea3122f2da8fbf43f11deda4629e |
| 2 | 1xsql0c | t3\_1xsql0c | Sad, hopeless eyes💔 | SaiMan2303 | t2\_1ukm55dgp0 | SipsTea | t5\_5tdqj0 | 4117827 | https://www.reddit.com/r/SipsTea/comments/1xsql0c/sad\_hopeless\_eyes/ | https://i.redd.it/yletoele5t0i1.jpeg | i.redd.it | image | 7542 | 0.98 | 51 | 1 | 0 | :vip-green-v::vip-green-i::vip-green-p::KermitSlowerSip\_APNG: | 2026-11-10T15:58:48+00:00 | 1794326328 | false | false | false | false | false | false | https://preview.redd.it/yletoele5t0i1.jpeg?width=140&height=133&auto=webp&s=b0079f5e92df9912cecb959180633dc372ba6d9b | https://preview.redd.it/yletoele5t0i1.jpeg?auto=webp&s=00fa4e75ed355703a1cce28403bbd6b248f71b16 |
| 3 | 1xrz1mp | t3\_1xrz1mp | NVIDIA's relationship with AI models got a plot twist 💀😂 | RyzovaTech | t2\_2qc1d44w1m | ChatGPT | t5\_7hqomg | 11744230 | https://www.reddit.com/r/ChatGPT/comments/1xrz1mp/nvidias\_relationship\_with\_ai\_models\_got\_a\_plot/ | https://i.redd.it/eche52g3om0i1.jpeg | i.redd.it | image | 6354 | 0.98 | 78 | 2 | 0 | — | 2026-11-09T18:11:08+00:00 | 1794247868 | false | false | false | false | false | false | https://preview.redd.it/eche52g3om0i1.jpeg?width=140&height=140&auto=webp&s=7014cde100f784828db6b64af04ccd363cfa8579 | https://preview.redd.it/eche52g3om0i1.jpeg?auto=webp&s=0ae602147d9cef6a90728f0418193e1e37b3f487 |

Recorded from our API · 3 items shown · 28 datapoints per item GET /v1/reddit/search-posts?query=openai&sort=top&t=week&limit=10

28 datapoints

### Identity

-   id string
-   fullname string
-   title string
-   author\_fullname string
-   subreddit\_id string
-   post\_type string

### Contact

-   permalink url
-   url url
-   domain string
-   thumbnail\_url url
-   preview\_url url

### Reputation

-   score integer

### Other

-   author string
-   subreddit string
-   subreddit\_subscribers integer
-   upvote\_ratio number
-   num\_comments integer
-   num\_crossposts integer
-   total\_awards\_received integer
-   author\_flair string
-   created\_at string
-   created\_utc integer
-   over\_18 boolean
-   spoiler boolean
-   stickied boolean
-   locked boolean
-   archived boolean
-   is\_original\_content boolean

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/reddit/search-posts?query=openai&sort=top&t=week&limit=10" \
  -H "X-API-Key: $API_KEY"
```

Reddit · 14 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/reddit/autocomplete`](https://perceptlayer.com/apis/reddit/autocomplete) | `query` +2 optional | JSON | 1 credit |
| [GET `/v1/reddit/domain`](https://perceptlayer.com/apis/reddit/domain) | `domain` +4 optional | JSON | 1 credit |
| [GET `/v1/reddit/oembed`](https://perceptlayer.com/apis/reddit/oembed) | `url` | JSON | 1 credit |
| [GET `/v1/reddit/popular`](https://perceptlayer.com/apis/reddit/popular) | none +5 optional | JSON | 1 credit |
| [GET `/v1/reddit/post`](https://perceptlayer.com/apis/reddit/post) | `id` | JSON | 1 credit |
| [GET `/v1/reddit/search-posts`](https://perceptlayer.com/apis/reddit/search-posts) | `query` +6 optional | `time` `posts` `pagination` | 1 credit |
| [GET `/v1/reddit/search-subreddits`](https://perceptlayer.com/apis/reddit/search-subreddits) | `query` +2 optional | JSON | 1 credit |
| [GET `/v1/reddit/search-users`](https://perceptlayer.com/apis/reddit/search-users) | `query` +2 optional | JSON | 1 credit |
| [GET `/v1/reddit/subreddit`](https://perceptlayer.com/apis/reddit/subreddit) | `subreddit` +1 optional | JSON | 1 credit |
| [GET `/v1/reddit/subreddit-posts`](https://perceptlayer.com/apis/reddit/subreddit-posts) | `subreddit` +4 optional | JSON | 1 credit |
| [GET `/v1/reddit/user-comments`](https://perceptlayer.com/apis/reddit/user-comments) | `username` +4 optional | JSON | 1 credit |
| [GET `/v1/reddit/user-overview`](https://perceptlayer.com/apis/reddit/user-overview) | `username` +4 optional | JSON | 1 credit |
| [GET `/v1/reddit/user-posts`](https://perceptlayer.com/apis/reddit/user-posts) | `username` +4 optional | JSON | 1 credit |
| [GET `/v1/reddit/user-profile`](https://perceptlayer.com/apis/reddit/user-profile) | `username` | JSON | 1 credit |

Overview

## About the Reddit API

## What you can get

The Reddit API returns Reddit posts, subreddits and user data as JSON through 14 endpoints. Time filters take a `t` of hour, day, week, month, year or all, and list endpoints page with `after` and `limit`.

-   **Search:** `search-posts` takes a `query`, with `sort` (relevance, hot, top, new or comments), `t`, `subreddit` and `nsfw`. `search-subreddits` and `search-users` take a `query`. `autocomplete` takes a `query`, with `limit` and `nsfw`.
-   **Subreddits:** `subreddit` takes a `subreddit`, with `rules`; `subreddit-posts` takes a `subreddit`, with `sort` (hot, new, top, rising or controversial) and `t`.
-   **Feeds:** `popular` takes a `feed` (popular or best), with the same `sort` values and `t`. `domain` takes a `domain`, with `sort` (hot, new or top) and `t`, and returns posts that link to it.
-   **Posts:** `post` takes a post `id`; `oembed` takes a post `url`.
-   **Users:** `user-profile` takes a `username`; `user-posts`, `user-comments` and `user-overview` take a `username`, with `sort` (hot, new, top or controversial) and `t`.

The recorded `search-posts` call for "openai" ( `sort` top, `t` week, `limit` 10) returns `posts`, each with `id`, `title`, `subreddit`, `subreddit_subscribers`, `permalink`, `url`, `domain`, `post_type`, `score`, `upvote_ratio`, `num_comments`, `num_crossposts`, `created_at`, `over_18`, `locked` and `thumbnail_url`. It also returns `pagination` with `limit`, `next_after` and `has_more`.

## How a call works

`GET /v1/reddit/search-posts?query=openai&sort=top&t=week&limit=10` with your key in the `X-API-Key` header runs a search. Each post's `id` goes to `post`, and its `subreddit` to `subreddit` or `subreddit-posts`. When `has_more` is true, pass `next_after` as `after` for the next page. Every successful call costs 1 credit; failed calls cost nothing.

Social media JSON REST MCP

### More social media APIs

[Behance](https://perceptlayer.com/apis/behance) [Bilibili](https://perceptlayer.com/apis/bilibili) [Bluesky](https://perceptlayer.com/apis/bluesky) [Dailymotion](https://perceptlayer.com/apis/dailymotion) [DeviantArt](https://perceptlayer.com/apis/deviantart) [Dribbble](https://perceptlayer.com/apis/dribbble) [Facebook](https://perceptlayer.com/apis/facebook) [Facebook Ad Library](https://perceptlayer.com/apis/facebook-ad-library) [Flickr](https://perceptlayer.com/apis/flickr) [Hacker News](https://perceptlayer.com/apis/hacker-news) [Imgur](https://perceptlayer.com/apis/imgur) [Instagram](https://perceptlayer.com/apis/instagram)

Use cases

### Monitor mentions of your brand or product across Reddit

`Use the Reddit API to monitor mentions of your brand or product across Reddit` 

### Track which posts on a topic gain score and comments this week

`Use the Reddit API to track which posts on a topic gain score and comments this week` 

### Find the subreddits where a topic is discussed, and read their rules before posting

`Use the Reddit API to find the subreddits where a topic is discussed, and read their rules before posting` 

### See which Reddit posts link to your domain or a competitor's

`Use the Reddit API to see which Reddit posts link to your domain or a competitor's` 

FAQ

## Questions

**Do I need a Reddit account or app?**

No. You call this Reddit API with your Perceptlayer key in the \`X-API-Key\` header, with no Reddit login or app to register.

**How much does the Reddit API cost?**

Each successful call costs one credit, and each page of results is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Can I search inside one subreddit?**

Yes. Pass \`subreddit\` to \`search-posts\` with your \`query\`, or list a subreddit's posts with \`subreddit-posts\` and a \`sort\`.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official Reddit API?**

No. Perceptlayer is an independent service and is not affiliated with Reddit. It returns Reddit data as JSON with a Perceptlayer key, so there is no Reddit developer account, app review or partner approval to get first. It only reads data: if Reddit has an official API and you need to act on your own Reddit account, such as posting, managing orders or reading private data, use that one.

**Should I build a Reddit scraper instead?**

You can, but a Reddit scraper is code you maintain: page changes break it, requests get blocked, and Reddit's terms govern how you collect data. The Reddit API gives you 14 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Reddit API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
