APIs / Social media / Reddit

1 credit per call14 endpoints28 datapointsChecked working 25 Nov 2026

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.

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 OKJSONX-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.

#idstringfullnamestringtitlestringauthorstringauthor_fullnamestringsubredditstringsubreddit_idstringsubreddit_subscribersintegerpermalinkurlurlurldomainstringpost_typestringscoreintegerupvote_rationumbernum_commentsintegernum_crosspostsintegertotal_awards_receivedintegerauthor_flairstringcreated_atstringcreated_utcintegerover_18booleanspoilerbooleanstickiedbooleanlockedbooleanarchivedbooleanis_original_contentbooleanthumbnail_urlurlpreview_urlurl
11xtu7qrt3_1xtu7qrWhat a poor soul..Careless_Scallion_82t2_dl4ogz77memest5_2qjpg36169974https://www.reddit.com/r/memes/comments/1xtu7qr/what_a_poor_soul/https://i.redd.it/y1amb0q0x11i1.jpegi.redd.itimage313900.9710730:Doot: Doot :Doot:2026-11-11T21:27:52+00:001794432472falsefalsefalsefalsefalsefalsehttps://preview.redd.it/y1amb0q0x11i1.jpeg?width=140&height=129&auto=webp&s=4ac7bb67c19333cb6450b01ffd69bfddfc8b4cc6https://preview.redd.it/y1amb0q0x11i1.jpeg?auto=webp&s=bcfc8a98daafea3122f2da8fbf43f11deda4629e
21xsql0ct3_1xsql0cSad, hopeless eyesπŸ’”SaiMan2303t2_1ukm55dgp0SipsTeat5_5tdqj04117827https://www.reddit.com/r/SipsTea/comments/1xsql0c/sad_hopeless_eyes/https://i.redd.it/yletoele5t0i1.jpegi.redd.itimage75420.985110:vip-green-v::vip-green-i::vip-green-p::KermitSlowerSip_APNG:2026-11-10T15:58:48+00:001794326328falsefalsefalsefalsefalsefalsehttps://preview.redd.it/yletoele5t0i1.jpeg?width=140&height=133&auto=webp&s=b0079f5e92df9912cecb959180633dc372ba6d9bhttps://preview.redd.it/yletoele5t0i1.jpeg?auto=webp&s=00fa4e75ed355703a1cce28403bbd6b248f71b16
31xrz1mpt3_1xrz1mpNVIDIA's relationship with AI models got a plot twist πŸ’€πŸ˜‚RyzovaTecht2_2qc1d44w1mChatGPTt5_7hqomg11744230https://www.reddit.com/r/ChatGPT/comments/1xrz1mp/nvidias_relationship_with_ai_models_got_a_plot/https://i.redd.it/eche52g3om0i1.jpegi.redd.itimage63540.987820β€”2026-11-09T18:11:08+00:001794247868falsefalsefalsefalsefalsefalsehttps://preview.redd.it/eche52g3om0i1.jpeg?width=140&height=140&auto=webp&s=7014cde100f784828db6b64af04ccd363cfa8579https://preview.redd.it/eche52g3om0i1.jpeg?auto=webp&s=0ae602147d9cef6a90728f0418193e1e37b3f487

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

28 datapoints

Identity

  • idstring
  • fullnamestring
  • titlestring
  • author_fullnamestring
  • subreddit_idstring
  • post_typestring

Contact

  • permalinkurl
  • urlurl
  • domainstring
  • thumbnail_urlurl
  • preview_urlurl

Reputation

  • scoreinteger

Other

  • authorstring
  • subredditstring
  • subreddit_subscribersinteger
  • upvote_rationumber
  • num_commentsinteger
  • num_crosspostsinteger
  • total_awards_receivedinteger
  • author_flairstring
  • created_atstring
  • created_utcinteger
  • over_18boolean
  • spoilerboolean
  • stickiedboolean
  • lockedboolean
  • archivedboolean
  • is_original_contentboolean

Playground

Run this API

cURLshell
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.

EndpointRequired parametersReturnsCost
GET/v1/reddit/autocomplete
query+2 optional
JSON1 credit
GET/v1/reddit/domain
domain+4 optional
JSON1 credit
GET/v1/reddit/oembed
url
JSON1 credit
GET/v1/reddit/popular
none+5 optional
JSON1 credit
GET/v1/reddit/post
id
JSON1 credit
GET/v1/reddit/search-posts
query+6 optional
timepostspagination
1 credit
GET/v1/reddit/search-subreddits
query+2 optional
JSON1 credit
GET/v1/reddit/search-users
query+2 optional
JSON1 credit
GET/v1/reddit/subreddit
subreddit+1 optional
JSON1 credit
GET/v1/reddit/subreddit-posts
subreddit+4 optional
JSON1 credit
GET/v1/reddit/user-comments
username+4 optional
JSON1 credit
GET/v1/reddit/user-overview
username+4 optional
JSON1 credit
GET/v1/reddit/user-posts
username+4 optional
JSON1 credit
GET/v1/reddit/user-profile
username
JSON1 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 mediaJSONRESTMCP

More social media APIs

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.