AI Search

    The Desearch API allows you to perform AI-powered web searches, gathering relevant information from multiple sources including web pages, research papers, and social media discussions.

    Quick Start

    Here's a simple example to get started:

    python
    import requests url = "https://api.desearch.ai/desearch/ai/search" headers = { "Authorization": "Bearer <your-api-key>", "Content-Type": "application/json" } data = { "prompt": "What is Bittensor?", "tools": ["web", "twitter", "reddit"], "date_filter": "PAST_24_HOURS", "streaming": False } response = requests.post(url, json=data, headers=headers) print(response.json())

    💡 Try it live: Use our API Playground to test the AI Search endpoint interactively with your API key.

    Parameters

    Required

    ParameterTypeDescription
    promptstringThe search query
    toolsarrayList of tools to search (e.g., ["web", "twitter", "reddit"])

    Optional

    ParameterTypeDefaultDescription
    date_filterstringPAST_24_HOURSFilter results by date (PAST_24_HOURS, PAST_WEEK, PAST_MONTH, PAST_YEAR, ALL_TIME)
    streamingbooleantrueEnable/disable streaming responses
    result_typestringLINKS_WITH_SUMMARIESResult format: ONLY_LINKS, LINKS_WITH_SUMMARIES, or LINKS_WITH_FINAL_SUMMARY
    system_messagestring""Custom system message for AI processing
    countinteger10Number of results per source (10-200)

    For complete parameter details and live testing, visit the API Reference.

    Available Tools

    ToolDescription
    webSearch across web pages
    twitterReal-time X (Twitter) posts
    redditCommunity discussions
    hackernewsTech news and discussions
    youtubeVideo content
    wikipediaEncyclopedia articles
    arxivResearch papers and preprints

    Response Example

    json
    { "completion": { "search_summary": "Bittensor is a decentralized AI network...", "key_sources": [ { "text": "Bittensor enables open AI collaboration", "url": "https://example.com/article" } ], "key_tweets": [...], "key_posts": [...] }, "reddit_search_results": {...}, "hacker_news_search_results": {...} }

    Next Steps

    🍪 We value your privacy

    We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. Read our Privacy Policy