Endpoints
    POST/desearch/reddit/search

    Reddit Search API

    Search public Reddit posts across all subreddits by keyword. Returns one page; send the `x-desearch-next-cursor` response header back as `cursor` for the next one. Billed per request, including an empty page. A 404, a 422 and a 5xx are not charged. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.

    Base URL

    https://api.desearch.ai

    Implementation guidance

    Use Reddit Search API when your application needs search-grounded AI results without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.

    Send requests to POST /desearch/reddit/search with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.

    Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.

    Body Parameters

    querystringrequired

    Keyword or phrase to search across Reddit posts

    sortstring

    Result order. `relevance`: best match first. `new`: newest first. `top`: most upvoted posts matching the query, highest score first. `comment_count`: most commented first.

    timeframestring

    Only return posts from this window.

    cursorstring

    Opaque pagination cursor. Omit it for the first page. For the next page, send the `x-desearch-next-cursor` response header from the previous page back unchanged, on the same route with the same target (username, tag, post, or search query). A cursor is valid for 24 hours. Any other value, including an expired cursor or one issued by a different route or target, returns 422 and is not charged.

    Responses

    200A list of normalized Reddit posts.
    301Moved Permanently
    304Not Modified
    400Invalid JSON body
    401Unauthorized
    422Validation Error, or the `cursor` is not one this route issued for this target, or it has expired. An invalid cursor is rejected before any search runs and is not charged.
    429Too Many Requests
    500Internal Server Error
    Authorization

    Your API key is sent in the Authorization header.

    Request
    curl -X POST "https://api.desearch.ai/desearch/reddit/search" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "query": "bittensor"
    }'
    ResponseSchema
    [
      {
        "id": "1q6pxwn",
        "name": "t3_1q6pxwn",
        "title": "string",
        "text": "string",
        "author": "franik33",
        "subreddit": "webscraping",
        "url": "string",
        "linkUrl": "string",
        "score": 0,
        "upvotes": 0,
        "upvoteRatio": 0,
        "commentCount": 0,
        "createdAt": "2026-01-07T20:01:30.000Z",
        "flair": "string",
        "isVideo": true,
        "over18": true,
        "locked": true,
        "archived": true,
        "subredditSubscribers": 0
      }
    ]

    Possible status codes:

    200401422429500