# Reddit — Search

Search Reddit Global Content via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as filter, query, sort, and retrieve structured data including post title, author username, community name, comment count, and continuation token to discover cross-community discussions, and keep search-type context.

Documentation: https://openany.si/reddit/reddit-global-search/f6bb0020-877a-4be6-b7ce-30119a2ffe6b/
API ID: f6bb0020-877a-4be6-b7ce-30119a2ffe6b
Provider: scrapecreators
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/search
Page update time: 2026-12-03T02:38:07.647Z
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:56.313Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Reddit Global Content Search API

The default GET implementation uses filter=posts or comments and a top-level after token. The app alternative uses search\_type, uppercase sort values and its own optional formatting.

## What You Can Build

- **Discover cross-community discussions**: Choose posts or comments for the default search.
- **Keep search-type context**: Interpret records with the implementation and filter used.

## Returned Data

| Field | Meaning |
| --- | --- |
| `posts[].id` | Post identifier in post-search results |
| `posts[].title` | Post title |
| `posts[].author` | Author username |
| `posts[].subreddit` | Community name |
| `posts[].num_comments` | Comment count |
| `after` | Continuation token |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Reddit — 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": {
        "query": {
          "type": "string",
          "description": "Search query"
        },
        "filter": {
          "type": "string",
          "description": "Search posts or comments",
          "enum": [
            "posts",
            "comments"
          ]
        },
        "sort": {
          "type": "string",
          "description": "Sort by. Comment search supports relevance, new, and top; comment_count is for post search only.",
          "enum": [
            "relevance",
            "new",
            "top",
            "comment_count"
          ]
        },
        "timeframe": {
          "type": "string",
          "description": "Post search timeframe",
          "enum": [
            "all",
            "day",
            "week",
            "month",
            "year"
          ]
        },
        "after": {
          "type": "string",
          "description": "Used to paginate to next page"
        },
        "trim": {
          "type": "boolean",
          "description": "Set to true for a trimmed down version of the response"
        }
      },
      "required": [
        "query"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "after": {
      "type": "string"
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "author": {
            "type": "string"
          },
          "author_fullname": {
            "type": "string"
          },
          "created": {
            "type": "integer"
          },
          "created_utc": {
            "type": "integer"
          },
          "downs": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "is_video": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "num_comments": {
            "type": "integer"
          },
          "score": {
            "type": "integer"
          },
          "subreddit": {
            "type": "string"
          },
          "subreddit_subscribers": {
            "type": "null"
          },
          "title": {
            "type": "string"
          },
          "total_awards_received": {
            "type": "integer"
          },
          "ups": {
            "type": "integer"
          },
          "upvote_ratio": {
            "type": "null"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "success": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/search?filter=posts&query=push+ups&sort=relevance&timeframe=all' \
  -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
{
  "after": "t3_1izmcgx",
  "credits_charged": 1,
  "credits_remaining": 1000000,
  "posts": [
    {
      "author": "Morgentau7",
      "author_fullname": "t2_2hy2xjit",
      "created": 1658580900,
      "created_utc": 1658580900,
      "downs": 0,
      "id": "w63dgy",
      "is_video": true,
      "name": "t3_w63dgy",
      "num_comments": 1246,
      "score": 220403,
      "subreddit": "MadeMeSmile",
      "subreddit_subscribers": null,
      "title": "Player realizes that he nearly stole the dogs job",
      "total_awards_received": 0,
      "ups": 220403,
      "upvote_ratio": null,
      "url": "https://www.reddit.com/r/MadeMeSmile/comments/w63dgy/player_realizes_that_he_nearly_stole_the_dogs_job/"
    }
  ],
  "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
### Can the default search return comments?
Yes. filter accepts posts or comments; result layout depends on the chosen type.

### Does comment_count sort work for comment search?
No. The default input description reserves comment_count for post search; comments support relevance, new or top.

### Does timeframe apply to comment search?
The default contract describes timeframe as a post-search option.

### How do I continue the default search?
Pass the returned after token with the same query, result type and filters.

### Are upvote ratios and subscriber counts provided by search?
Do not rely on those fields from search. Use a post-detail operation when you need a post's upvote ratio.

### Are app search controls identical?
No. The app uses search_type and its own enums, filter applicability and continuation conventions.

## Available implementations
- scrapecreators: https://openany.si/reddit/reddit-global-search/f6bb0020-877a-4be6-b7ce-30119a2ffe6b/
- tikhub: https://openany.si/reddit/reddit-global-search/5fc72c20-3ba5-405d-8d2b-45c80d256ae1/

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