AI Inference · x402 · early usage

Web search that returns READY-TO-USE grounding text, not links: for one query you get t…

Web search that returns READY-TO-USE grounding text, not links: for one query you get the passages an independent search index extracted from the pages it ranked, flattened into chunks with their source URL and title and an approximate token count, under a to…

by agent402.tools · discovered, not yet claimed by its owner · updated 2026-10-08

30d calls4
30d payers3
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Web search that returns READY-TO-USE grounding text, not links: for one query you get the passages an independent search index extracted from the pages it ranked, flattened into chunks with their source URL and title and an approximate token count, under a token budget you choose (1024-32768, default 4096). Use it to ground a model or a RAG pipeline in one call, where search + extract would take several.

Tags: web · search · grounding · rag · context · bazaar · builder-code · payment-identifier

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-08
Input example from Bazaar metadata
{
  "maxTokens": 2048,
  "query": "x402 payment protocol"
}
Output example
{
  "chunks": [
    {
      "text": "x402 revives the HTTP 402 Payment Required status code so a server can quote a price and a client can pay per request...",
      "title": "x402: An open standard for internet-native payments",
      "tokensApprox": 34,
      "url": "https://www.x402.org/"
    }
  ],
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "query": "x402 payment protocol",
  "source": "brave-llm-context",
  "tokensApprox": 34,
  "totalChunks": 1,
  "truncated": false,
  "untrustedContent": true
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/27982.json for the price and payment options.
  3. Pay. Call GET https://agent402.tools/api/llm-context. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, Arbitrum One, eip155:143, Avalanche, eip155:1329, Optimism, eip155:4663, eip155:42220, Solana, stellar:pubnet, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.02 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Polygon, Arbitrum One, eip155:143, Avalanche, eip155:1329, Optimism, eip155:4663, eip155:42220, Solana, stellar:pubnet, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
Demand
4 calls · 3 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.020xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exactPolygon
eip155:137
USDC$0.020xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exactArbitrum One
eip155:42161
USDC$0.020xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exacteip155:143
eip155:143
0x754704Bc059F8C67012fEd69BC8A327a5aafb603200000xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exactAvalanche
eip155:43114
0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E200000xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exacteip155:1329
eip155:1329
0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392200000xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exactOptimism
eip155:10
0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85210000xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exacteip155:4663
eip155:4663
0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168200000xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exacteip155:42220
eip155:42220
0xcebA9300f2b948710d2653dD7B07f33A8B32118C200000xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
uptoBase
eip155:8453
USDC$0.020xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.02J7aN3PLJnTCF5qpEnvJHJsnCjcGuqC2rYtEM8Gv3xwg300s
exactstellar:pubnet
stellar:pubnet
CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75200000GDNJXCKW7ZM7GEEVP674TWPU26YJNBQ2FI4ZIPRKTPTNUEJMDHFJWWRL300s
exactalgorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
3156670420000C7IIHG7SPLPZ5H7ZT6HW3UV2OQMQQE6Y2HBNGZXSLRJULE42BEE2OY2XIE300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:143",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
    "amount": "20000",
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:43114",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amount": "20000",
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:1329",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392",
    "amount": "20000",
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:10",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
    "amount": "21000",
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:4663",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
    "amount": "20000",
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:42220",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
    "amount": "20000",
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "upto",
    "network": "eip155:8453",
    "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "J7aN3PLJnTCF5qpEnvJHJsnCjcGuqC2rYtEM8Gv3xwg",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "stellar:pubnet",
    "payTo": "GDNJXCKW7ZM7GEEVP674TWPU26YJNBQ2FI4ZIPRKTPTNUEJMDHFJWWRL",
    "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
    "amount": "200000",
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",
    "payTo": "C7IIHG7SPLPZ5H7ZT6HW3UV2OQMQQE6Y2HBNGZXSLRJULE42BEE2OY2XIE",
    "asset": "31566704",
    "amount": "20000",
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "chunks": {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "fetchedAt": {
          "type": "string"
        },
        "query": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "tokensApprox": {
          "type": "integer"
        },
        "totalChunks": {
          "type": "integer"
        },
        "truncated": {
          "type": "boolean"
        },
        "untrustedContent": {
          "type": "boolean"
        }
      },
      "required": [
        "query",
        "chunks",
        "totalChunks",
        "tokensApprox",
        "truncated",
        "source",
        "fetchedAt",
        "untrustedContent"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "chunks": [
      {}
    ],
    "fetchedAt": "string",
    "query": "string",
    "source": "string",
    "tokensApprox": 0,
    "totalChunks": 0,
    "truncated": true,
    "untrustedContent": true
  },
  "type": "string"
}

Examples

curl
curl "https://agent402.tools/api/llm-context"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent402.tools/api/llm-context");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://agent402.tools/api/llm-context")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
agent402.tools
Endpoint
https://agent402.tools/api/llm-context
Machine-readable
/resources/27982.json