Exa neural web search
POST /api/exa-searchNeural (embedding-based) web search over Exa's curated index, which finds pages by meaning rather than keyword overlap. Use it when a keyword engine returns the wrong thing: conceptual questions, 'pages like this one', or niche technical writing. Returns up to 10 results with title, URL, published date and author. Complements the Brave-backed web search rather than replacing it.
Input
| Field | Type | Description |
|---|---|---|
query * | string | What to search for, in natural language (max 1000 chars). |
numResults | number | Results to return, 1 to 10 (default 10). |
type | string | auto (default), neural, or keyword. |
category | string | Optional Exa category filter, e.g. 'research paper', 'news', 'company'. |
includeDomains | array | Only return results from these domains. |
excludeDomains | array | Never return results from these domains. |
startPublishedDate | string | ISO date; only pages published on or after it. |
endPublishedDate | string | ISO date; only pages published on or before it. |
Example output
{
"source": "exa",
"fetchedAt": "2026-09-13T20:00:00.000Z",
"query": "how agent-to-agent micropayment protocols settle onchain",
"searchType": "neural",
"count": 1,
"results": [
{
"title": "What is the x402 payment protocol?",
"url": "https://example.com/x402-explained",
"publishedDate": "2026-08-02T00:00:00.000Z",
"author": null,
"text": null
}
]
}
Try it - see the 402 challenge (free)
curl -i -X POST https://agent402.tools/api/exa-search \
-H "Content-Type: application/json" \
-d '{"query":"how agent-to-agent micropayment protocols settle onchain","numResults":5}'
The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
import { metaTitle, metaDescription } from "./seo-meta.js";
const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/exa-search", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"query": "how agent-to-agent micropayment protocols settle onchain",
"numResults": 5
}),
});
Related tools
Extract article
POST /api/extractExtract the main article content from any public URL as clean markdown. Returns title, byline, excerpt, word count, and …
try in playground →Page metadata
GET /api/metaFetch page metadata for a URL: title, description, OpenGraph, Twitter cards, canonical URL, favicon.
try in playground →Browser render
POST /api/renderRender a page in a real headless Chromium browser (JavaScript executed), then extract the main content as clean markdown…
try in playground →