llms.txt Content
# Web Extract
> Any URL to clean, LLM-ready markdown and structured metadata. No signup: pay per request with x402 (USDC on Algorand or Base) or with prepaid credits.
Fetches a web page and returns the main content as markdown, plus title, description, Open Graph metadata, canonical URL and all outbound links. Built for agents that need to read the web cheaply without running a browser.
- GET https://agentpay-extract.agentpay-apis.workers.dev/extract/v1/page?url=https%3A%2F%2Fexample.com — Fetch a URL and return markdown, metadata and links. ($0.005 per call)
- url (required): http(s) URL to read
- maxChars: Max markdown characters (1000-200000, default 50000)
## Payment
Standard x402 v2. Call an endpoint without payment to get HTTP 402 with a base64 PaymentRequired object in the PAYMENT-REQUIRED header, then retry with PAYMENT-SIGNATURE. Any x402 v2 client (e.g. @x402/fetch) works. Invalid input is rejected before payment, and payments are only settled if the call succeeds.
- USDC on Base (eip155:8453), exact scheme (EIP-3009), payTo 0x5d5d827D899CdcaCbD2b2e80162D805B3783C9D8. Settled via facilitator.
- USDC on Algorand (algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k), exact scheme, ASA 31566704, payTo F2ZYO2DDPQXOACUYBYQIHMQRAB3TJFZVCNUD3OU3CR5OOJUKFZOF5EYVJ4. Send a signed paymentGroup (client pays its own fee); settled directly by this server.
## Prepaid credits (cheapest for repeated use)
- Buy: GET https://agentpay-extract.agentpay-apis.workers.dev/credits/buy?usd=5 — pay once via x402 on either network, receive {"apiKey"}. Any amount $1-$500; bonus credit +10% at $5+, +20% at $20+.
- Or send USDC on Algorand to F2ZYO2DDPQXOACUYBYQIHMQRAB3TJFZVCNUD3OU3CR5OOJUKFZOF5EYVJ4 with note `agentpay:<sha256 hex of a secret>`, then POST https://agentpay-extract.agentpay-apis.workers.dev/credits/redeem {"txid","secret"}.
- Use: header `Authorization: Bearer <apiKey>`. Calls cost the Algorand price. Failed calls are refunded. Balance: GET https://agentpay-ex
OpenAPI Spec (preview)
{"openapi":"3.1.0","info":{"title":"Web Extract","version":"1.1.0","contact":{"name":"AgentPay","email":"nasilver20@gmail.com","url":"https://github.com/noah-silver/agentpay"},"description":"Fetches a web page and returns the main content as markdown, plus title, description, Open Graph metadata, canonical URL and all outbound links. Built for agents that need to read the web cheaply without running a browser.\n\nPay per call with x402 v2 in USDC on Algorand (algorand:wGHE2Pwdvd7S12BL5FaOP20EGYe