OpenAny
Get API keyAPI Key
APIDataScrapers

reddit logo
Reddit Community Content Search API

Search Reddit Community Content via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as query, subreddit, and retrieve structured data including post result records, comment text, associated post fullname, comment source URL, and media result records to find community discussions, and review cross-format results.

Selected price
$0.00188 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Reddit Community Content Search API

Prepare your request, then continue with your agent.

Selected price

$0.00188 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Reddit Community Content Search API

Reddit Community Content Search API

This GET implementation requires subreddit and accepts optional query, sort, timeframe and cursor. Its response separates posts, comments and media and returns a top-level cursor.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: subreddit without r/ or a full URL. Optional query, sort, timeframe and cursor.
Selected implementation scrapecreators · Reddit — Subreddit Search
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Find community discussions: Narrow research to a selected community.
  • Review cross-format results: Keep post, comment and media records distinct.

Returned Data

Field Meaning
posts[] Post result records
comments[].body Comment text
comments[].post_id Associated post fullname
comments[].url Comment source URL
media[] Media result records
cursor Continuation token

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit/search \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode 'query=push ups' \
  --data-urlencode subreddit=AskReddit

Request and Response Examples

The request is a calling template, while reference output illustrates the response structure and can refer to different records. Check returned identities against your query.

Published Reddit Community Content Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)
Optional parameters (4)
Search query to find matching content
Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new
Timeframe to filter results
Cursor to get more results. Get 'cursor' from previous response.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Reddit — Subreddit Search · GET · View API reference$0.00188 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · scrapecreatorsUSD / call
Unit price
$0.00188

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.188

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit/search
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
subredditURL query parametersquerystringYes

Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)

queryURL query parametersquerystringNo

Search query to find matching content

sortURL query parametersquerystringNo

Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new

enum: "relevance", "hot", "top", "new", "comments"

timeframeURL query parametersquerystringNo

Timeframe to filter results

enum: "all", "year", "month", "week", "day", "hour"

cursorURL query parametersquerystringNo

Cursor to get more results. Get 'cursor' from previous response.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • commentsobject[]
    • authorstring
    • author_avatarnull
    • author_nsfwboolean
    • bodystring
    • body_htmlstring
    • created_atstring
    • created_at_isostring
    • idstring
    • imagesunknown[]
    • is_reply_to_commentboolean
    • parent_comment_idnull
    • permalinkstring
    • positioninteger
    • postobject
      • created_atstring
      • created_at_isostring
      • idstring
      • nsfwboolean
      • num_commentsinteger
      • permalinkstring
      • spoilerboolean
      • titlestring
      • urlstring
      • votesinteger
    • post_idstring
    • subredditobject
      • iconstring
      • idstring
      • namestring
      • nsfwboolean
      • quarantinedboolean
    • urlstring
    • votesinteger
  • credits_chargedinteger
  • credits_remaininginteger
  • cursorstring
  • mediaobject[]
    • aspect_rationumber
    • gallery_countnull
    • idstring
    • imageobject
      • heightinteger
      • resolutionsobject[]
        • urlstring
        • widthinteger
      • srcstring
      • widthinteger
    • is_blurredboolean
    • media_typestring
    • nsfwboolean
    • permalinkstring
    • positioninteger
    • safe_searchstring
    • spoilerboolean
    • subredditobject
      • idstring
      • namestring
      • nsfwboolean
      • quarantinedboolean
    • titlestring
    • urlstring
    • videonull
  • postsobject[]
    • created_atstring
    • created_at_isostring
    • idstring
    • is_crosspostboolean
    • nsfwboolean
    • num_commentsinteger
    • permalinkstring
    • positioninteger
    • post_idstring
    • relative_positioninteger
    • spoilerboolean
    • subredditobject
      • bannernull
      • descriptionstring
      • iconstring
      • idstring
      • namestring
      • nsfwboolean
      • quarantinedboolean
      • weekly_contributionsinteger
      • weekly_visitorsinteger
    • thumbnailnull
    • thumbnail_blurredboolean
    • titlestring
    • urlstring
    • votesinteger
  • successboolean

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 5

    Review these request fields before running. Keep the published provider and request method unchanged.

    subreddit
    Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)
    query
    Search query to find matching content
    sort
    Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new
    timeframe
    Timeframe to filter results
    cursor
    Cursor to get more results. Get 'cursor' from previous response.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit/search?query=push+ups&subreddit=AskReddit' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "comments": [
        {
          "author": "Philser23",
          "author_avatar": null,
          "author_nsfw": false,
          "body": "On the 30th my girlfriend out of the blue decided her new year's resolution would be to start going to the gym. I was so excited since none of my partners ever shared the fitness hobby with me.",
          "body_html": "<p>On the 30th my girlfriend out of the blue decided her new year's resolution would be to start going to the gym...</p>",
          "created_at": "2026-01-03T11:26:02.434000+0000",
          "created_at_iso": "2026-01-03T11:26:02.434Z",
          "id": "t1_nxf7p27",
          "images": [],
          "is_reply_to_comment": false,
          "parent_comment_id": null,
          "permalink": "/r/Fitness/comments/1q2p898/gym_story_saturday/nxf7p27/",
          "position": 0,
          "post": {
            "created_at": "2026-01-03T08:15:49.709000+0000",
            "created_at_iso": "2026-01-03T08:15:49.709Z",
            "id": "t3_1q2p898",
            "nsfw": false,
            "num_comments": 80,
            "permalink": "/r/Fitness/comments/1q2p898/gym_story_saturday/",
            "spoiler": false,
            "title": "Gym Story Saturday",
            "url": "https://www.reddit.com/r/Fitness/comments/1q2p898/gym_story_saturday/",
            "votes": 67
          },
          "post_id": "t3_1q2p898",
          "subreddit": {
            "icon": "https://b.thumbs.redditmedia.com/Ted4KOMuRbaCYlDS55cTqjpVVZ2ENHKtYFbBFjI1i2o.png",
            "id": "t5_2qhx4",
            "name": "Fitness",
            "nsfw": false,
            "quarantined": false
          },
          "url": "https://www.reddit.com/r/Fitness/comments/1q2p898/gym_story_saturday/nxf7p27/",
          "votes": 123
        }
      ],
      "credits_charged": 1,
      "credits_remaining": 1000000,
      "cursor": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiM1wiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIzXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfNl9zY29wZV9zd2l0Y2hlclwiOlwiMFwiLFwic2VjdGlvbl8yX3BpcGVsaW5lXzdfcG9zdF9zZWFyY2hcIjpcIjdcIn0ifQ==",
      "media": [
        {
          "aspect_ratio": 1.3333333333333333,
          "gallery_count": null,
          "id": "t3_geo4x",
          "image": {
            "height": 360,
            "resolutions": [
              {
                "url": "https://external-preview.redd.it/X6lz5yGIzqVA5LcI9w-FsQJJHhXoCugDhsXgWW3I404.jpg?width=320&crop=smart&format=pjpg&auto=webp&s=144ac4171a1862e5d91d8dd90d44271e22a8273d",
                "width": 320
              }
            ],
            "src": "https://external-preview.redd.it/X6lz5yGIzqVA5LcI9w-FsQJJHhXoCugDhsXgWW3I404.jpg?format=pjpg&auto=webp&s=46814b0a707a532e39e6c20851ddc1fefb0a111f",
            "width": 480
          },
          "is_blurred": false,
          "media_type": "image",
          "nsfw": false,
          "permalink": "/r/Fitness/comments/geo4x/bodyweight_training_for_really_strong_people_see/",
          "position": 0,
          "safe_search": "UNAVAILABLE",
          "spoiler": false,
          "subreddit": {
            "id": "t5_2qhx4",
            "name": "Fitness",
            "nsfw": false,
            "quarantined": false
          },
          "title": "Bodyweight training for really strong people. See on you're own what I mean with strong. (Not me)",
          "url": "https://www.reddit.com/r/Fitness/comments/geo4x/bodyweight_training_for_really_strong_people_see/",
          "video": null
        }
      ],
      "posts": [
        {
          "created_at": "2018-05-03T01:09:17.620000+0000",
          "created_at_iso": "2018-05-03T01:09:17.620Z",
          "id": "t3_8gmjrb",
          "is_crosspost": false,
          "nsfw": false,
          "num_comments": 582,
          "permalink": "/r/Fitness/comments/8gmjrb/is_doing_50100_pushups_a_day_doing_anything/",
          "position": 0,
          "post_id": "t3_8gmjrb",
          "relative_position": 0,
          "spoiler": false,
          "subreddit": {
            "banner": null,
            "description": "A place for the pursuit of physical fitness goals.\n\nPlease see the r/Fitness Wiki and FAQ at https://thefitness.wiki for help with common questions.",
            "icon": "https://b.thumbs.redditmedia.com/Ted4KOMuRbaCYlDS55cTqjpVVZ2ENHKtYFbBFjI1i2o.png",
            "id": "t5_2qhx4",
            "name": "Fitness",
            "nsfw": false,
            "quarantined": false,
            "weekly_contributions": 1827,
            "weekly_visitors": 898726
          },
          "thumbnail": null,
          "thumbnail_blurred": false,
          "title": "Is doing 50-100 pushups a day doing anything?",
          "url": "https://www.reddit.com/r/Fitness/comments/8gmjrb/is_doing_50100_pushups_a_day_doing_anything/",
          "votes": 1414
        }
      ],
      "success": true
    }

Common questions

What subreddit format should I send?

Use the name, such as Fitness, without r/ or a full URL.

Is a keyword required?

query is optional in this contract; subreddit is required.

Which sort values are supported?

The declared values are relevance, hot, top, new and comments. Preserve the endpoint-specific spelling.

How do I continue?

Pass the top-level returned cursor as cursor with the same community and search settings.

Does the response have one uniform result array?

No. Inspect the posts, comments and media sections separately.

Are search results measurements of demand?

They are content records, not search-volume or market-demand metrics.

Use Reddit Community Content Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.