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
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/15819.jsonfor the price and payment options. - Pay. Call
GET https://pursekeeper.dev/v1/fetch?url=. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with 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
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | nano:mainnet nano:mainnet | XNO | 1000000000000000000000000000 | nano_1xug1q5t7nxoj3ywwzokiea9jz8fq8qfgzp8pbyfr3co3e5xgj755uofu8ue | 60s |
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 paidJavaScript
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 headerDetails
- Provider
- pursekeeper
- Endpoint
- https://pursekeeper.dev/v1/fetch?url=
- Machine-readable
/resources/15819.json