Directory / Web search & research

Exa /search endpoint

Exa /search endpoint

402 OKBasePOSTx402 v2

Price per call
$0.007
Endpoint
https://api.exa.ai/search
Provider
api.exa.ai
Paid calls (30 days)
12k
Unique payers (30 days)
146
Last paid call
5 h ago
Health check
HTTP 402 2 min ago
Pays to
0x6d6E695b09861467c7d462f5AAF31cF3540B9192
Listed here since
2026-11-23 (source: bazaar)

Input

{
  "body": {
    "numResults": 10,
    "query": "example search query",
    "type": "auto"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Example output

{
  "example": {
    "results": [
      {
        "score": 0.99,
        "title": "Example",
        "url": "https://example.com"
      }
    ]
  },
  "type": "json"
}

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);

const res = await paidFetch("https://api.exa.ai/search", { method: "POST" });
console.log(await res.json()); // costs $0.007 in USDC on Base

Machine-readable: /api/tools/43b0348763bf. Listings are informational; check a provider before sending large amounts.