Web search API for AI agents: top results as JSON, pay per query

$0.01 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

Search the web and get the top results as JSON: title, URL, a short snippet and the page age, from the Brave Search API. 1-20 results per call. Results are for the caller's immediate use only: no storing, resale or model training (Brave API terms). Upstream failures and exhausted daily capacity return 503, uncharged. Pair with /extract to read a result in full. Use when an agent needs current information or sources from the open web.

When to use it

Guide: Web search API, pay per call

Buy credits by card (from $1) Example result (JSON)

Inputs

NameTypeDescription
q (required)stringSearch query, at most 400 characters
countintegerNumber of results (1-20, default 10)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://tools.funwords.eu/search?q=x402%20payment%20protocol"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "query": "x402 payment protocol",
  "provider": "Brave Search",
  "count": 1,
  "results": [
    {
      "title": "x402: an open payment protocol",
      "url": "https://www.x402.org/",
      "snippet": "x402 lets any HTTP API charge per request in stablecoins…",
      "age": "2 days ago"
    }
  ],
  "terms": "Results are for the caller's immediate use: no storing or caching beyond the current task, no resale and no model training (Brave Search API terms)."
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is search, and the first 25 successful calls are free:

https://tools.funwords.eu/mcp

Questions

Where do the results come from?

The Brave Search API, one request per paid call. Results are for the caller's immediate use: no storing, resale or model training.

What if the search provider is down or the daily capacity is used up?

The call answers 503 and nothing is charged.

How do I pay?

Each successful call costs $0.01; failed calls are not charged. This tool is not in the free calls; pay with card credits (from $1; the key goes in an Authorization header or, for clients that can only fetch a URL, as api_key= in the URL) or per call in USDC over x402 or MPP. No account is needed.

Related tools