Web Search scoped to Reddit

    Search Reddit with the Web Search API.

    One way to search Reddit on Desearch is with Web Search scoped to Reddit (reddit.com). Send a GET request to /web and add site:reddit.com to your query.

    GET /web
    Web Search endpoint
    site:reddit.com
    in the query
    title and link
    per result, plus a snippet when available
    Web Search request
    GET /web
    query

    site:reddit.com best python web framework

    data[0]

    r/Python on Reddit: Which web framework is “king”?

    https://www.reddit.com/r/Python/comments/12jnsh3/which_web_framework_is_king/

    Example result from a Web Search request scoped to reddit.com.

    How the scope works

    Add site:reddit.com to the query.

    Web Search takes a query and an optional start offset. Put site:reddit.com in the query to keep results on Reddit. Each result has a title and a link, plus a snippet when one is available.

    What the example returns

    Results come back as data.

    The response holds a data array. start is an optional result offset, from 0 to 100.

    GET /web
    curl --get 'https://api.desearch.ai/web' \
      --header 'Authorization: YOUR_API_KEY' \
      --data-urlencode 'query=site:reddit.com best python web framework'

    What it is

    Web Search or Reddit endpoints.

    Use Web Search with site:reddit.com to scope a query to Reddit, or use the dedicated Reddit endpoints below to search Reddit and retrieve subreddit, post and comment data.

    To rerun a search on a schedule and keep only new posts, Desearch Monitors is a separate workflow from GET /web: Monitor X and Reddit on a schedule.

    Endpoints

    Explore the Reddit API reference:

    01

    Choose an endpoint

    Use GET /web with a site filter, or use the dedicated Reddit endpoints linked here.

    02

    Scope in the query

    For Web Search, add site:reddit.com to query. Combine it with your own keywords.

    03

    Links you can open

    Each Web Search result returns a title and a link to the Reddit page, plus a snippet when one is available.

    Reddit search

    Choose how you search Reddit.

    Use dedicated Reddit endpoints or scope Web Search with site:reddit.com. The questions below describe the Web Search option.

    Read Web Search docs

    Use the dedicated Reddit search endpoint, or call GET /web with site:reddit.com in the query to scope Web Search to Reddit.

    query is required. start is an optional result offset, from 0 to 100.

    A JSON object with a data array. Each result has a title and a link, plus a snippet when one is available.

    Create an API key in Console and send it in the Authorization header.

    Get started

    Search Reddit in one request.

    Create a key in Console, then send a GET request to /web with site:reddit.com in the query.

    Earn up to $165 in API credits
    1. 01

      Get a key

      Create an API key in Console.

      Console
    2. 02

      Read the reference

      The API reference documents the full request and response.

      Web Search docs
    3. 03

      Read the guide

      Open the Search API guide.

      Search API guide