# Reddit — Subreddit Search

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.

Documentation: https://openany.si/reddit/reddit-scrapecreators-search/348e29c4-f978-41a7-a7db-4b94c2aed55c/
API ID: 348e29c4-f978-41a7-a7db-4b94c2aed55c
Provider: scrapecreators
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit/search
Page update time: 2026-12-03T02:37:40.852Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:37:19.579Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## 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.

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Reddit — Subreddit Search request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "subreddit": {
          "type": "string",
          "description": "Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)"
        },
        "query": {
          "type": "string",
          "description": "Search query to find matching content"
        },
        "sort": {
          "type": "string",
          "description": "Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new",
          "enum": [
            "relevance",
            "hot",
            "top",
            "new",
            "comments"
          ]
        },
        "timeframe": {
          "type": "string",
          "description": "Timeframe to filter results",
          "enum": [
            "all",
            "year",
            "month",
            "week",
            "day",
            "hour"
          ]
        },
        "cursor": {
          "type": "string",
          "description": "Cursor to get more results. Get 'cursor' from previous response."
        }
      },
      "required": [
        "subreddit"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "author": {
            "type": "string"
          },
          "author_avatar": {
            "type": "null"
          },
          "author_nsfw": {
            "type": "boolean"
          },
          "body": {
            "type": "string"
          },
          "body_html": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "created_at_iso": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {}
          },
          "is_reply_to_comment": {
            "type": "boolean"
          },
          "parent_comment_id": {
            "type": "null"
          },
          "permalink": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "post": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": "string"
              },
              "created_at_iso": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "nsfw": {
                "type": "boolean"
              },
              "num_comments": {
                "type": "integer"
              },
              "permalink": {
                "type": "string"
              },
              "spoiler": {
                "type": "boolean"
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "votes": {
                "type": "integer"
              }
            }
          },
          "post_id": {
            "type": "string"
          },
          "subreddit": {
            "type": "object",
            "properties": {
              "icon": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "nsfw": {
                "type": "boolean"
              },
              "quarantined": {
                "type": "boolean"
              }
            }
          },
          "url": {
            "type": "string"
          },
          "votes": {
            "type": "integer"
          }
        }
      }
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "cursor": {
      "type": "string"
    },
    "media": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "aspect_ratio": {
            "type": "number"
          },
          "gallery_count": {
            "type": "null"
          },
          "id": {
            "type": "string"
          },
          "image": {
            "type": "object",
            "properties": {
              "height": {
                "type": "integer"
              },
              "resolutions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "width": {
                      "type": "integer"
                    }
                  }
                }
              },
              "src": {
                "type": "string"
              },
              "width": {
                "type": "integer"
              }
            }
          },
          "is_blurred": {
            "type": "boolean"
          },
          "media_type": {
            "type": "string"
          },
          "nsfw": {
            "type": "boolean"
          },
          "permalink": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "safe_search": {
            "type": "string"
          },
          "spoiler": {
            "type": "boolean"
          },
          "subreddit": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "nsfw": {
                "type": "boolean"
              },
              "quarantined": {
                "type": "boolean"
              }
            }
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "video": {
            "type": "null"
          }
        }
      }
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_at_iso": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_crosspost": {
            "type": "boolean"
          },
          "nsfw": {
            "type": "boolean"
          },
          "num_comments": {
            "type": "integer"
          },
          "permalink": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "post_id": {
            "type": "string"
          },
          "relative_position": {
            "type": "integer"
          },
          "spoiler": {
            "type": "boolean"
          },
          "subreddit": {
            "type": "object",
            "properties": {
              "banner": {
                "type": "null"
              },
              "description": {
                "type": "string"
              },
              "icon": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "nsfw": {
                "type": "boolean"
              },
              "quarantined": {
                "type": "boolean"
              },
              "weekly_contributions": {
                "type": "integer"
              },
              "weekly_visitors": {
                "type": "integer"
              }
            }
          },
          "thumbnail": {
            "type": "null"
          },
          "thumbnail_blurred": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "votes": {
            "type": "integer"
          }
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

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

## Available implementations
- scrapecreators: https://openany.si/reddit/reddit-scrapecreators-search/348e29c4-f978-41a7-a7db-4b94c2aed55c/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
