API · x402

fetches a URL and returns the page as plain text

fetches a URL and returns the page as plain text

by pursekeeper · verified provider · updated 2026-09-21

What it does

fetches a URL and returns the page as plain text

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/15819.json for the price and payment options.
  3. Pay. Call GET https://pursekeeper.dev/v1/fetch?url=. 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 the listed asset on nano:mainnet, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
see accepts
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
nano:mainnet

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactnano:mainnet
nano:mainnet
XNO1000000000000000000000000000nano_1xug1q5t7nxoj3ywwzokiea9jz8fq8qfgzp8pbyfr3co3e5xgj755uofu8ue60s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "nano:mainnet",
    "payTo": "nano_1xug1q5t7nxoj3ywwzokiea9jz8fq8qfgzp8pbyfr3co3e5xgj755uofu8ue",
    "asset": "XNO",
    "amount": "1000000000000000000000000000",
    "maxTimeoutSeconds": 60
  }
]

Examples

curl
curl "https://pursekeeper.dev/v1/fetch?url="
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://pursekeeper.dev/v1/fetch?url=");
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://pursekeeper.dev/v1/fetch?url=")
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
pursekeeper
Endpoint
https://pursekeeper.dev/v1/fetch?url=
Machine-readable
/resources/15819.json