All services

Service

Exa

search2 endpoints
Docs

AI-powered web search and content retrieval via x402. Semantic search across the web and retrieve clean page contents — pay per request with USDC on Base.

x402

base

Methods

2 methods available

POST/contents
1000 USDC

Get the contents of web pages by URL or document ID.

POST JSON body with either ids (from search results) or urls. Returns page contents as clean text. Use text.maxCharacters to limit length. Pricing: $0.001 per page for text, highlights, or summary each.

{
  "body": {
    "ids": [
      "string (result IDs from /search)"
    ],
    "urls": [
      "string (or provide URLs directly)"
    ],
    "text": {
      "maxCharacters": "number (optional)",
      "includeHtmlTags": "boolean (optional)"
    },
    "highlights": {
      "numSentences": "number (optional)",
      "highlightsPerUrl": "number (optional)",
      "query": "string (optional)"
    },
    "summary": "boolean (optional)"
  }
}
POST/search
7000-30000 USDC

Semantic web search. Returns relevant web pages for a natural language query. Max 10 results per request via x402.

POST JSON body with query. Returns semantically relevant web pages. Add contents.text to include page text inline. Use category to filter by content type. Pricing varies by search type: instant/auto/fast $0.007, deep-lite $0.010, deep $0.012, deep-reasoning $0.015, deep-max $0.030.

{
  "body": {
    "query": "string (natural language search query)",
    "numResults": "number (optional, max 10)",
    "useAutoprompt": "boolean (optional, default true)",
    "type": "string (optional: 'keyword', 'neural', 'auto', 'instant', 'fast', 'deep-lite', 'deep', 'deep-reasoning', 'deep-max')",
    "category": "string (optional: 'company', 'research paper', 'news', 'github', 'tweet', etc.)",
    "includeDomains": [
      "string (optional)"
    ],
    "excludeDomains": [
      "string (optional)"
    ],
    "startPublishedDate": "string (optional, YYYY-MM-DD)",
    "endPublishedDate": "string (optional, YYYY-MM-DD)",
    "contents": {
      "text": {
        "maxCharacters": "number (optional)"
      },
      "highlights": {},
      "summary": "boolean (optional, +$0.001/result)"
    }
  }
}