Exa · Search

by Exa

POSTBaseSolana✓ Curated

$0.007

per call · USD Coin on Base

Exa /search endpoint

Endpoint

POST https://api.exa.ai/search

6.0k

Calls / 30d

87

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.exa.ai/search", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "numResults": 10,
    "query": "example search query",
    "type": "auto"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.exa.ai/search" \
  -H "Content-Type: application/json" \
  -d '{"numResults":10,"query":"example search query","type":"auto"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

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

Payment details

Pay to0x6d6e695b09861467c7d462f5aaf31cf3540b9192
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Exa & similar services