Reddit · Guide

How to run a Reddit subreddit search

TL;DR
To run a Reddit subreddit search, sign up for a free Captapi key, then send one GET request to /v1/reddit/subreddit-search with your input. You get clean JSON back in seconds for 2 credits per call — no OAuth, scraping or platform SDKs. Run a Reddit subreddit search with cursor pagination (nextCursor + hasMore).

How to run a Reddit subreddit search (step by step)

  1. 1

    Get a free API key

    Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.

  2. 2

    Call the Reddit Subreddit Search API

    Send an authenticated GET request to /v1/reddit/subreddit-search with your input. No OAuth, no scraping setup.

  3. 3

    Read the JSON response

    Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.

Code example

curl "https://api.captapi.com/v1/reddit/subreddit-search?url=https%3A%2F%2Fwww.reddit.com%2Fr%2Ftechnology%2F&q=moon" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

What the response looks like

{
  "success": true,
  "data": {
    "subreddit": "space",
    "query": "moon",
    "totalReturned": 5,
    "nextCursor": "t3_1s2fq4k",
    "hasMore": true,
    "results": [
      {
        "platform": "reddit",
        "id": "1sbgcy5",
        "url": "https://www.reddit.com/r/space/comments/1sbgcy5/hello_world_artemis_ii_crew_looks_back_at_earth/",
        "title": "Hello, World: Artemis II crew looks back at Earth on their way to the Moon",
        "text": null,
        "subreddit": "space",
        "author": "ChiefLeef22",
        "upvotes": 80287,
        "comments": 1450,
        "publishedAt": "2026-04-03T15:15:19+00:00",
        "flair": null,
        "nsfw": false,
        "thumbnail": "https://preview.redd.it/lc95vmh6szsg1.jpeg?width=140&height=93&auto=webp&s=415f9d988982ae90c81e2e8ab9cee83a5f19c4d6"
      },
      {
        "platform": "reddit",
        "id": "1sevdps",
        "url": "https://www.reddit.com/r/space/comments/1sevdps/earthset_artemis_ii_captures_their_first_photo/",
        "title": "EARTHSET: Artemis II captures their first photo from the far side of the moon",
        "text": null,
        "subreddit": "space",
        "author": "ChiefLeef22",
        "upvotes": 97159,
        "comments": 1123,
        "publishedAt": "2026-04-07T13:03:27+00:00",
        "flair": "spacers only",
        "nsfw": false,
        "thumbnail": "https://preview.redd.it/zgg6qm9bortg1.jpeg?width=140&height=93&auto=webp&s=3f8a149eff1a439f09573dd978edc66e74c1f9d2"
      },
      {
        "platform": "reddit",
        "id": "1s9qfc7",
        "url": "https://www.reddit.com/r/space/comments/1s9qfc7/megathread_artemis_ii_launch_to_the_moon/",
        "title": "[MEGATHREAD] Artemis II Launch To The Moon",
        "text": "This is the official r/space live megathread for NASA's Artemis II mission - **the first crewed launch of NASA’s SLS (Space Launch System) rocket and Orion spacecraft.**\n\nFor the first time in more than 50 years, humans will travel around the moon to test deep-space life-support systems.\n\nLIVE VIEWING FEEDS:\n\n\\[OFFICIAL NASA\\] [ NASA’s Artemis II Crew Comes Home (Official Broadcast) ](https://m.youtube.com/watch?v=nfhDuOHMp0A)\n\n\\[NASASpaceflight\\] [ Artemis II Astronauts Return To Earth - Re-entry and Splashdown ](https://m.youtube.com/watch?v=_veRvxj-5VQ&pp=ygUPbmFzYXNwYWNlZmxpZ2h0)\n\n\\[SKY NEWS\\] [No Commentary Broadcast](https://www.youtube.com/watch?v=yByKVNdBDBw)\n\n\\---------------------\n\n**NOTE:** This thread will contain links to multiple different live viewing channels. The sub will remain in manual approval mode during the mission to limit spam. As such, you are welcome to redirect anything you want to post separately in this time period to the comment section in this megathread.\n\n\\---------------------\n\nARTEMIS LIVE TRACKER - [https://www.reddit.com/r/space/s/ROkGU4c5SD](https://www.reddit.com/r/space/s/ROkGU4c5SD) (courtesy of u/theneiljohnson)\n\n**MISSION INFO:** At 6:24pm EDT (22:24 GMT) on Wednesday, a two-hour window will open for the Artemis II mission to lift off from the Kennedy Space Center in Florida. The launch window will remain open until April 6 for two hours each day after sunset. The mission can launch only when the moon, orbital paths, weather and Earth’s rotation line up safely.\n\nThis is the third launch attempt for Artemis II, after the first attempt was scrubbed due to a liquid hydrogen leak during a practice countdown in early February, and the second attempt was cancelled when engineers discovered a helium flow issue in the rocket’s upper stage in early March\n\nThe four-person crew will not land on the moon but rather perform a lunar flyby, looping around the moon’s far side before returning to Earth. At its core, Artemis II is a systems validation mission. NASA will use the flight to test the Orion spacecraft’s life support systems, navigation, communication links and overall performance in deep space with a crew on board – conditions that cannot be fully replicated on Earth. If successful, Artemis II will pave the way for Artemis III, a crewed low Earth orbit mission; then Artemis IV, which aims to land astronauts on the moon; and future missions that could establish a sustained human presence beyond Earth.\n\n\\---------------------\n\n# UPDATES:\n\nT-1 hour 14 minutes: They have fixed an issue at the flight termination system, the range is a go!\n\nT-10 minutes: After some hold, it looks like its still a go!\n\nT-0: LIFTOFF! YOU WERE HERE! HISTORY IN THE MAKING\n\nLow earth orbit insertion successful! Happy monitoring to everyone over this 10 day journey\n\nNEXT UP: **Perigee Raise Burn**\n\nAfter a four-hour nap, the Artemis II crew will be awakened at 7 a.m. EDT on Thursday, April 2, to prepare for the perigee raise burn. This burn will lift the lowest point of Orion’s orbit around Earth. Together with the apogee raise burn completed earlier, these burns shape the spacecraft’s initial orbit and prepare it for later translunar operations. The crew then will resume their sleep period around 9:40 a.m.\n\n\\---PRB is now complete. Translunar Injection will begin no earlier than **7PM EDT**\n\n\\----TLI Is now also complete - we're on the way to moon!\n\nNext up - Lunar Flyby on Monday....\n\n\\----- Lunar flyby complete! What a monumental day in history. Apollo 13's distance record broken, and the dawn of a new era of space exploration\n\nOrion is set to splash down at 5:07 PM P.T., today\n\n\\---The crew are safely back home! A historic mission concludes. It feels a little surreal to think we could all witness this journey live, and this megathread has been an amazing example of that.",
        "subreddit": "space",
        "author": "ChiefLeef22",
        "upvotes": 10324,
        "comments": 17485,
        "publishedAt": "2026-04-01T17:00:55+00:00",
        "flair": "LIVE MEGATHREAD",
        "nsfw": false,
        "thumbnail": null
      },
      {
        "platform": "reddit",
        "id": "1sdf8u6",
        "url": "https://www.reddit.com/r/space/comments/1sdf8u6/home_artemis_ii_crew_captures_one_last_shot_of_a/",
        "title": "Home: Artemis II crew captures one last shot of a crescent Earth before reaching the moon tomorrow",
        "text": null,
        "subreddit": "space",
        "author": "ChiefLeef22",
        "upvotes": 54061,
        "comments": 887,
        "publishedAt": "2026-04-05T21:11:58+00:00",
        "flair": null,
        "nsfw": false,
        "thumbnail": "https://preview.redd.it/6m87nz7ntftg1.jpeg?width=140&height=93&auto=webp&s=2881859d820eb0f27b07eb857515a581a3e2d72a"
      },
      {
        "platform": "reddit",
        "id": "1s2fq4k",
        "url": "https://www.reddit.com/r/space/comments/1s2fq4k/nasa_to_spend_20_billion_on_moon_base_cancel/",
        "title": "NASA to spend $20 billion on moon base, cancel orbiting lunar station",
        "text": null,
        "subreddit": "space",
        "author": "Tracheid",
        "upvotes": 6936,
        "comments": 754,
        "publishedAt": "2026-03-24T14:43:07+00:00",
        "flair": null,
        "nsfw": false,
        "thumbnail": "https://external-preview.redd.it/32pCFAVJ3r9pHz411kpjvc2FpAALaggi68wI4OMY4-w.jpeg?width=140&height=73&auto=webp&s=e800f58a5b44e087d290c0bdfe40a8a95a125fcb"
      }
    ]
  }
}

Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.

Request parameters

NameTypeRequiredDescription
urlstring YesSubreddit URL, r/name, or bare name, e.g. r/technology. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
qstring YesKeywords or search query (min 2 characters).
limitintegerNoMax items to return (default 25, max 200). Billed per result.
cursorstringNoPagination cursor. Leave empty for the first page; then pass the nextCursor value returned in the previous response.
cachebooleanNoSet true to serve from the 24h response cache. Default false — always fetch fresh data.

Frequently asked questions

What does the Reddit Subreddit Search API do?

The Reddit Subreddit Search API lets you search and return matching results from a public Reddit query using one GET request to /v1/reddit/subreddit-search. It returns clean JSON — no OAuth or infrastructure setup required.

How many credits does the Reddit Subreddit Search API cost?

Each successful call costs 2 credits. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Failed or empty results are never charged.

Do I need a Reddit API key or OAuth?

No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.

Is the Reddit Subreddit Search API suitable for production use?

Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.

Ready to run a Reddit subreddit search?

Start free with 100 credits — no credit card required.

Get your free API key