Neural web search

$0.012 per callUSDC via x402POST /api/exa-search

Neural (embedding-based) web search over a curated web index, which finds pages by meaning rather than keyword overlap. Send POST /api/exa-search with the required field query and pay $0.012 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, query, searchType, count and 1 more.

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 keyword web search rather than replacing it.

Category: Web & documentsTags: web search neural semantic

Try in playground →

Parameters

NameTypeRequiredDescription
querystringyesWhat to search for, in natural language (max 1000 chars). Also accepted as q, search, term, keyword, question.
numResultsnumbernoResults to return, 1 to 10 (default 10).
typestringnoauto (default), neural, keyword, fast, or instant (lowest latency, some depth traded for speed).
categorystringnoOptional category filter: company, publication, news, personal site, financial report, people ("research paper" is accepted as an alias of "publication"; pdf, github and tweet were retired upstream on 2026-07-23 and are refused with this list).
includeDomainsarraynoOnly return results from these domains.
excludeDomainsarraynoNever return results from these domains.
startPublishedDatestringnoISO date; only pages published on or after it.
endPublishedDatestringnoISO date; only pages published on or before it.

Example request

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}'

Without payment this returns HTTP 402 Payment Required with the exact price for exa-search; any x402 v2 or MPP client pays it and retries.

Example response

{
  "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
    }
  ]
}
FieldTypeAlways presentIn the example
sourcestringyesexa
fetchedAtstringyes2026-09-13T20:00:00.000Z
querystringyeshow agent-to-agent micropayment protocols settle onchain
searchTypestringyesneural
countnumberyes1
resultsarray of objectsyes1 item in the example

From an MCP client

catalog.call {
  "slug": "exa-search",
  "params": {
    "query": "how agent-to-agent micropayment protocols settle onchain",
    "numResults": 5
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for exa-search; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp.

Errors and behavior

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";

const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.012" }); // refuse any quote above this tool's price
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

Grounded answer with citations

$0.01 · POST /api/exa-answer

Ask a question and get a written answer with the sources it was drawn from.

Web page contents

$0.02 · POST /api/exa-contents

Retrieve the readable text of up to 10 web pages by URL, with optional query-focused highlights.

Web answer

$0.08 · GET /api/answer

AI-generated answer to a natural-language question, grounded in live web search results with source citations.

Wayback Machine snapshot

$0.003 · POST /api/archive-snapshot

Look up a URL in the Internet Archive's Wayback Machine: returns the archived snapshot closest to an optional timestamp.

Site favicon grabber

$0.003 · POST /api/favicon-grab

Fetch a site's favicon/logo: reads the page's declared <link rel=icon…> tags (all variants with their sizes and types).

Farcaster cast search

$0.005 · POST /api/fc-cast-search

Search Farcaster casts by keyword (literal, semantic or hybrid match), newest first, optionally filtered to one author.