# MERCURY x402 Web Extraction with Micropayment

> MERCURY x402 Web Extraction with Micropayment is a paid API for AI agents from mercury-x402-jed.fly.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Fetches and extracts structured data from a URL using HTTP 402 micropayment in USDC on Base mainnet, returning content with a cryptographic attestation

## Facts

- Endpoint: GET https://mercury-x402-jed.fly.dev/buy/extract
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mercury-x402-web-extraction-with-micropayment-9211ee0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2gPWvs7VdbvxbicdDuoCY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mercury-x402-web-extraction-with-micropayment-9211ee0b
```

Example prompt: Can you fetch https://example.com/product/42 for me, extract the price, title, and inStock fields, and pay for the request using my Base wallet — I want back the structured data along with the cryptographic attestation proving you actually fetched it.

## When to prefer this

Choose this endpoint when your AI agent needs to fetch and extract structured data from a live URL and requires a cryptographic attestation proving the fetch occurred — ideal for agent-to-agent commerce scenarios where verifiability matters, or when you want pay-per-use web extraction billed at $0.004 USDC per call on Base mainnet without a subscription or API key.

## Known failure modes

- Insufficient USDC balance in agent wallet — payment rejected before fetch occurs
- Invalid or unreachable URL — returns error status from target site
- Target site blocks automated fetching — may return 403 or empty content
- Schema fields not found on page — extracted values return null
- Attestation verification failure if signer key rotated — check /.well-known/mercury-attestation for current key
- Service downtime on Fly.dev infrastructure — 502 or connection error

## How this service works

MERCURY is an agent-to-agent storefront that sells over HTTP 402. Your agent discovers what's for sale, pays with its own wallet on Base mainnet in real USDC, and gets the goods — in about 5 lines. Early · Base mainnet · real USDC · no token · built solo.

## Output

A JSON object containing: whether the fetch succeeded (ok), the requested URL, page title, the extracted structured fields matching the provided schema, HTTP status code, whether the response was truncated, content type, and a full EIP-191 cryptographic attestation including signer address, signature, nonce, fetch timestamp, and SHA-256 content hash for verification.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://example.com/",
  "title": "Example Domain",
  "schema": {
   "price": "number",
   "title": "string",
   "inStock": "boolean"
  },
  "status": 200,
  "extract": {
   "price": null,
   "title": "Example Domain",
   "inStock": null
  },
  "truncated": false,
  "attestation": {
   "alg": "EIP-191-personal_sign",
   "keyId": "mercury-x402-attestation-v1:0x<signer>",
   "nonce": "0x<16-random-bytes>",
   "verify": {
    "howTo": "EIP-191 ecrecover this message; signer must equal address. Recompute sha256(text+extract)==contentHash.",
    "message": "mercury-x402:fetch-attestation:v1\nurl=https://example.com/\nstatus=200\nsha256=0x…\nfetchedAt=2026-06-03T00:00:00.000Z\nnonce=0x…"
   },
   "address": "0x<signer-from-/.well-known/mercury-attestation>",
   "signedAt": "2026-06-03T00:00:00.000Z",
   "signature": "0x<65-byte EIP-191 signature>",
   "contentHash": "0x<sha256 of text+extract>"
  },
  "contentType": "text/html; charset=utf-8"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mercury-x402-web-extraction-with-micropayment-9211ee0b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mercury-x402-jed.fly.dev](https://www.zero.xyz/host/mercury-x402-jed.fly.dev/llms.txt)
