{
  "ok": true,
  "seo": {
    "title": "Ask before you pay: is this x402 endpoint alive, what does it charge, what changed?",
    "description": "Ask before you pay an x402 endpoint: is it alive, what does it charge and to whom, and what changed since your last look? Free checks, one-call paid answers (price benchmarking, schema compatibility, clean Markdown) and change packs. USDC on Base, one delivery per payment, no account.",
    "canonical_url": "https://x402-catalog-history.ai-business-surface.workers.dev/",
    "og": {
      "og:type": "website",
      "og:site_name": "x402-catalog-history",
      "og:title": "Ask before you pay: is this x402 endpoint alive, what does it charge, what changed?",
      "og:description": "Ask before you pay an x402 endpoint: is it alive, what does it charge and to whom, and what changed since your last look? Free checks, one-call paid answers (price benchmarking, schema compatibility, clean Markdown) and change packs. USDC on Base, one delivery per payment, no account.",
      "og:url": "https://x402-catalog-history.ai-business-surface.workers.dev/"
    },
    "twitter_card": "summary",
    "robots": "index,follow",
    "sitemap": "https://x402-catalog-history.ai-business-surface.workers.dev/sitemap.xml",
    "free_paths_indexed": [
      "/",
      "/health",
      "/status",
      "/guide/buy",
      "/guide/sample",
      "/ja",
      "/en",
      "/ja/services",
      "/services",
      "/data",
      "/data.json",
      "/support"
    ],
    "paid_paths_not_indexed": [
      "/history",
      "/changes",
      "/compat",
      "/changes/bundle",
      "/check",
      "/gas",
      "/gas/plan",
      "/price",
      "/reality",
      "/random",
      "/contract",
      "/integrate",
      "/failure",
      "/mailauth",
      "/spf-depth",
      "/dkim",
      "/dmarc-policy",
      "/mta-sts",
      "/json-strict",
      "/ai-access"
    ]
  },
  "catalog": {
    "catalog_version": 1,
    "service": "x402-catalog-history",
    "what_this_is": "The machine-readable catalogue of every product served by this Worker: what each one is, its input and output, its price, payment terms, a purchase example and notes for catalogue listing. GET / returns this same object as `catalog`, and product.json is that object on disk; both come from this one function, so they cannot drift apart.",
    "how_to_read": "purchase_examples[] is the machine-readable purchase example for each product (call, input, output shape, price), in the same order as products[]. products[] holds one entry per product; product_id identifies it. Each price is for one delivery. already_paid is the recovery path when a payment was sent but no delivery arrived.",
    "already_paid": {
      "applies_when": "You already sent USDC on Base to pay_to and did not receive a delivery (for example because you did not read the 402 body). The payment is not lost and you do not need to pay again.",
      "no_402_body_required": true,
      "next_action": {
        "method": "POST",
        "path": "/credit/claim",
        "url": "https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim",
        "body": {
          "tx": "0x… (the 32-byte transaction hash of your USDC transfer on Base)"
        },
        "curl": "curl -sS -X POST 'https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim' -H 'content-type: application/json' -d '{\"tx\":\"0x<your tx hash>\"}'",
        "returns": "Exactly 0.01 USDC: 200 with the /digest delivery itself (credit_claim.delivery = \"digest_in_claim\"; no second call). Other amounts: 200 with credit_id and the exact next call (X-CREDIT: <credit_id> on a paid route). If the credit ledger cannot be written, a small claim still returns the /digest delivery itself (credit_claim.ledger = \"unavailable\"). No 402 body and no second payment are needed.",
        "idempotent": "A 0.01 USDC claim is delivered directly each time and stores nothing. For a pack or a micro balance, reporting the same tx again returns the same credit_id and does not issue a second balance."
      },
      "accepted_amounts": {
        "minimum_atomic": "10000",
        "minimum_usd": "0.01",
        "pack_atomic": "5000000",
        "pack_usd": "5",
        "rule": "Any USDC transfer to pay_to of at least 0.01 USDC is accepted. Exactly 0.01 USDC is delivered as one /digest delivery in the claim response (no credit id, no second call). Above 0.01 up to just under 5 USDC it becomes a pay-as-you-go balance charged at each route's own price with no per-call minimum. At 5 USDC or more it issues the 110-call pack with its 0.05 USDC per-call minimum."
      },
      "exact_0_01": {
        "route": "/digest",
        "price_atomic": "10000",
        "price_usd": "0.01",
        "after_claim": "POST https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim with {\"tx\":\"0x<your tx hash>\"} -> 200 with the /digest delivery itself",
        "note": "A 0.01 USDC transfer is enough: the claim response is the /digest delivery. No credit id and no second call are needed."
      },
      "spend_header": "X-CREDIT: <credit_id>",
      "product_page": "https://x402-catalog-history.ai-business-surface.workers.dev/credit"
    },
    "failure_contract": {
      "applies_to": "every product in products[] and every endpoint in paid_endpoints[]",
      "delivery_defined_as": "an HTTP 2xx response from the paid endpoint; any other status is not a delivery",
      "payment_order": "x402 settles before the handler runs, so the status code decides delivery, not whether a charge happened",
      "automatic_retry": false,
      "on_4xx": "the handler rejected the request before doing work where possible; fix the input named in the error. If a payment already settled, recover the delivery with already_paid.",
      "on_5xx": "no delivery. Retry only if the request is idempotent; if a payment already settled, recover the delivery with already_paid.",
      "refunds": "this service does not initiate refunds; an undelivered settled payment is recovered through already_paid (tx hash).",
      "recovery": "see already_paid in this catalogue (tx hash, and the /verify flow)."
    },
    "purchase_examples": [
      {
        "product_id": "x402-catalog-history",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/history",
          "path": "/history",
          "params": "none",
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/history",
          "params": "none",
          "body": "none",
          "note": "Payment is proven by the payment header, not by a request body."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "generated_at": "ISO-8601 UTC, when this snapshot was built",
            "period": "{ first_observed_at, last_observed_at, cycles, series_events }",
            "coverage": "{ targets[], total_observations, total_misses, miss_events[], missing_meaning }",
            "changes": "[{ observed_at, observed_at_jst, target_id, change_status, changes[] }] sorted oldest first",
            "latest": "{ target_id: { observed_at, facts } } — full facts of the newest observation per target",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset } }"
          }
        },
        "price": {
          "amount_atomic": "10000",
          "amount_usd": 0.01,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /history response"
        },
        "steps": [
          "curl -i https://<worker-host>/history  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-catalog-history response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-json-compat-check",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/compat",
          "path": "/compat",
          "params": null,
          "body": {
            "schema": "JSON Schema fragment (supported keywords only)",
            "actual": "the JSON value to check"
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "content_type": "application/json",
          "method": "POST",
          "path": "/compat",
          "body": {
            "schema": "JSON Schema fragment (supported keywords only)",
            "actual": "the JSON value to check"
          },
          "note": "The request body is validated (size, JSON shape, depth, node count) and rejected with 400/413 before any payment is requested."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "status": "no_mismatch | mismatch | unsupported_input",
            "issues": "[{ path (RFC 6901 JSON Pointer), schemaPath, keyword, expected, actual }]",
            "checker": "{ name, version, supported_keywords }",
            "input": "{ schema_sha256, actual_sha256, schema_canonical_bytes, actual_canonical_bytes }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /compat response"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/compat  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-json-compat-check response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-catalog-change-log",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/changes",
          "path": "/changes",
          "params": {
            "from": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the first observed cycle",
            "to": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the last observed cycle"
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/changes",
          "params": {
            "from": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the first observed cycle",
            "to": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the last observed cycle"
          },
          "body": "none",
          "note": "An unparsable or reversed from/to is rejected with 400 before any payment is requested. Payment is proven by the payment header, not by a request body."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "generated_at": "ISO-8601 UTC, when this change log was built",
            "snapshot_id": "string (snap-<16 hex>)",
            "first_observed_at": "ISO-8601 UTC, first observation inside the selected period",
            "last_observed_at": "ISO-8601 UTC, last observation inside the selected period",
            "cycles": "number of collector cycles inside the selected period",
            "period": "{ requested, default_period, cycles, observation_records, available, filter_rule }",
            "changes": "{ total, by_target, by_field, first_change_at, last_change_at, events[] } where each event is { observed_at, observed_at_jst, cycle, target_id, field, kind (changed|added|removed), from, to }",
            "targets": "[{ target_id, url, purpose, observations_in_period, cycles_present, cycles_missing, first/last_observed_at, last_success_at, last_failure_at, consecutive_failures, state }]",
            "outages": "{ total, intervals[{ target_id, started_at, ended_at, ongoing, failed_attempts, http_statuses, errors }] }",
            "missing": "{ total, intervals[{ target_id, from, to, missing_cycles, cycle_numbers, after, before }], cycle_gaps }",
            "first_seen": "[{ target_id, observed_at, cycle }] — targets first observed inside the period",
            "snapshot": "{ id, kind, generated_at, cycles, observation_records }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset } }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /changes response"
        },
        "steps": [
          "curl -i https://<worker-host>/changes  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-catalog-change-log response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-catalog-change-bundle",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/changes/bundle",
          "path": "/changes/bundle",
          "params": {
            "units": "optional integer 1..100; default 100. A larger value is refused with 400, not truncated.",
            "from": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the first observed cycle",
            "to": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the last observed cycle",
            "order": "optional oldest (default) | newest — the order the units are delivered in"
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/changes/bundle",
          "params": {
            "units": "optional integer 1..100; default 100. A larger value is refused with 400, not truncated.",
            "from": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the first observed cycle",
            "to": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the last observed cycle",
            "order": "optional oldest (default) | newest — the order the units are delivered in"
          },
          "body": "none",
          "note": "Every parameter is checked before any payment: a bad period, a bad order, a missing or non-integer units value and a units value above the limit are answered with 400 and no PAYMENT-REQUIRED header. A period that contains no observation cycle at all is also refused with 400 (period_not_observed) instead of charging for nothing."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "units_requested": "number — what the request asked for (default 100)",
            "units_delivered": "number — how many units are in units[]",
            "units_unavailable": "number — units_requested - units_delivered",
            "unit_definition": "object — the definition every delivered unit follows",
            "units": "[{ unit_index, target_id, field, kind (changed|added|removed), from, to, observed_at, observed_at_jst, cycle }]",
            "shortfall": "{ units, unit_slots: { detected_change, observed_without_change, missing_observation, total }, reasons: [{ code, count, meaning }], note }",
            "order": "string — the delivery order that was applied",
            "period": "same as GET /changes",
            "targets": "same as GET /changes (per-target status, missing cycles)",
            "outages": "same as GET /changes",
            "missing": "same as GET /changes",
            "snapshot_id": "string (snap-<16 hex>)",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset } }"
          }
        },
        "price": {
          "amount_atomic": "100000",
          "amount_usd": 0.1,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /changes/bundle response (up to 100 units)"
        },
        "steps": [
          "curl -i https://<worker-host>/changes/bundle  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-catalog-change-bundle response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-check-before-you-pay",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/check",
          "path": "/check",
          "params": {
            "url": "required for a delivery. The absolute http(s) URL of the x402 resource to check. A url that is not http(s), points inside a private or link-local network, uses a blocked port, embeds credentials or is over-long is refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/check",
          "params": {
            "url": "required for a delivery. The absolute http(s) URL of the x402 resource to check. A url that is not http(s), points inside a private or link-local network, uses a blocked port, embeds credentials or is over-long is refused with 400 before payment."
          },
          "body": "none",
          "note": "The URL is validated before any payment: a malformed, non-http(s), oversized, internal, blocked-port or credentialed url is answered with 400 and no PAYMENT-REQUIRED header, and nothing is fetched. The bare URL without a payment header still answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "target": "{ url, host, path } — the URL that was checked",
            "checked_at": "ISO-8601 UTC, when the probe ran",
            "alive": "boolean — true only when the target answered over HTTP; false with a reason when it did not",
            "reason": "null when the probe completed; timeout | unreachable when alive is false; blocked_redirect | too_many_redirects when the target answered but the probe stopped there",
            "probe": "{ method, requests_made, completed, http_status, latency_ms, final_url, redirects[], content_type, body_bytes, body_truncated, payment_header_sent, max_timeout_ms, max_redirects }",
            "payment_challenge": "{ present, source, x402_version, amount_atomic, amount_usd, asset, asset_symbol, network, pay_to, scheme, max_timeout_seconds, required_fields[], accepts_fields[], top_level_fields[], resource, declared_input, declared_output_example }",
            "response_shape": "{ kind, content_type, keys[] } — the shape of what the target actually returned",
            "history": "{ stored_checks, first_checked_at, previous_checked_at, uptime{reached, of, ratio}, challenges_seen, changes_since_previous[], baseline }",
            "delivery_evidence": "{ source, first_party, known_deliveries } — this service's own paid-delivery record, and only its own",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /check — one probe of one target URL, with its stored history"
        },
        "steps": [
          "curl -i https://<worker-host>/check  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-check-before-you-pay response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-check-batch",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/check/batch",
          "path": "/check/batch",
          "params": {
            "urls": "required. 1 to 10 comma-separated absolute http(s) URLs of x402 resources. An empty item, a duplicate URL, a non-http(s) URL, an internal/private/link-local host, a blocked port, embedded credentials or an over-long URL is refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/check/batch",
          "params": {
            "urls": "required. 1 to 10 comma-separated absolute http(s) URLs of x402 resources. An empty item, a duplicate URL, a non-http(s) URL, an internal/private/link-local host, a blocked port, embedded credentials or an over-long URL is refused with 400 before payment."
          },
          "body": "none",
          "note": "The bare path without urls still answers 402 when unpaid, so a catalogue can confirm this is an x402 resource by calling it once. With a payment header and no urls it answers 400. `?urls=` (empty) and more than 10 URLs are 400 before payment. Repeated calls are rate limited before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — x402-check-batch",
            "schema_version": "number",
            "generated_at": "ISO-8601 UTC, when the probes ran",
            "results": "[{url, alive, http_status, payment_challenge_present, price, asset, network, payTo, changed_since_previous, error}] — one entry per input URL, in input order; each URL is fetched once",
            "results[].price": "amount in atomic units of results[].asset (USDC has 6 decimals), as served in the 402; null when the target served no readable payment challenge",
            "results[].changed_since_previous": "the same diffCheckRecords output as /check: [{field, from, to}] between the previous stored check of this URL and this one; [] on the first stored check or when nothing changed",
            "results[].error": "null when the target was reached; a reason such as timeout, unreachable, blocked_redirect or too_many_redirects otherwise",
            "errors": "[] — per-URL failures are reported in results[].error and never fail the batch"
          }
        },
        "price": {
          "amount_atomic": "100000",
          "amount_usd": 0.1,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /check/batch — one probe of each of up to 10 target URLs, with their stored history"
        },
        "steps": [
          "curl -i https://<worker-host>/check/batch  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-check-batch response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-check-watch",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/check/watch",
          "path": "/check/watch",
          "params": {
            "url": "required for a delivery. Absolute http(s) URL of the x402 endpoint. A non-http(s) URL, an internal/private/link-local host, a blocked port, embedded credentials or an over-long URL is refused with 400 before payment.",
            "since": "optional. ISO-8601 date-time with a timezone, e.g. 2026-10-22T00:00:00Z. Refused with 400 when it is not a valid ISO-8601 date-time; an empty value is also 400. Omit it to compare with the most recent stored observation."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/check/watch",
          "params": {
            "url": "required for a delivery. Absolute http(s) URL of the x402 endpoint. A non-http(s) URL, an internal/private/link-local host, a blocked port, embedded credentials or an over-long URL is refused with 400 before payment.",
            "since": "optional. ISO-8601 date-time with a timezone, e.g. 2026-10-22T00:00:00Z. Refused with 400 when it is not a valid ISO-8601 date-time; an empty value is also 400. Omit it to compare with the most recent stored observation."
          },
          "body": "none",
          "note": "The bare path without url still answers 402 when unpaid, so a catalogue can confirm this is an x402 resource with one call. With a payment header and no url it answers 400. Repeated calls are rate limited with 429 before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — x402-check-watch",
            "schema_version": "number",
            "check_id": "sha256 of the normalized target URL; the same id /check uses",
            "target": "{ url, host, path }",
            "checked_at": "ISO-8601 UTC, when this probe ran",
            "since": "ISO-8601 UTC, normalized; null when the request omitted it",
            "since_provided": "boolean",
            "current": "{ alive, http_status, price, asset, network, payTo, timeout, reason, requests_made, latency_ms, payment_header_sent } — price is in atomic units of asset; timeout is the target's declared maxTimeoutSeconds; null when no readable challenge",
            "changes": "[{at, from_at, field, from, to}] — field-level differences between consecutive stored observations ending with the current probe; [] when there is nothing to compare or nothing changed. at is the observation that first recorded the new value; from_at is the one it is compared with",
            "changes_basis": "string — which stored observations the comparison used, or why it is empty",
            "history_stats": "{ stored_checks, answered, failed, last_seen_at } — counted only from this service's stored checks of this URL before this delivery",
            "observation_scope": "{ what_this_is, basis, first_stored_at, last_stored_at, observations_after_since, retention_days, changes_are_between_stored_observations }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "80000",
          "amount_usd": 0.08,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /check/watch — one probe of one target URL, with the stored history in the window you name"
        },
        "steps": [
          "curl -i https://<worker-host>/check/watch  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-check-watch response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-402-compat-report",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/compat-check",
          "path": "/compat-check",
          "params": {
            "url": "required for a delivery. The absolute http(s) URL of the x402 resource whose 402 to judge. A url that is not http(s), points inside a private or link-local network, uses a blocked port, embeds credentials or is over-long is refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/compat-check",
          "params": {
            "url": "required for a delivery. The absolute http(s) URL of the x402 resource whose 402 to judge. A url that is not http(s), points inside a private or link-local network, uses a blocked port, embeds credentials or is over-long is refused with 400 before payment."
          },
          "body": "none",
          "note": "The bare path without a payment header still answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "target": "{ url, host, path } — the URL that was judged",
            "checked_at": "ISO-8601 UTC, when the probe ran",
            "alive": "boolean — true only when the target answered over HTTP",
            "reason": "null when the probe completed; timeout | unreachable | blocked_redirect | too_many_redirects otherwise",
            "probe": "{ method, requests_made, completed, http_status, latency_ms, final_url, redirects[], content_type, body_bytes, body_truncated, payment_header_sent, max_timeout_ms, max_redirects }",
            "compat": "{ http_status, is_x402_challenge, header{payment_required_present,decodes_as_base64_json,x402_version}, v2{...}, v1{...}, verdict }",
            "verdict": "{ buyable_with_v2_client, buyable_with_v1_client, one_line, blocking[], warnings[] }",
            "v2": "{ readable, x402_version, missing_required[], accepts_fields[], top_level_fields[], scheme, network, network_form, amount_atomic, amount_usd, asset, asset_symbol, pay_to, max_timeout_seconds, resource_url }",
            "v1": "{ same fields as v2, read from the response body }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /compat-check — one reading of one target's 402"
        },
        "steps": [
          "curl -i https://<worker-host>/compat-check  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-402-compat-report response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-seller-playbook",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/guide",
          "path": "/guide",
          "params": {
            "format": "optional. json (default) returns the full text; pdf returns the PDF bytes. Payment terms are identical."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/guide",
          "params": {
            "format": "optional. json (default) returns the full text; pdf returns the PDF bytes. Payment terms are identical."
          },
          "body": "none",
          "note": "This is not an x402 paid route. GET /guide returns purchase instructions only; the full text is delivered after a plain USDC transfer on Base is verified at /guide/claim. The human page at /guide/buy quotes the same price."
        },
        "output": {
          "content_type": "application/json; charset=utf-8 (application/pdf with format=pdf)",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "title": "string",
            "version": "string — the edition of the text",
            "updated_at": "ISO-8601 UTC",
            "sections": "string[] — the chapter list",
            "playbook_markdown": "string — the full text, the deliverable",
            "download": "{ url, format, expires_at, pdf_bytes } — a signed, expiring link to the same text as PDF",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "3000000",
          "amount_usd": 3,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one delivery — the full playbook as text, plus the PDF download link"
        },
        "steps": [
          "curl -i https://<worker-host>/guide  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-seller-playbook response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-crosschain-gas",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/gas",
          "path": "/gas",
          "params": {
            "chains": "optional. Comma-separated chain names, e.g. chains=base,eth. Supported: base,eth,arbitrum,optimism,polygon. Omit it to get all of them. Aliases (ethereum, arb, op, matic) are accepted. An unknown chain name is refused with 400 before any payment and before any RPC call."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/gas",
          "params": {
            "chains": "optional. Comma-separated chain names, e.g. chains=base,eth. Supported: base,eth,arbitrum,optimism,polygon. Omit it to get all of them. Aliases (ethereum, arb, op, matic) are accepted. An unknown chain name is refused with 400 before any payment and before any RPC call."
          },
          "body": "none",
          "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. No payment is verified and no RPC is called until the input is valid."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "requested_at": "ISO-8601 UTC, when this delivery was assembled",
            "chains_requested": "string[] — the chains this call asked for, in order",
            "chains_delivered": "string[] — the chains an RPC answered for",
            "gas": "array, one entry per delivered chain: { chain, label, chain_id, chain_id_hex, gas_price_wei, gas_price_gwei, base_fee_wei, base_fee_gwei, priority_fee_wei, priority_fee_gwei, priority_fee_basis, node_priority_fee_wei, node_priority_fee_gwei, next_block_base_fee_gwei, block:{number,timestamp,age_seconds,gas_used,gas_limit,utilization,transactions}, source_rpc, fetched_at, cached, cache_age_ms }",
            "chains_unavailable": "array of { chain, error, rpc_trace[] } — requested chains no RPC answered for (the delivery is still 200 when at least one chain answered; 503 when none did)",
            "cache": "{ ttl_ms, hits, misses }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /gas — one delivery covering every chain you named (up to 5)"
        },
        "steps": [
          "curl -i https://<worker-host>/gas  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-crosschain-gas response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-gas-plan",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/gas/plan",
          "path": "/gas/plan",
          "params": {
            "chains": "optional. Comma-separated chain names, e.g. chains=base,eth. Supported: base,eth,arbitrum,optimism,polygon. Omit it to get all of them. Aliases (ethereum, arb, op, matic) are accepted. An unknown chain name is refused with 400 before any payment and before any RPC call.",
            "gas_limit": "optional integer, default 21000, range 1 to 30000000. A non-integer, an empty value or an out-of-range value is refused with 400 before any payment and before any RPC call."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/gas/plan",
          "params": {
            "chains": "optional. Comma-separated chain names, e.g. chains=base,eth. Supported: base,eth,arbitrum,optimism,polygon. Omit it to get all of them. Aliases (ethereum, arb, op, matic) are accepted. An unknown chain name is refused with 400 before any payment and before any RPC call.",
            "gas_limit": "optional integer, default 21000, range 1 to 30000000. A non-integer, an empty value or an out-of-range value is refused with 400 before any payment and before any RPC call."
          },
          "body": "none",
          "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. No payment is verified and no RPC is called until chains and gas_limit are valid."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — x402-gas-plan",
            "schema_version": "number",
            "requested_at": "ISO-8601 UTC, when this delivery was assembled",
            "gas_limit": "number — the gas limit this plan uses (default 21000)",
            "gas_limit_specified": "boolean — false when the request omitted gas_limit",
            "chains_requested": "string[] — the chains this call asked for, in order",
            "chains_delivered": "string[] — the chains a plan could be computed for",
            "chains": "array, one entry per delivered chain: { chain, base_fee_gwei, next_base_fee_gwei, priority_fee_p50_gwei, max_fee_per_gas_gwei, max_priority_fee_per_gas_gwei, gas_limit, total_fee_wei, total_fee_eth, block_number, block_time, rpc_host, fetched_at, cached, cache_age_ms, priority_fee_basis }",
            "unavailable": "array of { chain, reason, rpc_trace[] } — requested chains whose plan could not be computed (no_rpc_answered / base_fee_unavailable / next_base_fee_unavailable / priority_fee_p50_unavailable). The delivery is still 200 when at least one chain was computed; 503 when none was.",
            "cost_basis": "{ total_fee_wei, total_fee_eth, max_fee_per_gas, max_priority_fee_per_gas, no_conversion, unavailable } — the exact rules used",
            "cache": "{ ttl_ms, hits, misses }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /gas/plan — one fee plan per chain you named (up to 5) at the gas limit you set"
        },
        "steps": [
          "curl -i https://<worker-host>/gas/plan  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-gas-plan response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-gas-tx",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/gas/tx",
          "path": "/gas/tx",
          "params": {
            "chain": "required. One chain name: base,eth,arbitrum,optimism,polygon. Aliases accepted by /gas (ethereum, arb, op, matic) also work. A missing or unknown chain is refused with 400 before any payment and before any RPC call.",
            "hash": "required. 0x followed by exactly 64 hexadecimal characters (32 bytes). Uppercase hex is accepted and normalised to lowercase. A missing or malformed hash is refused with 400 before any payment and before any RPC call."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/gas/tx",
          "params": {
            "chain": "required. One chain name: base,eth,arbitrum,optimism,polygon. Aliases accepted by /gas (ethereum, arb, op, matic) also work. A missing or unknown chain is refused with 400 before any payment and before any RPC call.",
            "hash": "required. 0x followed by exactly 64 hexadecimal characters (32 bytes). Uppercase hex is accepted and normalised to lowercase. A missing or malformed hash is refused with 400 before any payment and before any RPC call."
          },
          "body": "none",
          "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. No payment is verified and no RPC is called until chain and hash are valid."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — x402-gas-tx",
            "schema_version": "number",
            "chain": "string — the canonical chain name that was read",
            "hash": "string — the 0x-prefixed 64-hex hash, normalised to lowercase",
            "found": "boolean — true only when a receipt was returned; false for pending or not found",
            "status": "string|null — success | reverted | pending | null (null when not found or the receipt has no status)",
            "block_number": "number|null — the block that included the transaction",
            "gas_used": "number|null — the gas the receipt says was used",
            "effective_gas_price_wei": "string|null — the receipt's effectiveGasPrice, raw integer in wei",
            "fee_wei": "string|null — gas_used × effective_gas_price_wei, decimal string in wei",
            "fee_eth": "number|null — fee_wei / 1e18 (JSON number; fee_wei holds the exact integer)",
            "from": "string|null — sender address",
            "to": "string|null — recipient address (null for a contract creation or when no transaction was found)",
            "checked_at": "ISO-8601 UTC, when this delivery was assembled",
            "rpc_host": "string|null — host of the public RPC that answered (no scheme, no key)",
            "reason": "string — only when found=false: not_found or pending",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "amount_usd": 0.002,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /gas/tx — the receipt for one transaction on one chain"
        },
        "steps": [
          "curl -i https://<worker-host>/gas/tx  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-gas-tx response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-price-benchmark",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/price",
          "path": "/price",
          "params": {
            "amount": "required unless url carries it. The price to judge, in USD, e.g. amount=0.02 or amount=0.005. A value that is not a positive number, or is above the sanity ceiling, is refused with 400 before payment.",
            "url": "optional. The x402 resource you are pricing, e.g. url=https://example.com/api/x. Its declared tags choose the category to compare against, and its host is compared against the same host's other measured prices.",
            "category": "optional. Compare against one named category directly, e.g. category=token_data. Unknown names are refused with 400 with the list of known names."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/price",
          "params": {
            "amount": "required unless url carries it. The price to judge, in USD, e.g. amount=0.02 or amount=0.005. A value that is not a positive number, or is above the sanity ceiling, is refused with 400 before payment.",
            "url": "optional. The x402 resource you are pricing, e.g. url=https://example.com/api/x. Its declared tags choose the category to compare against, and its host is compared against the same host's other measured prices.",
            "category": "optional. Compare against one named category directly, e.g. category=token_data. Unknown names are refused with 400 with the list of known names."
          },
          "body": "none",
          "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. Nothing is computed and no payment is verified until the input is valid."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "answered_at": "ISO-8601 UTC, when this delivery was assembled",
            "query": "{ amount_usd, amount_atomic, category, target_url, target_host } — what was judged",
            "verdict": "{ label: cheap|fair|expensive|free|at_band_floor, plain, rule, one_line }",
            "price_position": "{ amount_usd, percentile, band, multiple_of_median, below_median, comparisons[] }",
            "market": "{ sample_size, priced_resources, free_resources, unknown_price_resources, min, p10, p25, median, p75, p90, max, mean, bands{}, fetched_at, source_url }",
            "category": "null, or the same statistics for the matched category plus how it was matched",
            "host": "null, or { host, sample_size, median, min, max } for the same host",
            "my_price": "{ amount_usd, samples_behind_it, percentile, band, verdict } — where this service's own price for GET /price sits, for comparison",
            "basis": "{ verdict_rule, sample_size, fetched_at, method }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /price — one comparison against the bundled snapshot"
        },
        "steps": [
          "curl -i https://<worker-host>/price  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-price-benchmark response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-agent-payment-reality-map",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/reality",
          "path": "/reality",
          "params": {
            "name": "optional. One route to answer, e.g. name=Loopuman or name=Seedstr (case-insensitive; a partial name matches). Unknown names are refused with 400 and the list of known names, before any payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "params": {
            "name": "optional. One route to answer, e.g. name=Loopuman or name=Seedstr (case-insensitive; a partial name matches). Unknown names are refused with 400 and the list of known names, before any payment."
          },
          "path": "/reality",
          "body": "none",
          "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. GET with the name in the query string, so one call is enough to decide."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "answered_at": "ISO-8601 UTC, when this delivery was assembled",
            "query": "{ name } — what was asked",
            "match": "{ requested, matched, exact } — how the name resolved to routes",
            "count": "number of routes in this delivery",
            "decision_rule": "the rule behind usable_without_identity_gate",
            "how_to_read": "{ alive, receive_currency_chain, kyc_required, sms_required, paid_evidence } — what each field means",
            "routes": "[ { name, url, alive, alive_measured_at, receive_currency_chain, kyc_required, sms_required, fees, paid_evidence, usable_without_identity_gate, source } ]",
            "summary": "{ total, alive, zero_open, excluded, blocked, unprocessed, unconfirmed_fields }",
            "data": "{ generated_at, schema_version, about }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "50000",
          "amount_usd": 0.05,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /reality — the full route map, or one named route"
        },
        "steps": [
          "curl -i https://<worker-host>/reality  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-agent-payment-reality-map response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-article-to-markdown",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/markdown",
          "path": "/markdown",
          "params": {
            "url": "required for a delivery. The absolute http(s) URL of the article to convert. Validated before payment; a bad url is refused with 400 and nothing is fetched."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/markdown",
          "params": {
            "url": "required for a delivery. The absolute http(s) URL of the article to convert. Validated before payment; a bad url is refused with 400 and nothing is fetched."
          },
          "body": "none",
          "note": "The bare path without a payment header answers 402, so a catalogue can confirm the payment terms by calling it once. Repeated calls are rate limited with 429 before payment."
        },
        "output": {
          "content_type": "text/markdown; charset=utf-8",
          "encoding": "UTF-8",
          "shape": {
            "body": "the article as Markdown, starting with the title as an H1 heading",
            "headers": {
              "x-markdown-title": "the page title",
              "x-markdown-target": "the URL actually read, after redirects",
              "x-markdown-words": "word count of the Markdown body",
              "x-markdown-source-bytes": "bytes read from the target",
              "x-markdown-cache": "hit when served from the short-lived cache, miss when fetched now",
              "x-markdown-http-status": "the status the target answered with"
            }
          }
        },
        "price": {
          "amount_atomic": "10000",
          "amount_usd": 0.01,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /markdown — one article converted to Markdown"
        },
        "steps": [
          "curl -i https://<worker-host>/markdown  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-article-to-markdown response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-mutation-watch",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/watch",
          "path": "/watch",
          "params": {
            "url": "register: store the payment conditions of this absolute http(s) URL as the baseline. POST /watch with body {\"url\":\"...\"} does the same.",
            "id": "diff: return only what changed since the stored baseline for this watch_id."
          },
          "body": "POST /watch accepts {\"url\":\"<absolute http(s) URL>\"} (JSON, at most 8192 bytes).",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/watch",
          "params": {
            "url": "register: store the payment conditions of this absolute http(s) URL as the baseline. POST /watch with body {\"url\":\"...\"} does the same.",
            "id": "diff: return only what changed since the stored baseline for this watch_id."
          },
          "body": "POST /watch accepts {\"url\":\"<absolute http(s) URL>\"} (JSON, at most 8192 bytes).",
          "note": "The URL is validated before any payment: a malformed, non-http(s), oversized, internal, blocked-port or credentialed url is answered with 400 and no PAYMENT-REQUIRED header, and nothing is fetched. An unknown id is answered with 404 before payment. The bare path without a payment header answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment. Observed on this deployment: a diff call made within about a minute of the first registration of a URL can miss the baseline (the KV store is eventually consistent, and a missing lookup is cached at the edge for 60 seconds). That call is answered 404 before payment, so it is not charged; the same id works after the window."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "watch_id": "string — sha256 of the normalized target URL; the id to call again",
            "mode": "register | diff",
            "target": "{ url, host, path } — the URL that was watched",
            "registered_at": "ISO-8601 UTC, when the baseline was first stored",
            "checked_at": "ISO-8601 UTC, when this probe ran",
            "baseline": "boolean — true when this call stored the first baseline",
            "changed": "boolean — true only when an observed challenge differs from the stored conditions",
            "observed": "boolean — false when the target did not answer (the baseline is not overwritten)",
            "indeterminate": "boolean — true when nothing could be concluded (timeout, unreachable, no payment challenge)",
            "reason": "null when a challenge was read; timeout | unreachable | too_many_redirects | blocked_redirect | no_payment_challenge otherwise",
            "changes": "[ { field, from, to } ] — only the fields that differ: scheme, network, asset, amount, payTo, maxTimeoutSeconds",
            "conditions": "{ scheme, network, asset, amount, payTo, maxTimeoutSeconds } — the stored baseline after this call",
            "previous_conditions": "the conditions this call compared against",
            "fact_sha256": "sha256 of the canonical conditions (the same role as recorder.cjs fact_hash)",
            "checks": "number of paid calls stored for this watch_id",
            "changes_seen": "number of those calls that saw a change",
            "last_changed_at": "ISO-8601 UTC of the last observed change, or null",
            "series": "[ { watched_at, change_status, changes } ] — the recent stored series for this URL",
            "stored_in_kv": "boolean — whether the baseline was written",
            "probe": "{ method, requests_made, completed, http_status, latency_ms, final_url, redirects[], content_type, max_timeout_ms, max_redirects, cached }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one call — one registration or one change report for one watched URL"
        },
        "steps": [
          "curl -i https://<worker-host>/watch  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-mutation-watch response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-random-bytes",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/random",
          "path": "/random",
          "params": {
            "bytes": "optional. How many random bytes to return, 1 to 1024; omitted means 32. A value below the minimum, above the maximum or not a whole number is refused with 400 before any payment is verified.",
            "format": "optional. The shape of value: hex, base64, uuid; omitted means hex. format=uuid returns a UUID version 4 string and is always 16 bytes; any other format name is refused with 400 before any payment is verified."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/random",
          "params": {
            "bytes": "optional. How many random bytes to return, 1 to 1024; omitted means 32. A value below the minimum, above the maximum or not a whole number is refused with 400 before any payment is verified.",
            "format": "optional. The shape of value: hex, base64, uuid; omitted means hex. format=uuid returns a UUID version 4 string and is always 16 bytes; any other format name is refused with 400 before any payment is verified."
          },
          "body": "none",
          "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "value": "string — the random bytes in the requested format",
            "format": "string — \"hex\" (lowercase, 2 characters per byte), \"base64\" (RFC 4648, padded) or \"uuid\" (version 4)",
            "bytes": "number — how many bytes the value holds",
            "bits": "number — bytes x 8",
            "generated_at": "ISO-8601 UTC, when this call generated the bytes",
            "sha256": "string — SHA-256 (hex) of value, i.e. of the string as it appears here (UTF-8)",
            "sha256_of": "string — always \"value\"",
            "source": "string — always \"crypto.getRandomValues\"",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /random — one delivery of 32 bytes (or the bytes count you pass) in the format you pass"
        },
        "steps": [
          "curl -i https://<worker-host>/random  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-random-bytes response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-unit-convert",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/convert",
          "path": "/convert",
          "params": {
            "value": "required. The number to convert; must be finite (e.g. 1, -40.5).",
            "from": "required. Source unit: m, km, cm, mm, mi, yd, ft, in, kg, g, mg, t, lb, oz, l, ml, m3, gal, qt, floz, byte, kb, mb, gb, kib, mib, gib, s, ms, min, h, day, week, c, f, k.",
            "to": "required. Target unit in the same category as from."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/convert",
          "params": {
            "value": "required. The number to convert; must be finite (e.g. 1, -40.5).",
            "from": "required. Source unit: m, km, cm, mm, mi, yd, ft, in, kg, g, mg, t, lb, oz, l, ml, m3, gal, qt, floz, byte, kb, mb, gb, kib, mib, gib, s, ms, min, h, day, week, c, f, k.",
            "to": "required. Target unit in the same category as from."
          },
          "body": "none",
          "note": "An unknown unit, a cross-category pair or a temperature below absolute zero is refused with 400 before any payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "input": "{ value, from, to }",
            "category": "string -length | mass | volume | data | time | temperature",
            "result": "number -the converted value",
            "unit": "string -the target unit",
            "formula": "string -e.g. \"1 km = 1000 m\"",
            "source": "string -always \"fixed unit definitions in this Worker\"",
            "converted_at": "ISO-8601 UTC",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /convert -one conversion"
        },
        "steps": [
          "curl -i https://<worker-host>/convert  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-unit-convert response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-timestamp-convert",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/ts",
          "path": "/ts",
          "params": {
            "value": "required. An epoch integer or a date string, e.g. 1760000000 or 2025-10-09T08:53:20Z.",
            "from": "optional. auto | s | ms | us | ns | iso | rfc2822; default auto (numeric magnitude picks s/ms/us/ns, anything else is read as ISO).",
            "to": "optional. iso | s | ms | us | ns | rfc2822 | date; default iso."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/ts",
          "params": {
            "value": "required. An epoch integer or a date string, e.g. 1760000000 or 2025-10-09T08:53:20Z.",
            "from": "optional. auto | s | ms | us | ns | iso | rfc2822; default auto (numeric magnitude picks s/ms/us/ns, anything else is read as ISO).",
            "to": "optional. iso | s | ms | us | ns | rfc2822 | date; default iso."
          },
          "body": "none",
          "note": "An unreadable value or an out-of-range instant is refused with 400 before any payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "input": "{ value, from, to }",
            "result": "the instant in the requested unit (string for iso/rfc2822/date/us/ns, number for s/ms)",
            "unit": "the requested target",
            "iso": "ISO-8601 UTC",
            "date": "YYYY-MM-DD",
            "time_utc": "HH:MM:SS.sss",
            "rfc2822": "e.g. Thu, 09 Oct 2025 08:53:20 GMT",
            "unix_seconds": "number",
            "unix_milliseconds": "number",
            "unix_microseconds": "string (no digit lost)",
            "unix_nanoseconds": "string (no digit lost)",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /ts -one conversion"
        },
        "steps": [
          "curl -i https://<worker-host>/ts  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-timestamp-convert response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-alive-402",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/alive",
          "path": "/alive",
          "params": {
            "url": "required. The absolute http(s) URL to probe once. A missing or invalid url is refused with 400 before any payment is verified and before anything is fetched."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/alive",
          "params": {
            "url": "required. The absolute http(s) URL to probe once. A missing or invalid url is refused with 400 before any payment is verified and before anything is fetched."
          },
          "body": "none",
          "note": "One GET returns one answer: the 200 response to the request that carries your payment contains {answer, reason, checked_at, evidence} — one boolean about whether the target answers 402, not the full /check report. This is the summary version of /check. url is required: pass the absolute http(s) URL to probe once. The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. A payment header without url is refused with 400 before the facilitator is called."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "answer": "boolean|null — true when the target answered 402, false when it answered another HTTP status, null when it could not be fetched",
            "reason": "string — one line naming the status and latency, or the fetch failure",
            "checked_at": "ISO-8601 UTC, when this call probed the target",
            "evidence": "{ status: number|null — the HTTP status that was read; amount: string|null — the atomic USDC amount the target's 402 asks for }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /alive — one probe of one URL and one boolean answer"
        },
        "steps": [
          "curl -i https://<worker-host>/alive  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-alive-402 response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-watchlist-batch",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/watchlist",
          "path": "/watchlist",
          "params": {
            "urls": "register up to 10 absolute http(s) URLs, comma-separated or repeated (or POST /watchlist with body {\"urls\":[...]}), and store each one's payment conditions as its baseline.",
            "id": "diff: return only what changed since the stored baseline for this watchlist id (returned by the registration call)."
          },
          "body": "POST /watchlist accepts {\"urls\":[\"<absolute http(s) URL>\", ...]} (JSON, at most 16384 bytes, at most 10 URLs).",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/watchlist",
          "params": {
            "urls": "register up to 10 absolute http(s) URLs, comma-separated or repeated (or POST /watchlist with body {\"urls\":[...]}), and store each one's payment conditions as its baseline.",
            "id": "diff: return only what changed since the stored baseline for this watchlist id (returned by the registration call)."
          },
          "body": "POST /watchlist accepts {\"urls\":[\"<absolute http(s) URL>\", ...]} (JSON, at most 16384 bytes, at most 10 URLs).",
          "note": "The URL list is checked before any payment: an empty list is refused with 400, more than 10 URLs is refused with 400 (max_urls is reported), and every URL is validated with the same rules /check and /watch use (malformed, non-http(s), oversized, internal, blocked-port or credentialed URLs are refused). None of those answers carries a PAYMENT-REQUIRED header and nothing is fetched. An unknown id is answered 404 before payment. The bare path without a payment header answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "schema_version": "number",
            "watchlist_id": "string — sha256 over the sorted normalized URL list; the id to call again (stored under watchlist_<id>)",
            "mode": "register | diff",
            "registered_at": "ISO-8601 UTC, when the URL set was first stored",
            "checked_at": "ISO-8601 UTC, when this batch probe ran",
            "baseline": "boolean — true when this call stored the first baseline for the set",
            "changed": "boolean — true when at least one URL changed",
            "indeterminate": "boolean — true when at least one URL could not be read (never reported as unchanged)",
            "summary": "{ total, changed, unchanged, indeterminate, changed_urls[] }",
            "items": "[ { url, watch_id, status, changed, observed, indeterminate, reason, changes[], conditions, previous_conditions, fact_sha256 } ] — one entry per registered URL, in the stored order",
            "status_values": "changed | unchanged | indeterminate",
            "series": "[ { watched_at, change_status, urls: [ { url, status } ] } ] — the recent stored series for this URL set",
            "stored_in_kv": "boolean — whether the baseline was written",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "50000",
          "amount_usd": 0.05,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one call — one registration or one change report for the whole set of up to 10 URLs"
        },
        "steps": [
          "curl -i https://<worker-host>/watchlist  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-watchlist-batch response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-prepaid-credit",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/credit/claim",
          "path": "/credit/claim",
          "params": null,
          "body": "{ \"tx\": \"0x…\" } — the 32-byte transaction hash of your USDC transfer on Base (any amount from 0.01 USDC), or the same as a form field.",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/credit/claim",
          "params": null,
          "body": "{ \"tx\": \"0x…\" } — the 32-byte transaction hash of your USDC transfer on Base (any amount from 0.01 USDC), or the same as a form field.",
          "note": "The product page is GET /credit (free, with an optional ?id= to read a balance). A GET on /credit/claim answers 405. A malformed tx is answered with 400 before any on-chain call."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "ok": "boolean",
            "status": "confirmed",
            "replay": "boolean — true when the same tx was claimed before (the same credit is returned)",
            "credit_kind": "string — \"pack\" (5 USDC or more) or \"micro\" (0.01 USDC up to just under 5)",
            "credit_id": "string — send it back as the X-CREDIT header on any paid route",
            "calls_included": "number — 110 for a pack; null for a micro balance",
            "remaining_usd": "string — the balance in USDC",
            "min_charge_atomic": "string — \"50000\" for a pack (0.05 USDC floor); \"0\" for a micro balance (route price)",
            "min_charge_usd": "string — the per-call floor in USDC; \"0\" means each call is charged at the route's price",
            "next": "{ header, path, price_usd, curl, note } — the exact next call that spends the credit and returns the delivery",
            "scope": "string — which routes accept the credit",
            "payment": "{ payer, amount_atomic, block, network, asset, pay_to, tx }",
            "use": "{ header: \"X-CREDIT: <credit_id>\", example: \"<curl>\" }",
            "balance": "string — the free balance URL for this credit"
          }
        },
        "price": {
          "amount_atomic": "5000000",
          "amount_usd": 5,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "direct_transfer",
          "per": "one prepaid pack of 110 calls, or a pay-as-you-go balance for smaller transfers"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/credit/claim  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-prepaid-credit response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-entity-enrichment",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/enrich/claim",
          "path": "/enrich/claim",
          "params": null,
          "body": "{ \"tx\": \"0x…\", \"url\": \"https://…\" } — the transaction hash of your 0.3 USDC transfer on Base and the target to measure.",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/enrich/claim",
          "params": null,
          "body": "{ \"tx\": \"0x…\", \"url\": \"https://…\" } — the transaction hash of your 0.3 USDC transfer on Base and the target to measure.",
          "note": "The product page is GET /enrich/buy (free, with the table of contents and a preview). A GET on /enrich/claim answers 405. A malformed tx is answered with 400 before any on-chain call."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "ok": "boolean",
            "status": "confirmed",
            "replay": "boolean — true when the same tx was claimed before (the same report is returned)",
            "payment": "{ payer, amount_usd, block, network, asset, pay_to }",
            "report": "{ title, version, format: markdown, filename, markdown }"
          }
        },
        "price": {
          "amount_atomic": "300000",
          "amount_usd": 0.3,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "direct_transfer",
          "per": "one report"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/enrich/claim  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-entity-enrichment response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-measured-brief",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/brief/claim",
          "path": "/brief/claim",
          "params": null,
          "body": "{ \"tx\": \"0x…\" } — the transaction hash of your 1 USDC transfer on Base.",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/brief/claim",
          "params": null,
          "body": "{ \"tx\": \"0x…\" } — the transaction hash of your 1 USDC transfer on Base.",
          "note": "The product page is GET /brief/buy (free, with the table of contents and a preview). A GET on /brief/claim answers 405. A malformed tx is answered with 400 before any on-chain call."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string",
            "ok": "boolean",
            "status": "confirmed",
            "replay": "boolean — true when the same tx was claimed before (the same report is returned)",
            "payment": "{ payer, amount_usd, block, network, asset, pay_to }",
            "report": "{ title, version, format: markdown, filename, markdown }"
          }
        },
        "price": {
          "amount_atomic": "1000000",
          "amount_usd": 1,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "direct_transfer",
          "per": "one report"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/brief/claim  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-measured-brief response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-output-contract",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/contract",
          "path": "/contract",
          "params": {
            "url": "absolute http(s) URL of the x402 resource whose output contract to read (required)"
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/contract",
          "params": {
            "url": "absolute http(s) URL of the x402 resource whose output contract to read (required)"
          },
          "note": "The bare path answers 402 as well: a catalogue reads the price from the challenge before buying."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "url": "string — the target that was read",
            "x402Version": "number|null — the x402 version its 402 declared",
            "mime": "string|null — the mimeType the target declared for the delivery",
            "output": {
              "fields": "[{name, type, required, example}] — field by field, from properties or from example (fields_from says which)",
              "fields_from": "\"properties\" | \"example\" | \"none\"",
              "declared": "boolean — an output schema exists at all",
              "declared_keys": "string[] — the keys the declared output schema actually has",
              "schema_only_type_example": "boolean — true means nothing but {type, example} is declared",
              "properties_empty": "boolean — properties is present but names no field",
              "example": "the declared example, or null"
            },
            "error_shape_declared": "boolean — the 402 declares what a failed paid call returns",
            "weakness": "[{code, detail}] — the measured gaps, or no_output_contract when there is nothing to bind to",
            "fetched_at": "ISO-8601 UTC, when the target was read",
            "sha256": "hex — SHA-256 of the normalised output contract block, so a later read can be compared"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /contract response"
        },
        "steps": [
          "curl -i https://<worker-host>/contract  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-output-contract response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-news-headlines",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/news",
          "path": "/news",
          "params": {
            "topic": "optional. Which feed set to read: markets, crypto, tech, world; omitted means markets. Any other value is refused with 400 before any payment is verified, and the response lists the allowed topics.",
            "limit": "optional. How many headlines to return, 1 to 50; omitted means 20. A value below the minimum, above the maximum or not a whole number is refused with 400 before any payment is verified."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/news",
          "params": {
            "topic": "optional. Which feed set to read: markets, crypto, tech, world; omitted means markets. Any other value is refused with 400 before any payment is verified, and the response lists the allowed topics.",
            "limit": "optional. How many headlines to return, 1 to 50; omitted means 20. A value below the minimum, above the maximum or not a whole number is refused with 400 before any payment is verified."
          },
          "body": "none",
          "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. The 402 is the same whether or not topic and limit are passed."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-news-headlines\"",
            "schema_version": "number",
            "topic": "string — the feed set that was read",
            "requested_limit": "number — the limit that was asked for",
            "count": "number — how many headlines are in items[]",
            "freshness": "{ max_age_hours, fetched_at, newest_published_at, oldest_published_at, items_within_window, dropped_older_than_window, dropped_undated }",
            "items": "[ { title, url, published_at (ISO-8601 UTC), source, age_minutes } ] — newest first",
            "sources": "[ { source, feed_url, ok, http_status, items_in_window, latency_ms } ] — one row per feed that was read",
            "unavailable_sources": "[ { source, feed_url, ok:false, error } ] — only the feeds that could not be read",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /news — one delivery of up to 20 headlines from the topic you name"
        },
        "steps": [
          "curl -i https://<worker-host>/news  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-news-headlines response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-catalog-families",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/catalog/families",
          "path": "/catalog/families",
          "params": {
            "min_members": "optional. Only families with at least this many members (integer >= 2); omitted means 3.",
            "axis": "optional. Only families whose axis equals this value (tld, selector, domain, number, url, literal, token, none).",
            "limit": "optional. How many families to return, 1 to 200; omitted means 200."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/catalog/families",
          "params": {
            "min_members": "optional. Only families with at least this many members (integer >= 2); omitted means 3.",
            "axis": "optional. Only families whose axis equals this value (tld, selector, domain, number, url, literal, token, none).",
            "limit": "optional. How many families to return, 1 to 200; omitted means 200."
          },
          "body": "none",
          "note": "Invalid parameters are refused with 400 before any payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-catalog-families\"",
            "schema_version": "number",
            "generated_at": "string — when the bundled snapshot was computed",
            "method": "string — how a family is defined",
            "catalog": "{ source, raw_snapshots, unique_resources, with_description, observed_from, observed_to, hosts, top10_share_pct, max_host_members }",
            "filters": "{ min_members, axis, limit }",
            "count": "number — families returned",
            "total_families": "number — families in the snapshot at the default minimum",
            "max_members": "number — the largest family",
            "axis_counts": "{ axis: number }",
            "families": "[ { family_id, rank, members, axis, axis_values, axis_distinct, variable_slots, template, schema_fields, hosts, host_count, price_usd, representatives } ]",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "50000",
          "amount_usd": 0.05,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /catalog/families — the whole family map for the named snapshot"
        },
        "steps": [
          "curl -i https://<worker-host>/catalog/families  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-catalog-families response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-lei-lookup",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/lei",
          "path": "/lei",
          "params": {
            "q": "required. A company name (matched against the legal name) or a 20-character LEI, 2 to 100 characters.",
            "limit": "optional. How many matching records to return, 1 to 20; omitted means 5 (ignored for a direct LEI lookup)."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/lei",
          "params": {
            "q": "required. A company name (matched against the legal name) or a 20-character LEI, 2 to 100 characters.",
            "limit": "optional. How many matching records to return, 1 to 20; omitted means 5 (ignored for a direct LEI lookup)."
          },
          "body": "none",
          "note": "A missing or out-of-range q and an invalid limit are refused with 400 before any payment is verified, and GLEIF is not read."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-lei-lookup\"",
            "schema_version": "number",
            "query": "string — what was looked up",
            "query_type": "\"lei\" or \"legal_name\"",
            "count": "number — records returned",
            "total_matches": "number — records the register holds for a name search",
            "source": "{ name, api, request_url, data_license, fetched_at, http_status, ok, latency_ms, error }",
            "results": "[ { lei, legal_name, legal_name_language, other_names, entity_status, registration_status, jurisdiction, category, legal_form, entity_creation_date, legal_address{address_lines,city,region,country,postal_code}, headquarters_address{...}, registration{initial_registration_date,last_update_date,next_renewal_date,managing_lou,corroboration_level}, gleif_record_url } ]",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /lei — one lookup, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/lei  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-lei-lookup response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-holiday-calendar",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/holidays",
          "path": "/holidays",
          "params": {
            "country": "required. ISO 3166-1 alpha-2 country code, two letters, e.g. JP, US, DE.",
            "year": "optional. Four-digit year, 1990 to 2100; omitted means the current year."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/holidays",
          "params": {
            "country": "required. ISO 3166-1 alpha-2 country code, two letters, e.g. JP, US, DE.",
            "year": "optional. Four-digit year, 1990 to 2100; omitted means the current year."
          },
          "body": "none",
          "note": "A missing or malformed country and an out-of-range year are refused with 400 before any payment is verified, and Nager.Date is not read."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-holiday-calendar\"",
            "schema_version": "number",
            "country": "string — uppercase ISO 3166-1 alpha-2 code",
            "year": "number",
            "count": "number — holidays returned",
            "first_date": "string — earliest holiday date (YYYY-MM-DD) or null",
            "last_date": "string — latest holiday date (YYYY-MM-DD) or null",
            "holidays": "[ { date, local_name, name, types, weekday, global, counties, days_from_today } ] — sorted by date",
            "upcoming": "[ ...same shape... ] — the next holidays on or after today, up to 5",
            "source": "{ name, api, request_url, data_license, fetched_at, http_status, ok, latency_ms, error }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "3000",
          "amount_usd": 0.003,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /holidays — one country-year, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/holidays  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-holiday-calendar response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-mailauth-check",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/mailauth",
          "path": "/mailauth",
          "params": {
            "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before any query. Domains over 253 characters, labels over 63 characters, empty labels and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/mailauth",
          "params": {
            "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before any query. Domains over 253 characters, labels over 63 characters, empty labels and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "spf": "boolean",
            "dmarc": "boolean",
            "mx_count": "number",
            "evidence": "{ domain, checked_at, source: { name, endpoint, format }, resolution: { apex_txt, dmarc_txt, mx }, spf_record, dmarc_record, mx: [ { exchange, preference } ], null_mx? }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /mailauth — one domain, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/mailauth  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-mailauth-check response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-cidr-calculator",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/cidr",
          "path": "/cidr",
          "params": {
            "cidr": "required. An IPv4 address with an optional /0-32 prefix, e.g. 192.168.1.10/24. A bare address means /32."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/cidr",
          "params": {
            "cidr": "required. An IPv4 address with an optional /0-32 prefix, e.g. 192.168.1.10/24. A bare address means /32."
          },
          "body": "none",
          "note": "A missing, malformed or out-of-range cidr is refused with 400 before any payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-cidr-calculator\"",
            "schema_version": "number",
            "input": "{ cidr }",
            "ip": "string — the address as given (dotted quad)",
            "prefix": "number — 0 to 32",
            "network": "string — network address",
            "broadcast": "string — broadcast address",
            "netmask": "string — dotted-quad netmask",
            "wildcard": "string — dotted-quad wildcard mask",
            "first_host": "string — first usable host",
            "last_host": "string — last usable host",
            "total_addresses": "number — 2^(32-prefix)",
            "usable_hosts": "number — total minus network and broadcast (RFC 3021 for /31 and /32)",
            "ip_class": "string — A, B, C, D or E",
            "is_private": "boolean",
            "is_loopback": "boolean",
            "is_link_local": "boolean",
            "is_multicast": "boolean",
            "is_reserved": "boolean",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /cidr — one block, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/cidr  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-cidr-calculator response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-failure-declaration",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/failure",
          "path": "/failure",
          "params": {
            "url": "absolute http(s) URL of the x402 resource whose failure declarations to read (required)"
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/failure",
          "params": {
            "url": "absolute http(s) URL of the x402 resource whose failure declarations to read (required)"
          },
          "note": "The bare path answers 402 as well: a catalogue reads the price from the challenge before buying."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "target": "{url, host, path} — the target that was read",
            "declared": "boolean — the target served a readable x402 402 (false for a non-x402 200, returned as 200)",
            "x402Version": "number|null — the x402 version its 402 declared",
            "error_shape": "{declared, fields[], required[], source} — the error object the output schema names, if any",
            "timeout": "{declared, declarations[{key,path,value}]} — every timeout key the 402 carries, with its path",
            "retry": "{declared, declarations[{key,path,value}]} — every retry key the 402 carries",
            "refund": "{declared, text, declarations[{key,path,text|value}]} — the refund wording and where it was read",
            "missing": "string[] — the fields with declared:false in this 402 (error_shape, timeout, retry, refund)",
            "missing_meaning": "one sentence: a missing field is not a statement that the seller has no such policy",
            "fetched_at": "ISO-8601 UTC, when the target was read",
            "sha256": "hex — SHA-256 of the declarations block, so a later read can be compared"
          }
        },
        "price": {
          "amount_atomic": "50000",
          "amount_usd": 0.05,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /failure response"
        },
        "steps": [
          "curl -i https://<worker-host>/failure  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-failure-declaration response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-dkim-check",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/dkim",
          "path": "/dkim",
          "params": {
            "domain": "required. One bare domain name, lowercased, trailing dots removed and IDN labels converted to punycode. Over 253 characters, a label over 63 characters, an empty label and IP literals are refused with 400 before payment.",
            "selectors": "optional. Comma-separated DKIM selector names (1-63 letters, digits or hyphens each), at most 20; omitted means the 10 common selectors (default, google, selector1, selector2, s1, s2, k1, mail, dkim, smtp). An empty or malformed list is refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/dkim",
          "params": {
            "domain": "required. One bare domain name, lowercased, trailing dots removed and IDN labels converted to punycode. Over 253 characters, a label over 63 characters, an empty label and IP literals are refused with 400 before payment.",
            "selectors": "optional. Comma-separated DKIM selector names (1-63 letters, digits or hyphens each), at most 20; omitted means the 10 common selectors (default, google, selector1, selector2, s1, s2, k1, mail, dkim, smtp). An empty or malformed list is refused with 400 before payment."
          },
          "body": "none",
          "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "domain": "string",
            "present": "true | null (null = not found among the checked selectors, not a claim of absence)",
            "conclusion": "found | not_found_in_checked_selectors",
            "checked_count": "number",
            "found_count": "number",
            "checked_selectors": [
              "string"
            ],
            "found": "[ { selector, key_type, key_bits, flags: { testing, revoked }, record } ]",
            "not_found": [
              "string"
            ],
            "evidence": "{ domain, checked_at, source: { name, endpoint, format }, resolution: { <selector>: records | none | nxdomain | records_no_dkim }, absence_scope }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dkim — one domain and one selector batch, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/dkim  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-dkim-check response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-dns-lookup",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/dns",
          "path": "/dns",
          "params": {
            "name": "required. A host name, e.g. example.com. Lowercased; IDN becomes punycode; trailing dots are removed.",
            "type": "optional. One of A, NS, CNAME, SOA, MX, TXT, AAAA, CAA. Default A. Invalid values are refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/dns",
          "params": {
            "name": "required. A host name, e.g. example.com. Lowercased; IDN becomes punycode; trailing dots are removed.",
            "type": "optional. One of A, NS, CNAME, SOA, MX, TXT, AAAA, CAA. Default A. Invalid values are refused with 400 before payment."
          },
          "body": "none",
          "note": "A missing name or an invalid type is refused with 400 before payment. A bare /dns without a payment header returns 402."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-dns-lookup\"",
            "schema_version": "number",
            "query": "{ name, type }",
            "count": "number of records returned",
            "resolution": "records | none | nxdomain",
            "records": "array of { type, ttl, data }",
            "source": "{ name, endpoint, format, fetched_at }",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dns — one name, one record type, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/dns  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-dns-lookup response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-listing-fit",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/listing-fit",
          "path": "/listing-fit",
          "params": {
            "url": "required. Absolute http(s) URL of the listed resource; matched literally against resource in the discovery index.",
            "q": "required. Words separated by spaces or commas; each word is matched case-insensitively as a literal substring."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/listing-fit",
          "params": {
            "url": "required. Absolute http(s) URL of the listed resource; matched literally against resource in the discovery index.",
            "q": "required. Words separated by spaces or commas; each word is matched case-insensitively as a literal substring."
          },
          "note": "A missing or invalid url and any empty q are refused with 400 before anything is read and before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "resource": "string — the matched discovery resource, or the requested URL when unlisted",
            "listed": "boolean — the discovery index has an item whose resource matches the URL",
            "query": "string — q as received (trimmed)",
            "matched": "string[] — words found in serviceName, tags or description (literal, case-insensitive)",
            "missing": "string[] — words not found",
            "match_ratio": "number — matched.length / words.length (0 to 1)",
            "listing": "{service_name, tags, description_chars} — the listing metadata that was read (listed only)",
            "checked_at": "ISO-8601 UTC, when the discovery index was read",
            "note": "\"literal match only; does not predict ranking\""
          }
        },
        "price": {
          "amount_atomic": "10000",
          "amount_usd": 0.01,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /listing-fit response"
        },
        "steps": [
          "curl -i https://<worker-host>/listing-fit  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-listing-fit response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-text-hash",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/hash",
          "path": "/hash",
          "params": {
            "text": "required. The text to hash; empty text= is valid and hashes the empty string.",
            "algo": "optional. sha256 (default), sha384, sha512 or sha1.",
            "encoding": "optional. hex (default) or base64.",
            "key": "optional. When present, compute HMAC with this key instead of a plain digest."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/hash",
          "params": {
            "text": "required. The text to hash; empty text= is valid and hashes the empty string.",
            "algo": "optional. sha256 (default), sha384, sha512 or sha1.",
            "encoding": "optional. hex (default) or base64.",
            "key": "optional. When present, compute HMAC with this key instead of a plain digest."
          },
          "note": "A missing text, an unsupported algo/encoding and text over 8192 characters are refused with 400 before payment. A key over 4096 characters is also refused before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "algo": "string — sha256 | sha384 | sha512 | sha1",
            "mode": "string — digest | hmac",
            "encoding": "string — hex | base64",
            "value": "string — the digest in the requested encoding",
            "digest_bytes": "number — 32 for sha256, 48 for sha384, 64 for sha512, 20 for sha1",
            "input_bytes": "number — UTF-8 byte length of text",
            "generated_at": "ISO-8601 UTC",
            "text_echoed": "boolean — always false; the input text is not returned"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /hash response"
        },
        "steps": [
          "curl -i https://<worker-host>/hash  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-text-hash response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-base-usdc-transfer",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/paid",
          "path": "/paid",
          "params": {
            "tx": "required. Base transaction hash: 0x followed by 64 hex characters.",
            "to": "optional. Recipient address to require (0x + 40 hex). Omit to accept any recipient.",
            "amount": "optional. Exact amount in atomic units (USDC has 6 decimals: 5000 = 0.005 USDC). Omit to accept any amount."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/paid",
          "params": {
            "tx": "required. Base transaction hash: 0x followed by 64 hex characters.",
            "to": "optional. Recipient address to require (0x + 40 hex). Omit to accept any recipient.",
            "amount": "optional. Exact amount in atomic units (USDC has 6 decimals: 5000 = 0.005 USDC). Omit to accept any amount."
          },
          "note": "tx, to and amount are validated before any payment: a malformed value is 400 and nothing is read or charged. A bare GET /paid is 402 so catalogues can probe the price without reading the chain."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "answer": "true | false | null — null only when the chain was read but the transfer could not be decoded",
            "reason": "string — usdc_transfer_confirmed | tx_not_found | tx_reverted | no_usdc_transfer | recipient_mismatch | amount_mismatch | transfer_unreadable | logs_unreadable",
            "tx": "string — the normalised transaction hash",
            "status": "string | null — the receipt status (0x1 success, 0x0 reverted); null when the tx is not found",
            "block": "number | null — block number of the receipt",
            "confirmations": "number | null — head block minus the receipt block plus one at read time",
            "transfer": "{from, to, amount_usdc} | null — the USDC Transfer that was checked (or the closest one on a mismatch)",
            "checked_at": "ISO-8601 UTC",
            "note": "on-chain USDC transfer only; does not prove delivery"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /paid response"
        },
        "steps": [
          "curl -i https://<worker-host>/paid  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-base-usdc-transfer response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-wikipedia-summary",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/wiki",
          "path": "/wiki",
          "params": {
            "q": "required. An article title, e.g. Apple Inc. or 東京 (at most 300 characters).",
            "lang": "optional. Wikipedia language: en, ja, de, fr, es, it, pt, ru, zh, ko (default en)."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/wiki",
          "params": {
            "q": "required. An article title, e.g. Apple Inc. or 東京 (at most 300 characters).",
            "lang": "optional. Wikipedia language: en, ja, de, fr, es, it, pt, ru, zh, ko (default en)."
          },
          "note": "q and lang are validated before anything is read. The Wikipedia summary API is read once; if it cannot be read, the answer is 502 before payment is verified, so nothing is charged. A 404 from Wikipedia is delivered as found:false."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "found": "boolean — false when Wikipedia has no article with that exact title",
            "query": "string — the q you sent",
            "lang": "string — the Wikipedia language used",
            "title": "string | null — the article title Wikipedia returned",
            "description": "string | null — Wikipedia's one-line description",
            "extract": "string | null — the plain-text summary (CC BY-SA 4.0)",
            "extract_chars": "number — length of extract",
            "article_type": "string | null — standard | disambiguation | …",
            "wikibase_item": "string | null — Wikidata item id",
            "url": "string | null — the article page URL to attribute",
            "thumbnail_url": "string | null",
            "checked_at": "ISO-8601 UTC",
            "source": "{name, api, page_url, license, license_url, fetched_at, http_status, ok, latency_ms}",
            "note": "string — attribution or not-found explanation"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "amount_usd": 0.002,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /wiki response"
        },
        "steps": [
          "curl -i https://<worker-host>/wiki  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-wikipedia-summary response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-example-fit",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/example-fit",
          "path": "/example-fit",
          "params": {
            "url": "required. Absolute http(s) URL of the x402 resource whose 402 declares the example and the schema."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/example-fit",
          "params": {
            "url": "required. Absolute http(s) URL of the x402 resource whose 402 declares the example and the schema."
          },
          "note": "The url is validated before anything is fetched: missing, malformed, credential-bearing, loopback/private/internal or non-web ports are 400. The target is read exactly once with no payment header. If it cannot be read, the answer is 502 before verify/settle, so nothing is charged. If the target does not answer 402, or its 402 declares no output schema/example, the answer is 200 with declared:false and nothing is charged."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "target": "{url, host, path} — the target that was read",
            "declared": "boolean — the target's 402 carries a readable output declaration",
            "fit": "true | false | null — all comparable checks pass, one fails, or there is not enough to judge",
            "checks": {
              "example_type_matches": "boolean | null — the example's JSON type against schema.type",
              "missing_required": "string[] — required keys absent from the example (max 20)",
              "undeclared_keys": "string[] — top-level example keys absent from properties (max 20)",
              "service_name_matches": "boolean | null — example.serviceName (or example.product_id) against the target's serviceName"
            },
            "example_keys": "string[] — sorted top-level keys of the example",
            "declared_fields": "string[] — sorted property names the schema declares",
            "stale_signals": "string[] — service_name_mismatch, example_type_mismatch, missing_required, undeclared_keys",
            "source": "{http_status, latency_ms} — the target's answer as measured",
            "fetched_at": "ISO-8601 UTC",
            "sha256": "hex — SHA-256 of the normalised report (latency excluded)"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /example-fit response"
        },
        "steps": [
          "curl -i https://<worker-host>/example-fit  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-example-fit response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-barcode-check",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/barcode",
          "path": "/barcode",
          "params": {
            "code": "required. A numeric EAN-8 (8 digits), UPC-A (12), EAN-13 (13) or ISBN-13 (13 digits starting 978/979), or an ISBN-10 (9 digits plus a digit or X). Spaces and hyphens are ignored."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/barcode",
          "params": {
            "code": "required. A numeric EAN-8 (8 digits), UPC-A (12), EAN-13 (13) or ISBN-13 (13 digits starting 978/979), or an ISBN-10 (9 digits plus a digit or X). Spaces and hyphens are ignored."
          },
          "body": "none",
          "note": "A missing, empty, over-32-character or non-numeric (except a trailing X on ISBN-10) code is refused with 400 before any payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-barcode-check\"",
            "schema_version": "number",
            "input": "{ code }",
            "normalized": "string — the digits (or ISBN-10 with X) after removing spaces and hyphens",
            "symbology": "string — ean-13, upc-a, ean-8, isbn-10, isbn-13 or unknown",
            "length": "number — characters in normalized",
            "check_digit": "string — the last character of the input",
            "expected_check_digit": "string — what the weighting rule requires",
            "valid": "boolean — check_digit === expected_check_digit",
            "gs1_prefix": "string or null — first three digits for EAN/UPC",
            "isbn": "object or null — { format, prefix } when the number is an ISBN",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /barcode — one number, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/barcode  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-barcode-check response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-payer-leak-scan",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/payer-leak",
          "path": "/payer-leak",
          "params": {
            "url": "required. Absolute http(s) URL of the public page to scan. The page is read once with no payment header."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/payer-leak",
          "params": {
            "url": "required. Absolute http(s) URL of the public page to scan. The page is read once with no payment header."
          },
          "note": "The url is validated before anything is fetched: missing, malformed, credential-bearing, loopback/private/internal or non-web ports are 400 with no payment requested. A target that cannot be read, or whose body exceeds the body limit and is cut off, is 502 before verify/settle, so nothing is charged."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "target": "{url, host, path} — the page that was read",
            "counts": "{addresses, tx_hashes, basescan_links, ua_strings} — number of findings per type",
            "findings": "[{type, offset}] — the type and the character offset in the decoded body; no value",
            "total": "number — findings.length",
            "scanner_version": "number — the literal scanner version",
            "checked_at": "ISO-8601 UTC",
            "source": "{status, bytes, content_type} — the target's answer as measured",
            "note": "string — offsets are character offsets; a Basescan link is counted once as a link, not again as its inner hash or address; nothing is stored",
            "delivery": "{delivered_at, delivered, payer, payment:{transaction, network, scheme, amount_atomic, asset, pay_to}}"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /payer-leak response"
        },
        "steps": [
          "curl -i https://<worker-host>/payer-leak  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-payer-leak-scan response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-dice-roll",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/dice",
          "path": "/dice",
          "params": {
            "count": "optional. Number of dice, 1..100; default 1.",
            "sides": "optional. Faces per die, 2..1000; default 6."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/dice",
          "params": {
            "count": "optional. Number of dice, 1..100; default 1.",
            "sides": "optional. Faces per die, 2..1000; default 6."
          },
          "body": "none",
          "note": "count and sides are validated before any payment: a non-integer or out-of-range value is 400 and no payment is requested. A bare GET /dice uses 1d6 and is 402 so a catalogue can probe the price."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-dice-roll\"",
            "schema_version": "number",
            "input": "{ count, sides }",
            "notation": "string — e.g. 2d6",
            "rolls": "number[] — count integers, each 1..sides",
            "total": "number — sum of rolls",
            "min_possible": "number — count (all ones)",
            "max_possible": "number — count × sides",
            "average": "number — total / count, rounded to 3 decimals",
            "uniform": "boolean — true; rejection sampling removes modulo bias",
            "source": "string — the RNG used",
            "generated_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dice — one roll of count dice"
        },
        "steps": [
          "curl -i https://<worker-host>/dice  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-dice-roll response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-domain-age",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/domain-age",
          "path": "/domain-age",
          "params": {
            "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before the lookup. Domains over 253 characters, labels over 63 characters, empty labels and IP literals are refused with 400 before payment. Private, local and documentation TLDs return 400 internal_tld; a TLD with no IANA RDAP bootstrap entry returns 400 unsupported_tld. Neither is charged."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/domain-age",
          "params": {
            "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before the lookup. Domains over 253 characters, labels over 63 characters, empty labels and IP literals are refused with 400 before payment. Private, local and documentation TLDs return 400 internal_tld; a TLD with no IANA RDAP bootstrap entry returns 400 unsupported_tld. Neither is charged."
          },
          "body": "none",
          "note": "Invalid input, an internal TLD and an unsupported TLD are refused with 400 before payment is verified. A request with no payment header answers 402 after the TLD check and before the RDAP lookup."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "domain": "string",
            "tld": "string",
            "registered": "true | false | null",
            "age_days": "number | null",
            "registration": "ISO 8601 string | null",
            "expiration": "ISO 8601 string | null",
            "last_changed": "ISO 8601 string | null",
            "status": "string[] | null",
            "registrar": "{ handle } | null",
            "nameservers_count": "number | null",
            "checked_at": "ISO 8601 string",
            "source": "{ name, bootstrap, base }",
            "evidence": "{ http_status, registration_event, bootstrap_cache, bootstrap_age_ms, sanitized, privacy }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /domain-age — one domain, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/domain-age  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-domain-age response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-color-contrast",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/color",
          "path": "/color",
          "params": {
            "hex": "required. Text colour as 3 or 6 hex digits, with or without a leading #.",
            "against": "optional. Background colour in the same form; default #ffffff."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/color",
          "params": {
            "hex": "required. Text colour as 3 or 6 hex digits, with or without a leading #.",
            "against": "optional. Background colour in the same form; default #ffffff."
          },
          "body": "none",
          "note": "A missing hex, a non-hex value, an alpha hex (#rgba/#rrggbbaa) or an over-9-character value is refused with 400 before payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-color-contrast\"",
            "schema_version": "number",
            "input": "{ hex, against }",
            "foreground": "{ hex, rgb: {r,g,b}, hsl: {h,s,l}, relative_luminance }",
            "background": "same shape as foreground",
            "contrast_ratio": "number — 1.00 to 21.00",
            "wcag": "{ aa_normal, aa_large, aaa_normal, aaa_large } — booleans",
            "thresholds": "{ aa_normal: 4.5, aa_large: 3, aaa_normal: 7, aaa_large: 4.5 }",
            "computed_at": "ISO 8601 string",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /color — one foreground/background pair, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/color  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-color-contrast response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-spf-depth",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/spf-depth",
          "path": "/spf-depth",
          "params": {
            "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before any query. Domains over 253 characters, labels over 63 characters, empty labels, single-label names, private or documentation TLDs and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/spf-depth",
          "params": {
            "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before any query. Domains over 253 characters, labels over 63 characters, empty labels, single-label names, private or documentation TLDs and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "domain": "string",
            "spf": "boolean | null",
            "lookups": "number | null",
            "limit": "number (10)",
            "over_limit": "boolean | null",
            "chain": "[ { domain, record: string | null, lookups: number } ] (max 20)",
            "evidence": "{ record: string | null, source: { name, endpoint, format }, checked_at }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /spf-depth — one domain, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/spf-depth  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-spf-depth response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-dmarc-policy",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/dmarc-policy",
          "path": "/dmarc-policy",
          "params": {
            "domain": "required. One bare host name. Lowercased, trailing dots removed and IDN labels converted to punycode before the query. Missing, over 253 characters, a label over 63 characters, an empty label, a private or documentation TLD and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/dmarc-policy",
          "params": {
            "domain": "required. One bare host name. Lowercased, trailing dots removed and IDN labels converted to punycode before the query. Missing, over 253 characters, a label over 63 characters, an empty label, a private or documentation TLD and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "domain": "string",
            "record": "string | null",
            "record_status": "found | none | invalid | multiple_records | unknown",
            "p": "none | quarantine | reject | null",
            "sp": "none | quarantine | reject | null",
            "pct": "number (0-100) | null",
            "adkim": "r | s | null",
            "aspf": "r | s | null",
            "fo": "string | null",
            "rua_count": "number | null",
            "ruf_count": "number | null",
            "enforcing": "full | partial | none | null",
            "scope": "\"host_only\"",
            "organization_domain_inheritance": "false",
            "note": "string (the inheritance limitation)",
            "source": "{ name, endpoint, format }",
            "checked_at": "ISO 8601 string"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dmarc-policy — one domain, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/dmarc-policy  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-dmarc-policy response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-jwt-inspector",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/jwt",
          "path": "/jwt",
          "params": {
            "token": "required. A three-part JWT (header.payload.signature), at most 8192 characters."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/jwt",
          "params": {
            "token": "required. A three-part JWT (header.payload.signature), at most 8192 characters."
          },
          "body": "none",
          "note": "A missing token, a value that is not three dot-separated parts, an invalid base64url/JSON segment or an over-8192-character token is refused with 400 before payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-jwt-inspector\"",
            "schema_version": "number",
            "input": "{ token_length }",
            "header": "object — decoded JWT header",
            "payload": "object — decoded JWT claims",
            "signature_present": "boolean",
            "signature_bytes": "number",
            "algorithm": "string|null — header.alg, reported not trusted",
            "expired": "boolean|null",
            "expires_at": "ISO 8601 string|null",
            "seconds_until_expiry": "number|null — negative once expired",
            "issued_at": "ISO 8601 string|null",
            "not_before": "ISO 8601 string|null",
            "issuer": "string|null",
            "subject": "string|null",
            "audience": "string|string[]|null",
            "jwt_id": "string|null",
            "warnings": "string[]",
            "note": "string — the signature was not verified",
            "computed_at": "ISO 8601 string",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /jwt — one token, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/jwt  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-jwt-inspector response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-cron-next",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/cron",
          "path": "/cron",
          "params": {
            "expr": "required. A 5-field cron expression: minute hour day-of-month month day-of-week. Supports *, a, a-b, */step, a-b/step, lists, jan-dec month names and sun-sat day names. Max 120 characters.",
            "count": "optional. How many next run times to return, 1..10; default 3.",
            "from": "optional. ISO 8601 timestamp to search after; default now. Must be between 2000-01-01 and 2101-01-01 UTC."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/cron",
          "params": {
            "expr": "required. A 5-field cron expression: minute hour day-of-month month day-of-week. Supports *, a, a-b, */step, a-b/step, lists, jan-dec month names and sun-sat day names. Max 120 characters.",
            "count": "optional. How many next run times to return, 1..10; default 3.",
            "from": "optional. ISO 8601 timestamp to search after; default now. Must be between 2000-01-01 and 2101-01-01 UTC."
          },
          "body": "none",
          "note": "expr, count and from are validated before any payment: an invalid value is 400 and no payment is requested. A bare GET /cron is 402 so a catalogue can probe the price; with a payment header and no expr it is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-cron-next\"",
            "schema_version": "number",
            "expr": "string — the expression as received (trimmed)",
            "input": "{ count, from }",
            "timezone": "string — always \"UTC\"",
            "fields": "{ minute[], hour[], day_of_month[], month[], day_of_week[] }",
            "day_rule": "string — which day rule applies when day-of-month and day-of-week are both restricted",
            "count": "number — requested number of run times",
            "found": "number — run times actually returned (can be less for an impossible date such as 30 February)",
            "complete": "boolean — found === count",
            "next": "[ { run_at, unix, weekday, in_seconds } ] — strictly after from, ascending",
            "next_run_at": "string | null — next[0].run_at",
            "scanned_minutes": "number — how many minutes were inspected (transparency for impossible expressions)",
            "note": "string",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /cron — one expression, one count"
        },
        "steps": [
          "curl -i https://<worker-host>/cron  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-cron-next response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-json-strict",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/json-strict",
          "path": "/json-strict",
          "params": {
            "url": "required. Absolute http(s) URL of the JSON document to scan. Missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are refused with 400 before anything is fetched."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/json-strict",
          "params": {
            "url": "required. Absolute http(s) URL of the JSON document to scan. Missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are refused with 400 before anything is fetched."
          },
          "body": "none",
          "note": "A bare GET /json-strict answers 402 for catalogues. With a payment header and no url it is 400, before any payment is verified and before any fetch."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "strict_ok": "boolean",
            "parses": "boolean",
            "duplicate_keys": "[{path: string, key: string, count: number}]",
            "case_collisions": "[{path: string, keys: string[]}]",
            "nonstandard": "{bom, comment, trailing_comma, single_quote, NaN, Infinity} — booleans",
            "max_depth": "number",
            "content_type": "string | null — the target's Content-Type",
            "bytes": "number — raw body bytes",
            "sha256": "string — SHA-256 of the raw body bytes",
            "checked_at": "ISO 8601 string"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /json-strict — one URL, one scan"
        },
        "steps": [
          "curl -i https://<worker-host>/json-strict  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-json-strict response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-ip-inspector",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/ip",
          "path": "/ip",
          "params": {
            "addr": "required. One IPv4 address (four decimal octets, no leading zeros) or one IPv6 address (optional :: compression, up to eight hex groups, optional embedded IPv4). Max 64 characters."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/ip",
          "params": {
            "addr": "required. One IPv4 address (four decimal octets, no leading zeros) or one IPv6 address (optional :: compression, up to eight hex groups, optional embedded IPv4). Max 64 characters."
          },
          "body": "none",
          "note": "addr is validated before any payment: a missing addr with a payment header, an invalid address, a zone id or an over-long value is 400 and no payment is requested. A bare GET /ip is 402 so a catalogue can probe the price."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-ip-inspector\"",
            "schema_version": "number",
            "input": "{ addr }",
            "valid": "boolean — true on a 200",
            "version": "number — 4 or 6",
            "canonical": "string — compressed IPv6 or dotted IPv4",
            "expanded": "string | null — eight zero-padded IPv6 groups; null for IPv4",
            "integer": "string — unsigned decimal (a string because a 128-bit value exceeds JS number precision)",
            "hex": "string — 0x-prefixed, zero-padded to 8 (IPv4) or 32 (IPv6) hex digits",
            "reverse_dns": "string — the in-addr.arpa / ip6.arpa name to query",
            "scope": "string — loopback, private, link_local, multicast, documentation, reserved, shared, ipv4_mapped, nat64, tunnel, broadcast, unspecified or global",
            "flags": "{ private, loopback, link_local, multicast, unspecified, documentation, reserved, global } — booleans",
            "special_ranges": "string[] — every special-purpose range that matched",
            "ipv4_mapped": "string | null — embedded IPv4 for ::ffff:0:0/96",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /ip — one address"
        },
        "steps": [
          "curl -i https://<worker-host>/ip  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-ip-inspector response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-ai-access",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/ai-access",
          "path": "/ai-access",
          "params": {
            "url": "required. Absolute http(s) URL whose origin's /robots.txt should be interpreted. Missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are refused with 400 before anything is fetched."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/ai-access",
          "params": {
            "url": "required. Absolute http(s) URL whose origin's /robots.txt should be interpreted. Missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are refused with 400 before anything is fetched."
          },
          "body": "none",
          "note": "A bare GET /ai-access answers 402 for catalogues. With a payment header and no url it is 400, before any payment is verified and before any fetch."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "bots": "{<token>: {user_agent, allowed: boolean|null, matched_rule: {line: number, text: string}|null}}",
            "robots": "{status: number|null, bytes: number|null, no_file: boolean, unreachable: boolean, reason: string|null, requests_made: number, final_url: string, content_type: string|null, truncated: boolean}",
            "sitemap_count": "number",
            "llms_txt": "{present: boolean|null, status: number|null}",
            "checked_at": "ISO 8601 string",
            "robots_url": "string",
            "basis": "RFC 9309",
            "disclaimer": "string",
            "disclaimer_ja": "string"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /ai-access — one URL, one robots.txt read"
        },
        "steps": [
          "curl -i https://<worker-host>/ai-access  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-ai-access response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-url-inspector",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/url",
          "path": "/url",
          "params": {
            "url": "required. One absolute http(s) URL, at most 2048 characters. Missing, malformed, over-long and non-http(s) values are 400 before payment. Percent-encode the value when it contains its own query string."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/url",
          "params": {
            "url": "required. One absolute http(s) URL, at most 2048 characters. Missing, malformed, over-long and non-http(s) values are 400 before payment. Percent-encode the value when it contains its own query string."
          },
          "body": "none",
          "note": "A bare GET /url answers 402 for catalogues. With a payment header and no url it is 400, before any payment is verified."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-url-inspector\"",
            "schema_version": "number",
            "input": "{ url }",
            "scheme": "string — http or https",
            "host": "string — WHATWG-normalized hostname",
            "port": "string | null — the explicit port, null when absent",
            "default_port": "string — 443 for https, 80 for http",
            "is_default_port": "boolean",
            "origin": "string",
            "path": "string",
            "path_segments": "string[]",
            "query_param_count": "number",
            "query_params": "[{name, value}] — duplicates preserved, percent-decoded",
            "fragment": "string | null",
            "normalized": "string — the parser's href",
            "username": "string | null",
            "has_credentials": "boolean",
            "password_present": "boolean — the password itself is never returned",
            "computed_at": "ISO 8601 string",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /url — one URL"
        },
        "steps": [
          "curl -i https://<worker-host>/url  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-url-inspector response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-dns-propagation",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/dns-propagation",
          "path": "/dns-propagation",
          "params": {
            "name": "required. A DNS name such as example.com. Lowercased, trailing dots removed, IDN labels converted to punycode. Underscore labels such as _dmarc.example.com are accepted.",
            "type": "optional. One of A, AAAA, MX, TXT, CNAME. Default A. Any other value is refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/dns-propagation",
          "params": {
            "name": "required. A DNS name such as example.com. Lowercased, trailing dots removed, IDN labels converted to punycode. Underscore labels such as _dmarc.example.com are accepted.",
            "type": "optional. One of A, AAAA, MX, TXT, CNAME. Default A. Any other value is refused with 400 before payment."
          },
          "body": "none",
          "note": "A bare GET /dns-propagation answers 402 for catalogues. Missing, malformed, over-long, IP-literal and wildcard names, and types outside A, AAAA, MX, TXT, CNAME, are 400 before payment. A payment header with no name is also 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-dns-propagation\"",
            "schema_version": "number",
            "query": "{ name, type }",
            "resolver_count": "number — resolvers asked (at most 4)",
            "reachable_count": "number — resolvers with status ok",
            "agreement": "string — \"all\" | \"partial\" | \"none\" | null",
            "disagreeing": "string[] — reachable resolvers outside the majority; all reachable resolvers when agreement is none",
            "unreachable": "string[] — resolvers whose status is timeout or error",
            "comparison": "{ basis, note? } — what was compared and what was not",
            "resolvers": "[{ resolver, protocol, endpoint, status, rcode, rcode_name, answers, ttl_min, ad, nodata, nxdomain, elapsed_ms, error? }]",
            "elapsed_ms": "number — wall time for the parallel resolver queries",
            "checked_at": "ISO 8601 string",
            "source": "{ protocols, query_mode, timeout_ms }",
            "note": "string — the NODATA/timeout distinction and the TTL/AD caveats",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dns-propagation — one name, one type, one parallel resolver comparison"
        },
        "steps": [
          "curl -i https://<worker-host>/dns-propagation  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-dns-propagation response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-dnssec-status",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/dnssec",
          "path": "/dnssec",
          "params": {
            "domain": "required. A domain such as example.com. Lowercased, trailing dots removed, IDN labels converted to punycode.",
            "type": "optional. Only A is accepted. Any other value is refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/dnssec",
          "params": {
            "domain": "required. A domain such as example.com. Lowercased, trailing dots removed, IDN labels converted to punycode.",
            "type": "optional. Only A is accepted. Any other value is refused with 400 before payment."
          },
          "body": "none",
          "note": "A bare GET /dnssec answers 402 for catalogues. Missing, malformed, over-253-character, empty-label, wildcard and IP-literal domains, and types other than A, are 400 before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-dnssec-status\"",
            "schema_version": "number",
            "domain": "string — the normalized domain that was queried",
            "status": "string — secure | insecure | bogus | indeterminate",
            "reason": "string — which rule produced the status",
            "ds_present": "boolean | null — true: DS returned; false: rcode 0 with no DS; null: not established",
            "ds_count": "number | null — number of DS records returned by the DS query",
            "ds_algorithms": "number[] — DS algorithm numbers, deduplicated and sorted",
            "ds_digests": "number[] — DS digest type numbers, deduplicated and sorted",
            "resolvers": "[{ resolver, status: ok|servfail|timeout|error, rcode, ad, answer_count }]",
            "ds_lookup": "{ resolver, status, rcode, ad, answer_count } — the DS query itself",
            "checked_at": "ISO 8601 string",
            "source": "{ ds_query, validation_queries, query_mode, timeout_ms }",
            "note": "string — what is and is not proven by the four states",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dnssec — one domain, one DS query and two A queries, one four-state verdict"
        },
        "steps": [
          "curl -i https://<worker-host>/dnssec  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-dnssec-status response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-random-pick",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/pick",
          "path": "/pick",
          "params": {
            "items": "required. 1..100 values separated by commas or newlines, at most 2000 characters in total. An empty value, an over-long item or too many items is 400 before payment.",
            "count": "optional. How many items to pick, 1..100; default 1. With replace=false it must not exceed the number of items.",
            "replace": "optional. true to draw with replacement (an item can repeat), false or omitted to draw without replacement."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/pick",
          "params": {
            "items": "required. 1..100 values separated by commas or newlines, at most 2000 characters in total. An empty value, an over-long item or too many items is 400 before payment.",
            "count": "optional. How many items to pick, 1..100; default 1. With replace=false it must not exceed the number of items.",
            "replace": "optional. true to draw with replacement (an item can repeat), false or omitted to draw without replacement."
          },
          "body": "none",
          "note": "items, count and replace are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /pick is 402 so a catalogue can probe the price; with a payment header and no items it is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-random-pick\"",
            "schema_version": "number",
            "input": "{ item_count, count, replace }",
            "picked": "string[] — count values from items, in draw order",
            "indices": "number[] — 0-based positions of the picks in the items list",
            "unique": "boolean — true when drawn without replacement",
            "source": "string — the RNG and sampling method used",
            "generated_at": "string — ISO 8601 timestamp",
            "note": "string — the 0-based index convention and the no-storage note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /pick — one list, one set of picks"
        },
        "steps": [
          "curl -i https://<worker-host>/pick  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-random-pick response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-fx-reference-rate",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/fx",
          "path": "/fx",
          "params": {
            "from": "required. Three-letter ISO 4217 code in the ECB reference set, e.g. USD. Crypto codes are refused with 400.",
            "to": "required. Three-letter ISO 4217 code in the ECB reference set, e.g. JPY. Must differ from from.",
            "amount": "required. Finite number greater than 0 and at most 1000000000, e.g. 100.",
            "date": "optional. YYYY-MM-DD; omit or use latest for the most recent published rate. A date the source adjusts is reported with date_adjusted=true."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/fx",
          "params": {
            "from": "required. Three-letter ISO 4217 code in the ECB reference set, e.g. USD. Crypto codes are refused with 400.",
            "to": "required. Three-letter ISO 4217 code in the ECB reference set, e.g. JPY. Must differ from from.",
            "amount": "required. Finite number greater than 0 and at most 1000000000, e.g. 100.",
            "date": "optional. YYYY-MM-DD; omit or use latest for the most recent published rate. A date the source adjusts is reported with date_adjusted=true."
          },
          "body": "none",
          "note": "A bare GET /fx answers 402 for catalogues. Any supplied parameter is validated before payment: missing, malformed, unsupported, same-currency and out-of-range values are 400 and no payment is requested."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "from": "string — ISO 4217 code",
            "to": "string — ISO 4217 code",
            "amount": "number",
            "rate": "number — ECB reference rate for 1 from = rate to",
            "converted": "number — amount × rate, rounded to 6 decimal places",
            "inverse_rate": "number — 1/rate, rounded to 8 decimal places",
            "requested_date": "string — \"latest\" or YYYY-MM-DD",
            "rate_date": "string — YYYY-MM-DD actually used by the source",
            "rate_age_days": "number | null — whole days from rate_date to today (UTC)",
            "date_adjusted": "boolean — requested date differs from rate_date",
            "stale": "boolean — rate_age_days exceeds the configured threshold",
            "source": "string — \"ECB reference rates via Frankfurter\"",
            "kind": "string — always \"reference\"",
            "note": "string — reference-only disclaimer and crypto exclusion",
            "cached": "boolean — whether this response reused the short-lived KV entry",
            "computed_at": "ISO 8601 string",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "amount_usd": 0.002,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /fx — one pair, one amount, one rate date"
        },
        "steps": [
          "curl -i https://<worker-host>/fx  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-fx-reference-rate response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-base64",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/base64",
          "path": "/base64",
          "params": {
            "data": "required. The text to encode or the Base64 string to decode, at most 16384 characters.",
            "action": "optional. encode (default) or decode.",
            "urlsafe": "optional. true emits the URL-safe alphabet without padding when encoding; false or omitted emits standard Base64 with padding."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/base64",
          "params": {
            "data": "required. The text to encode or the Base64 string to decode, at most 16384 characters.",
            "action": "optional. encode (default) or decode.",
            "urlsafe": "optional. true emits the URL-safe alphabet without padding when encoding; false or omitted emits standard Base64 with padding."
          },
          "body": "none",
          "note": "data, action and urlsafe are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /base64 is 402 so a catalogue can probe the price; with a payment header and no data it is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-base64\"",
            "schema_version": "number",
            "input": "{ action, urlsafe, input_chars }",
            "action": "string — \"encode\" or \"decode\"",
            "result": "string — the Base64 string or the decoded text",
            "result_encoding": "string — the alphabet used, or UTF-8 text when decoding",
            "bytes": "number — UTF-8 bytes of data (encode) or decoded bytes (decode)",
            "result_chars": "number — length of result in characters",
            "sha256": "string — SHA-256 (hex) of result",
            "source": "string — the conversion functions used",
            "converted_at": "string — ISO 8601 timestamp",
            "note": "string — decoding rules and the no-storage note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /base64 — one string, one conversion"
        },
        "steps": [
          "curl -i https://<worker-host>/base64  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-base64 response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-mta-sts",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/mta-sts",
          "path": "/mta-sts",
          "params": {
            "domain": "required. One bare host name. Lowercased, trailing dots removed and IDN labels converted to punycode before the query. Missing, over 253 characters, a label over 63 characters, an empty label and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/mta-sts",
          "params": {
            "domain": "required. One bare host name. Lowercased, trailing dots removed and IDN labels converted to punycode before the query. Missing, over 253 characters, a label over 63 characters, an empty label and IP literals (IPv4 or IPv6) are refused with 400 before payment."
          },
          "body": "none",
          "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "\"x402-mta-sts\"",
            "schema_version": "1",
            "domain": "string",
            "record_status": "found | none | multiple_records | unknown",
            "record": "string | null",
            "id": "string | null",
            "record_valid": "boolean | null",
            "record_problems": "string[] (only when a found record has problems)",
            "record_count": "number (only for multiple_records)",
            "policy_status": "ok | none | unreachable | invalid",
            "mode": "enforce | testing | none | null",
            "mx": "string[] (policy patterns; empty when policy_status is not ok)",
            "max_age": "number (0-31557600) | null",
            "policy_problems": "string[] (only when policy_status is invalid)",
            "policy_reason": "string | null (only when policy_status is unreachable)",
            "policy_http_status": "number | null",
            "mx_hosts": "string[] (real MX hosts)",
            "mx_covered": "true | false | null",
            "uncovered_mx": "string[]",
            "enforced": "boolean",
            "wildcard_semantics": "\"rfc8461_leftmost_single_label\"",
            "id_policy_binding": "\"none\"",
            "note": "string (what enforced does and does not mean)",
            "source": "{ dns, mx, policy }",
            "checked_at": "ISO 8601 string"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /mta-sts — one domain, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/mta-sts  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-mta-sts response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-text-stats",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/text-stats",
          "path": "/text-stats",
          "params": {
            "text": "required. The text to measure, at most 16384 characters. Percent-encode it.",
            "max_chars": "optional. A positive integer (1-1000000). When present, fits_max_chars reports whether the code point count is at most this value."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/text-stats",
          "params": {
            "text": "required. The text to measure, at most 16384 characters. Percent-encode it.",
            "max_chars": "optional. A positive integer (1-1000000). When present, fits_max_chars reports whether the code point count is at most this value."
          },
          "body": "none",
          "note": "text and max_chars are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /text-stats is 402 so a catalogue can probe the price; with a payment header and no text it is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-text-stats\"",
            "schema_version": "number",
            "input": "{ input_chars_utf16, max_chars }",
            "characters": "number — Unicode code points",
            "characters_no_whitespace": "number — code points after removing whitespace and BOM",
            "words": "number — whitespace-separated tokens",
            "lines": "number — lines split on CRLF, CR or LF",
            "non_empty_lines": "number — lines whose trim() is not empty",
            "paragraphs": "number — blocks separated by two or more line breaks",
            "longest_line_chars": "number — code points in the longest line",
            "bytes_utf8": "number — UTF-8 byte length",
            "max_chars": "number | null — the limit you passed",
            "fits_max_chars": "boolean | null — characters <= max_chars, null when no limit was passed",
            "word_semantics": "string — the whitespace-token caveat",
            "source": "string — counted in this Worker",
            "computed_at": "string — ISO 8601 timestamp",
            "note": "string — counting basis and the no-storage note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /text-stats — one text, one measurement"
        },
        "steps": [
          "curl -i https://<worker-host>/text-stats  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-text-stats response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-slug",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/slug",
          "path": "/slug",
          "params": {
            "text": "required. The text to slugify, at most 512 characters. Percent-encode it.",
            "separator": "optional. One of \"-\", \"_\" or \".\"; default \"-\".",
            "max_length": "optional. A positive integer (1-512). When present the slug is truncated to this many code points and a trailing separator is removed."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/slug",
          "params": {
            "text": "required. The text to slugify, at most 512 characters. Percent-encode it.",
            "separator": "optional. One of \"-\", \"_\" or \".\"; default \"-\".",
            "max_length": "optional. A positive integer (1-512). When present the slug is truncated to this many code points and a trailing separator is removed."
          },
          "body": "none",
          "note": "text, separator and max_length are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /slug is 402 so a catalogue can probe the price; with a payment header and no text it is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-slug\"",
            "schema_version": "number",
            "input": "{ input_chars, separator, max_length }",
            "slug": "string — the normalised slug",
            "slug_chars": "number — Unicode code points in the slug",
            "truncated": "boolean — whether max_length cut the slug",
            "lowercased": "boolean — always true",
            "transliterated": "boolean — always false (non-Latin letters are kept)",
            "source": "string — the transform used, computed in this Worker",
            "computed_at": "string — ISO 8601 timestamp",
            "note": "string — the accent/non-Latin/separator rules and the no-storage note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /slug — one text, one slug"
        },
        "steps": [
          "curl -i https://<worker-host>/slug  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-slug response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-charset",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/charset",
          "path": "/charset",
          "params": {
            "url": "required. Absolute http(s) URL of the page whose charset should be diagnosed. Missing, malformed, credential-bearing, loopback/private/internal/link-local or non-web-port URLs are refused with 400 before anything is fetched and before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/charset",
          "params": {
            "url": "required. Absolute http(s) URL of the page whose charset should be diagnosed. Missing, malformed, credential-bearing, loopback/private/internal/link-local or non-web-port URLs are refused with 400 before anything is fetched and before payment."
          },
          "body": "none",
          "note": "A bare GET /charset is 402 so a catalogue can probe the price. With a payment header and no url it is 400. With a valid url and no payment header it is still 402 and the target is not fetched."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "url": "string — the validated input URL",
            "final_url": "string — the URL after redirects",
            "http_status": "number — the target's HTTP status",
            "content_type": "string | null — the target's media type without parameters",
            "http_charset": "string | null — charset parameter of Content-Type, normalized",
            "meta_charset": "string | null — meta charset in the first 4096 bytes, normalized",
            "bom": "string | null — utf-8, utf-16le or utf-16be",
            "declared": "string | null — BOM > HTTP charset > meta",
            "declared_source": "bom | http | meta | null",
            "detected": "utf-8 | shift_jis | euc-jp | utf-16le | utf-16be | null — first candidate that decodes all checked bytes",
            "detection_basis": "string — e.g. shift_jis_decodes_all_checked_bytes, or none_of_utf-8_shift_jis_euc-jp_decodes_all_checked_bytes",
            "match": "boolean | null — declared === detected only when both are non-null",
            "utf8_valid": "boolean — fatal UTF-8 decode of checked bytes",
            "utf8_replacement_chars": "number — U+FFFD count in a non-fatal UTF-8 decode",
            "checked_bytes": "number — bytes inspected",
            "truncated": "boolean — whether the 512 KiB cap cut the body",
            "sample": "string | null — first 200 characters from the detected decoder; control characters become spaces",
            "checked_at": "ISO 8601 string",
            "source": "string — one GET from this Worker; nothing stored",
            "meta_note": "string — whether a meta charset was found in the first 4096 bytes",
            "note": "string — the declaration order, candidate-set caveat and truncation coverage",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /charset — one URL, one read, one diagnosis"
        },
        "steps": [
          "curl -i https://<worker-host>/charset  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-charset response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-roman",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/roman",
          "path": "/roman",
          "params": {
            "n": "optional. An integer from 1 to 3999, e.g. n=2026.",
            "roman": "optional. A standard numeral from I to MMMCMXCIX, e.g. roman=MMXXVI. Case-insensitive."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/roman",
          "params": {
            "n": "optional. An integer from 1 to 3999, e.g. n=2026.",
            "roman": "optional. A standard numeral from I to MMMCMXCIX, e.g. roman=MMXXVI. Case-insensitive."
          },
          "body": "none",
          "note": "Pass exactly one of n or roman. A bad value is 400 and no payment is requested. A bare GET /roman is 402 so a catalogue can probe the price; with a payment header and no input it is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-roman\"",
            "schema_version": "number",
            "direction": "string — \"int_to_roman\" or \"roman_to_int\"",
            "value": "number — the integer (1-3999)",
            "roman": "string — the standard uppercase numeral",
            "input": "{ n } or { roman, normalized }",
            "canonical": "boolean — always true (the numeral is standard)",
            "range": "{ min: 1, max: 3999 }",
            "source": "string — the conversion used, computed in this Worker",
            "computed_at": "string — ISO 8601 timestamp",
            "note": "string — the standard-form rule and the no-storage note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /roman — one number, both representations"
        },
        "steps": [
          "curl -i https://<worker-host>/roman  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-roman response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-semver",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/semver",
          "path": "/semver",
          "params": {
            "range": "required. A SemVer range, at most 256 characters. The empty value is * (any non-prerelease version). Percent-encode ^ as %5E and + as %2B when needed.",
            "versions": "required. 200 comma-separated entries at most, each at most 128 characters. Every entry is returned in valid[] or invalid[].",
            "include_prerelease": "optional. true or false, default false. true disables only the prerelease tuple exclusion."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/semver",
          "params": {
            "range": "required. A SemVer range, at most 256 characters. The empty value is * (any non-prerelease version). Percent-encode ^ as %5E and + as %2B when needed.",
            "versions": "required. 200 comma-separated entries at most, each at most 128 characters. Every entry is returned in valid[] or invalid[].",
            "include_prerelease": "optional. true or false, default false. true disables only the prerelease tuple exclusion."
          },
          "body": "none",
          "note": "A bare GET /semver is 402 so a catalogue can probe the price; with a payment header and no range or versions it is 400. An invalid version string is part of the product answer (200 invalid[]), while an unparsable range is 400 invalid_range before payment."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-semver\"",
            "schema_version": "number",
            "range": "string — the range as supplied",
            "range_normalized": "string — expanded comparator form (build metadata removed)",
            "range_valid": "boolean — true on a 200",
            "versions_checked": "number — every comma-separated entry, including invalid and empty ones",
            "valid": "string[] — entries that are semver 2.0.0 versions, in input order",
            "invalid": "{ input, reason }[] — entries that are not semver 2.0.0 versions",
            "satisfying": "string[] — satisfying valid entries, ascending semver precedence",
            "max_satisfying": "string|null — highest satisfying entry; null when none",
            "min_satisfying": "string|null — lowest satisfying entry; null when none",
            "satisfying_count": "number — satisfying.length",
            "include_prerelease": "boolean — the effective flag",
            "spec": "string — \"semver 2.0.0\"",
            "range_spec": "string — the supported range subset",
            "prerelease_rule": "string — the tuple rule and what include_prerelease changes",
            "satisfying_order": "string — the ordering used for satisfying[]",
            "computed_at": "string — ISO 8601 timestamp",
            "note": "string — the no-registry, no-claim and invalid[] note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /semver — one range, one caller-supplied version list"
        },
        "steps": [
          "curl -i https://<worker-host>/semver  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-semver response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-timezone",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/timezone",
          "path": "/timezone",
          "params": {
            "zone": "required. An IANA time zone name, e.g. Asia/Tokyo, Europe/London or America/New_York.",
            "at": "optional. ISO 8601 with Z or +hh:mm, e.g. 2026-10-19T20:00:00Z. Defaults to now."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/timezone",
          "params": {
            "zone": "required. An IANA time zone name, e.g. Asia/Tokyo, Europe/London or America/New_York.",
            "at": "optional. ISO 8601 with Z or +hh:mm, e.g. 2026-10-19T20:00:00Z. Defaults to now."
          },
          "body": "none",
          "note": "A bare GET /timezone is 402. With a payment header, missing or invalid input is 400 and no payment is requested. Timestamps without an explicit offset are refused rather than guessed."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-timezone\"",
            "schema_version": "number",
            "zone": "string — the validated IANA name",
            "at": "string — the instant in UTC ISO 8601",
            "epoch_ms": "number",
            "local": "{ iso, date, time, year, month, day, hour, minute, second, weekday }",
            "utc": "{ iso, date, time }",
            "offset": "{ minutes, label, abbreviation }",
            "dst": "boolean — offset is larger than the standard offset for that year",
            "dst_observed_in_year": "boolean — January and July offsets differ",
            "standard_offset_minutes": "number — the smaller of the January and July offsets",
            "zone_source": "string — runtime IANA database, no external call",
            "checked_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /timezone — one instant, one zone"
        },
        "steps": [
          "curl -i https://<worker-host>/timezone  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-timezone response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-wallclock",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/wallclock",
          "path": "/wallclock",
          "params": {
            "zone": "required. An IANA time zone name, e.g. America/New_York, Europe/London or Australia/Lord_Howe. At most 64 characters.",
            "local": "required. An offset-free wall clock, e.g. 2026-11-01T01:30 or 2026-11-01T01:30:00. Seconds are optional; Z and +hh:mm are refused."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/wallclock",
          "params": {
            "zone": "required. An IANA time zone name, e.g. America/New_York, Europe/London or Australia/Lord_Howe. At most 64 characters.",
            "local": "required. An offset-free wall clock, e.g. 2026-11-01T01:30 or 2026-11-01T01:30:00. Seconds are optional; Z and +hh:mm are refused."
          },
          "body": "none",
          "note": "A bare GET /wallclock is 402. With a payment header, missing or invalid input is 400 and no payment is requested. An ambiguous or nonexistent wall clock is not an error: it is returned as 200 with candidates or gap, and resolved_utc is null."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-wallclock\"",
            "schema_version": "number",
            "zone": "string — the validated IANA name",
            "local": "string — the wall clock normalized to YYYY-MM-DDTHH:mm:ss",
            "status": "string — \"unique\" | \"ambiguous\" | \"nonexistent\"",
            "exists": "boolean — false only for nonexistent",
            "ambiguous": "boolean — true only when two candidates match",
            "candidates": "[{ utc, offset_minutes, offset_label, dst, abbreviation }] — 0, 1 or 2 entries",
            "resolved_utc": "string|null — the UTC instant only for a unique wall clock; null for ambiguous or nonexistent",
            "gap": "{ before_offset, after_offset, transition_utc, missing_from, missing_to } | null",
            "fold": "{ before_offset, after_offset, transition_utc } | null",
            "zone_source": "string — runtime IANA database, no external call",
            "checked_at": "string — ISO 8601 timestamp",
            "note": "string — scope and limits",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /wallclock — one wall clock, one zone"
        },
        "steps": [
          "curl -i https://<worker-host>/wallclock  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-wallclock response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-npm",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/npm",
          "path": "/npm",
          "params": {
            "name": "required. A lowercase npm package name, at most 214 characters. Scoped names such as @scope/pkg are accepted. Uppercase letters, leading . or _, spaces and a name that is not a valid registry name are 400 before payment.",
            "version": "optional. A version such as 18.2.0 or a dist-tag such as latest or beta. Default latest. At most 128 characters; a value with characters other than letters, digits, . _ + - is 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/npm",
          "params": {
            "name": "required. A lowercase npm package name, at most 214 characters. Scoped names such as @scope/pkg are accepted. Uppercase letters, leading . or _, spaces and a name that is not a valid registry name are 400 before payment.",
            "version": "optional. A version such as 18.2.0 or a dist-tag such as latest or beta. Default latest. At most 128 characters; a value with characters other than letters, digits, . _ + - is 400 before payment."
          },
          "body": "none",
          "note": "A bare GET /npm is 402 so a catalogue can probe the price. With a payment header and a missing or invalid name or version it is 400 and the registry is not read. A registry 404 is a 200 answer with found:false."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string - \"x402-npm\"",
            "schema_version": "number",
            "name": "string - the validated package name",
            "version_requested": "string - the version or dist-tag, default latest",
            "found": "boolean - false only when the registry answered 404",
            "version": "string|null - the version the registry resolved",
            "description": "string|null - registry description, truncated to 1000 characters",
            "license": "string|null - the registry license field",
            "deprecated": "string|null - the deprecation message, when the version is deprecated",
            "is_deprecated": "boolean - whether the registry marks this version deprecated",
            "homepage": "string|null",
            "repository_url": "string|null",
            "engines": "object|null - the registry engines field",
            "dependencies_count": "number",
            "peer_dependencies_count": "number",
            "optional_dependencies_count": "number",
            "unpacked_size": "number|null - dist.unpackedSize in bytes",
            "file_count": "number|null - dist.fileCount",
            "integrity": "string|null - the registry integrity string (not a download)",
            "source": "string - one GET to registry.npmjs.org; nothing stored",
            "checked_at": "string - ISO 8601 timestamp",
            "note": "string - scope, no-tarball and no-install note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /npm - one package name, one tag/version"
        },
        "steps": [
          "curl -i https://<worker-host>/npm  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-npm response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-pypi",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/pypi",
          "path": "/pypi",
          "params": {
            "name": "required. A PyPI project name, at most 214 characters. Letters, digits, . _ and - are accepted; an invalid name is 400 before payment.",
            "version": "optional. A PEP 440 version such as 2.31.0. Default latest. At most 128 characters; a value with characters other than letters, digits, . _ + ! - is 400 before payment."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/pypi",
          "params": {
            "name": "required. A PyPI project name, at most 214 characters. Letters, digits, . _ and - are accepted; an invalid name is 400 before payment.",
            "version": "optional. A PEP 440 version such as 2.31.0. Default latest. At most 128 characters; a value with characters other than letters, digits, . _ + ! - is 400 before payment."
          },
          "body": "none",
          "note": "A bare GET /pypi is 402 so a catalogue can probe the price. With a payment header and a missing or invalid name or version it is 400 and PyPI is not read. A PyPI 404 is a 200 answer with found:false."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string - \"x402-pypi\"",
            "schema_version": "number",
            "name": "string - the validated project name",
            "version_requested": "string - the version, default latest",
            "found": "boolean - false only when PyPI answered 404",
            "version": "string|null - the version PyPI resolved",
            "summary": "string|null - registry summary, truncated to 1000 characters",
            "license": "string|null - the registry license field, truncated to 300 characters",
            "requires_python": "string|null - the requires_python specifier",
            "author": "string|null",
            "homepage": "string|null",
            "project_urls": "object|null - up to 10 string values",
            "classifiers_count": "number",
            "requires_dist_count": "number - the full registry count",
            "requires_dist": "array|null - the first 50 requirement strings",
            "yanked": "boolean",
            "yanked_reason": "string|null",
            "source": "string - one GET to pypi.org; nothing stored",
            "checked_at": "string - ISO 8601 timestamp",
            "note": "string - scope, no-package-file and no-install note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /pypi - one project, one version"
        },
        "steps": [
          "curl -i https://<worker-host>/pypi  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-pypi response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-catalog-fit",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/catalog-fit",
          "path": "/catalog-fit",
          "params": {
            "base": "required. https origin of the seller, e.g. https://api.example.com. http, credentials, loopback, private, link-local, internal and non-web ports are 400 before anything is fetched.",
            "paths": "optional. 1 to 5 comma-separated absolute paths on the same origin; default /openapi.json,/product.json,/status.json."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/catalog-fit",
          "params": {
            "base": "required. https origin of the seller, e.g. https://api.example.com. http, credentials, loopback, private, link-local, internal and non-web ports are 400 before anything is fetched.",
            "paths": "optional. 1 to 5 comma-separated absolute paths on the same origin; default /openapi.json,/product.json,/status.json."
          },
          "note": "A request without a payment header is 402 and does not read the seller. With a payment header, invalid input is 400 before any fetch. Each surface is read once (512 KiB cap, 5 s timeout, at most 3 redirects); each declared route is read once with a bare GET and no payment header, at most 20 routes. If no surface can be read the answer is 502 before verify/settle, so nothing is charged. If the readable catalogs declare no paid route the answer is 200 and nothing is charged."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "base": "{url, host} - the seller that was read",
            "surfaces": "[{surface, path, kind, http_status, readable, recognized, declared_count, duplicate_paths[], reason, latency_ms}]",
            "routes": "[{path, declared_in[], missing_from[], declared_amount_atomic, declaration_conflict, declared_amounts[{surface, amount_atomic, basis, raw, source}], http_status, actual_amount{amount_atomic, source, asset, network, scheme}, match, status, reason}]",
            "summary": "{surfaces_readable, surfaces_unreadable, declared_paths, probed_paths, matched, mismatched, declared_only, undeclared_paid, unreadable, duplicate_paths[], declarations_truncated}",
            "checked_at": "ISO-8601 UTC",
            "paid": "boolean - true only on a settled delivery",
            "delivery": "{delivered_at, delivered, charged, payer, payment}",
            "caveats": "string[] - what this call does not judge"
          }
        },
        "price": {
          "amount_atomic": "10000",
          "amount_usd": 0.01,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /catalog-fit response"
        },
        "steps": [
          "curl -i https://<worker-host>/catalog-fit  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-catalog-fit response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-unix-mode",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/unix-mode",
          "path": "/unix-mode",
          "params": {
            "mode": "required. 3 or 4 octal digits (755, 0755, 4755) or 9 symbolic characters (rwxr-xr-x, rwsr-xr-x, rwxrwxrwt)."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/unix-mode",
          "params": {
            "mode": "required. 3 or 4 octal digits (755, 0755, 4755) or 9 symbolic characters (rwxr-xr-x, rwsr-xr-x, rwxrwxrwt)."
          },
          "body": "none",
          "note": "A bare GET /unix-mode is 402. With a payment header, a missing or invalid mode is 400 and no payment is requested. Exactly one mode value is accepted."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-unix-mode\"",
            "schema_version": "number",
            "mode_input": "string — the trimmed input",
            "octal": "string — 4-digit octal, e.g. 0755",
            "octal_short": "string — 3-digit octal, e.g. 755",
            "symbolic": "string — 9-character symbolic form",
            "chmod": "string — chmod 0755",
            "bits": "number — the decimal bit mask",
            "special": "{ setuid, setgid, sticky, names[] }",
            "permissions": "{ owner, group, other } each { read, write, execute }",
            "mode_source": "string — computed in this Worker, no external call",
            "checked_at": "string — ISO 8601 timestamp",
            "note": "string — the accepted forms and the no-file note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /unix-mode — one mode, both notations"
        },
        "steps": [
          "curl -i https://<worker-host>/unix-mode  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-unix-mode response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-jsonl",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/jsonl",
          "path": "/jsonl",
          "params": null,
          "body": {
            "text": "required. The JSONL content as one JSON string. At most 1048576 UTF-8 bytes, 5000 lines and 65536 bytes per line.",
            "unique_key": "optional. One top-level key name; duplicate values are reported as line numbers only.",
            "max_lines": "optional. A stricter line limit, 0..5000; exceeding it is 400 before payment.",
            "require_same_keys": "optional. true makes key_drift list object lines whose top-level key set differs from the first object line. Default false."
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/jsonl",
          "content_type": "application/json",
          "body": {
            "text": "required. The JSONL content as one JSON string. At most 1048576 UTF-8 bytes, 5000 lines and 65536 bytes per line.",
            "unique_key": "optional. One top-level key name; duplicate values are reported as line numbers only.",
            "max_lines": "optional. A stricter line limit, 0..5000; exceeding it is 400 before payment.",
            "require_same_keys": "optional. true makes key_drift list object lines whose top-level key set differs from the first object line. Default false."
          },
          "note": "The request body itself is capped at 2 MiB so that JSON escaping has room; the text inside it is capped at 1 MiB. A bare POST is 402. With a payment header, invalid input is 400 before payment. Broken lines are 200 with errors[] and are the answer, not an input error."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-jsonl\"",
            "schema_version": "number",
            "lines_total": "number — lines after splitting on LF; a final LF does not add a line",
            "nonempty": "number — lines whose trimmed content is not empty",
            "blank": "number — lines that are empty or whitespace only",
            "parsed": "number — non-empty lines accepted by JSON.parse",
            "failed": "number — non-empty lines rejected by JSON.parse",
            "errors": "{ line, column, message }[] — at most the first 100; no line body and no value",
            "errors_truncated": "boolean — true when failed is larger than errors.length",
            "bom": "boolean — the text starts with U+FEFF",
            "crlf": "number — CRLF sequences in the text",
            "last_line_terminated": "boolean — the text ends with LF",
            "keys": "{ common, variants, key_drift, object_lines, non_object_lines }",
            "keys.common": "string[] — top-level keys present in every parsed object line",
            "keys.variants": "{ keys, count, first_line }[] — distinct sorted key sets, in order of first appearance",
            "keys.key_drift": "{ line, missing, extra }[] — only when require_same_keys=true; relative to the first object line",
            "unique_key": "{ name, duplicates } — duplicates is a sorted array of line numbers only",
            "limits": "{ max_text_bytes, max_body_bytes, max_lines, max_line_bytes, max_errors, requested_max_lines }",
            "bytes": "number — UTF-8 bytes of the text as supplied, including a BOM",
            "sha256": "string — SHA-256 of the UTF-8 text as supplied",
            "checked_at": "string — ISO 8601 timestamp",
            "paid": "boolean — true on a settled 200",
            "note": "string — the no-standard, no-schema, no-storage and out-of-scope note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "amount_usd": 0.002,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /jsonl — one JSONL text, one line-by-line check"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/jsonl  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-jsonl response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-json-canonical",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/json-canonical",
          "path": "/json-canonical",
          "params": null,
          "body": {
            "json": "required. A JSON string (parsed as a JSON document) or any JSON value. At most 262144 UTF-8 bytes, depth 32, arrays of at most 10000 items."
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/json-canonical",
          "content_type": "application/json",
          "body": {
            "json": "required. A JSON string (parsed as a JSON document) or any JSON value. At most 262144 UTF-8 bytes, depth 32, arrays of at most 10000 items."
          },
          "note": "The request body is capped at 2 MiB so JSON escaping has room. A bare POST with no body is 402. A body that is present is validated before payment: duplicate keys, NaN, Infinity, malformed JSON and over-limit input are 400 with charged:false and no payment request. A valid body without a payment header is 402. The supplied value is not stored."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-json-canonical\"",
            "schema_version": "number",
            "canonical": "string — the RFC 8785 JCS form",
            "sha256": "string — SHA-256 of the UTF-8 bytes of canonical",
            "bytes": "number — UTF-8 bytes of canonical",
            "input_sha256": "string — SHA-256 of the json as supplied (string content, or JSON.stringify of a value)",
            "input_type": "string — string or value",
            "input_bytes": "number — UTF-8 bytes of the input as supplied",
            "ascii_only": "boolean — true when canonical contains only U+0000..U+007F",
            "warnings": "array — number_precision_loss entries with path, token, parsed and exact",
            "canonicalization": "{ standard, key_order, numbers, strings, array_order }",
            "limits": "{ max_json_bytes, max_body_bytes, max_depth, max_array_items, max_values }",
            "checked_at": "string — ISO 8601 timestamp",
            "paid": "boolean — true on a settled 200",
            "note": "string — scope, refusal and no-storage note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "amount_usd": 0.002,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /json-canonical — one JSON document, one canonical form and digest"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/json-canonical  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-json-canonical response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-iban-check",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/iban",
          "path": "/iban",
          "params": {
            "iban": "required. An IBAN, with or without spaces, e.g. DE89370400440532013000 or GB82WEST12345698765432."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/iban",
          "params": {
            "iban": "required. An IBAN, with or without spaces, e.g. DE89370400440532013000 or GB82WEST12345698765432."
          },
          "body": "none",
          "note": "A bare GET /iban is 402. With a payment header, a missing, over-long or non-alphanumeric iban is 400 and no payment is requested."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string - \"x402-iban-check\"",
            "schema_version": "number",
            "input": "string - the value as sent",
            "iban": "string - normalised (spaces removed, upper case)",
            "formatted": "string - groups of four characters",
            "valid": "boolean - format and checksum pass, and length passes when checked",
            "checks": "{ format, length{checked,ok,expected,actual}, checksum{algorithm,ok,remainder,expected_remainder} }",
            "country": "{ code, sepa_length_table, sepa }",
            "bban": "{ value, length }",
            "checked_at": "string - ISO 8601 timestamp",
            "source": "string",
            "note": "string - what valid proves and what it does not",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "amount_usd": 0.002,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /iban - one IBAN, structure, length and MOD-97"
        },
        "steps": [
          "curl -i https://<worker-host>/iban  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-iban-check response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-schema-infer",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/schema-infer",
          "path": "/schema-infer",
          "params": null,
          "body": {
            "examples": "required. An array of 1 to 20 JSON values. The examples may total at most 262144 bytes as JSON, nest at most 32 levels, and contain no array longer than 1000 items.",
            "title": "optional. A string of at most 200 characters, copied to schema.title."
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/schema-infer",
          "content_type": "application/json",
          "body": {
            "examples": "required. An array of 1 to 20 JSON values. The examples may total at most 262144 bytes as JSON, nest at most 32 levels, and contain no array longer than 1000 items.",
            "title": "optional. A string of at most 200 characters, copied to schema.title."
          },
          "note": "The request body itself is capped at 2 MiB so that JSON escaping has room. A bare POST is 402. With a payment header, invalid or over-limit input is 400 before payment and no payment is requested."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-schema-infer\"",
            "schema_version": "number",
            "schema": "object — JSON Schema draft 2020-12; no additionalProperties, maxProperties or $id",
            "observed.examples": "number — examples supplied",
            "observed.objects": "number — object values seen at any depth",
            "observed.paths": "number — distinct schema paths visited, including $",
            "observed.nulls": "number — null values seen at any depth",
            "ambiguous": "{ path, types, reason }[] and, for key variation, optional_keys[]",
            "candidates.required_if_all": "string[] — paths present in every example",
            "candidates.optional_seen": "string[] — paths seen at least once but not in every example",
            "candidates.enums": "{ path, values, observed, distinct, basis }[] — repeated primitive values, candidate only",
            "candidates.formats": "{ path, format, observed, basis }[] — all observed strings matched, candidate only",
            "limits": "{ examples, total_bytes, depth, array_items, title_chars, body_bytes }",
            "input_sha256": "string — SHA-256 of the request body as supplied",
            "checked_at": "string — ISO 8601 timestamp",
            "paid": "boolean — true on a settled 200",
            "note": "string — the no-proof, no-validation, no-storage note",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /schema-infer — one examples array, one schema draft"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/schema-infer  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-schema-infer response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-http-status",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/http-status",
          "path": "/http-status",
          "params": {
            "code": "required. Three digits from 100 to 599, e.g. 404 or 429."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/http-status",
          "params": {
            "code": "required. Three digits from 100 to 599, e.g. 404 or 429."
          },
          "body": "none",
          "note": "A bare GET /http-status is 402. With a payment header, a missing or malformed code is 400 and no payment is requested. Codes in range but absent from the table return 200 with known=false."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-http-status\"",
            "schema_version": "number",
            "code": "number — the requested code",
            "reason": "string|null — the registered reason phrase",
            "known": "boolean — present in the bundled table",
            "class": "{ code: 1-5, name, category }",
            "standard": "boolean — same as known",
            "reference": "string|null — the RFC that defines or registers the code",
            "retryable": "boolean",
            "retry_guidance": "string — a safe next move",
            "meaning": "string — one sentence",
            "notes": "string[] — caveats for codes whose names mislead",
            "known_codes": "number — size of the bundled table",
            "code_range": "\"100-599\"",
            "source": "string — bundled table, no external call",
            "checked_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /http-status — one status code"
        },
        "steps": [
          "curl -i https://<worker-host>/http-status  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-http-status response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-compare",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/compare",
          "path": "/compare",
          "params": {
            "urls": "required. 2 to 3 comma-separated absolute http(s) URLs of x402 resources. Duplicate URLs, empty items, credentials in the URL and loopback/private/internal hosts are 400 before payment."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/compare",
          "params": {
            "urls": "required. 2 to 3 comma-separated absolute http(s) URLs of x402 resources. Duplicate URLs, empty items, credentials in the URL and loopback/private/internal hosts are 400 before payment."
          },
          "note": "The bare path answers 402 as well: a catalogue reads the price from the challenge before buying."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "targets": "[{url, final_url, status, reachable, x402, payment{scheme,network,network_caip2,asset,pay_to,amount_atomic,amount_usd,max_timeout_seconds}, output{declared,fields[],weak[]}, error}] — one entry per input URL, in input order; each URL is fetched once",
            "comparison": {
              "cheapest": "{url,urls,amount_atomic,amount_usd,network,network_caip2,asset,compared_urls,basis} or null — same asset and same network only",
              "same_pay_to": "boolean|null — null when fewer than two reachable 402s declare pay_to",
              "same_network": "boolean|null — CAIP-2 when known, otherwise the network string",
              "same_asset": "boolean|null",
              "schema_rank": "[{rank,url,declared,field_count,weak_count}] — declared shape richness, not quality",
              "unreachable": "string[] — URLs that were not compared (unreachable, 429, 5xx or 405)",
              "flags": "string[] — clone_suspect, mixed_asset, method_not_supported"
            },
            "caveats": "string[] — the amount is as served now; order is not a recommendation; unreachable is not cheap"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "amount_usd": 0.02,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /compare response"
        },
        "steps": [
          "curl -i https://<worker-host>/compare  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-compare response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-pii-scan",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/pii-scan",
          "path": "/pii-scan",
          "params": null,
          "body": {
            "text": "required string, 1 to 65536 UTF-8 bytes",
            "locale": "optional \"ja\" | \"en\" | \"auto\" (default \"auto\"); a hint that selects the default type set, not a value filter",
            "types": "optional array of type names; unknown names are 400 before payment",
            "redact": "optional boolean; when true the response also has redacted"
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/pii-scan",
          "content_type": "application/json",
          "body": {
            "text": "required string, 1 to 65536 UTF-8 bytes",
            "locale": "optional \"ja\" | \"en\" | \"auto\" (default \"auto\"); a hint that selects the default type set, not a value filter",
            "types": "optional array of type names; unknown names are 400 before payment",
            "redact": "optional boolean; when true the response also has redacted"
          },
          "note": "A bare POST /pii-scan is 402. With a payment header, text that is missing, not a string, empty, over 64 KiB, or supplied with an unknown type/locale or a non-boolean redact is 400 and no payment is requested."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string - \"x402-pii-scan\"",
            "schema_version": "number",
            "findings": "[{ type, start, end, length, masked, confidence, checksum }]",
            "counts_by_type": "object - one count per scanned type",
            "input_sha256": "string - SHA-256 of the UTF-8 text",
            "bytes": "number - UTF-8 byte length of the text",
            "limits": "{ max_text_bytes, max_body_bytes, max_findings }",
            "detection": "string - \"pattern+checksum\"",
            "guarantee": "boolean - false",
            "redacted": "string - present only when redact:true; best-effort replacement, not a sanitizer",
            "checked_at": "string - ISO 8601 timestamp",
            "paid": "boolean",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /pii-scan - one text, one pattern+checksum scan"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/pii-scan  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-pii-scan response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-radix",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/radix",
          "path": "/radix",
          "params": {
            "n": "required. Integer digits in the from base; optional leading - or +; case-insensitive letters; at most 512 characters.",
            "from": "optional. Integer base 2-36, default 10.",
            "to": "optional. Integer base 2-36, default 16."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/radix",
          "params": {
            "n": "required. Integer digits in the from base; optional leading - or +; case-insensitive letters; at most 512 characters.",
            "from": "optional. Integer base 2-36, default 10.",
            "to": "optional. Integer base 2-36, default 16."
          },
          "body": "none",
          "note": "A bare GET /radix is 402. With a payment header, a missing or malformed n/from/to is 400 and no payment is requested. Letters above 9 use 0-9A-Z and are accepted in either case."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-radix\"",
            "schema_version": "number",
            "input": "{ n, from, to }",
            "negative": "boolean",
            "decimal": "string — exact value in base 10",
            "converted": "string — value in the to base, uppercase digits",
            "digits": "number — digit count of converted, excluding the sign",
            "bits": "number — bit length of the absolute value (0 has 1)",
            "normalized_input": "string — value in the from base, uppercase, no leading zeros",
            "round_trip_ok": "boolean — converted parses back to the same value",
            "bases_supported": "\"2-36\"",
            "digit_alphabet": "\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\"",
            "source": "string — BigInt conversion, no external call",
            "checked_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /radix — one integer conversion"
        },
        "steps": [
          "curl -i https://<worker-host>/radix  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-radix response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-uuid",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/uuid",
          "path": "/uuid",
          "params": {
            "count": "optional. Integer 1-100, default 1.",
            "uppercase": "optional. true or false, default false.",
            "braces": "optional. true or false, default false (wrap each value in { }).",
            "hyphens": "optional. true or false, default true (false removes the dashes)."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/uuid",
          "params": {
            "count": "optional. Integer 1-100, default 1.",
            "uppercase": "optional. true or false, default false.",
            "braces": "optional. true or false, default false (wrap each value in { }).",
            "hyphens": "optional. true or false, default true (false removes the dashes)."
          },
          "body": "none",
          "note": "A bare GET /uuid is 402. With a payment header, a count outside 1-100 or a non-boolean flag is 400 and no payment is requested."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-uuid\"",
            "schema_version": "number",
            "count": "number — number of identifiers returned",
            "uuids": "string[] — the generated identifiers",
            "version": "number — 4",
            "variant": "string — \"RFC 4122\"",
            "format": "{ uppercase, braces, hyphens }",
            "source": "string — crypto.getRandomValues, no external call",
            "generated_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /uuid — up to 100 version-4 identifiers"
        },
        "steps": [
          "curl -i https://<worker-host>/uuid  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-uuid response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-idn-check",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/idn-check",
          "path": "/idn-check",
          "params": {
            "url": "required. One absolute http(s) URL, at most 2048 characters.",
            "expected": "optional. A domain or an absolute http(s) URL to compare against, e.g. paypal.com. When omitted, the comparison fields are null."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/idn-check",
          "params": {
            "url": "required. One absolute http(s) URL, at most 2048 characters.",
            "expected": "optional. A domain or an absolute http(s) URL to compare against, e.g. paypal.com. When omitted, the comparison fields are null."
          },
          "body": "none",
          "note": "url is validated before payment: invalid, non-http(s), hostless and userinfo-bearing URLs are 400. A bare GET /idn-check is 402 so a catalogue can probe the price."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-idn-check\"",
            "schema_version": "number",
            "input": "{ url, expected } — the trimmed inputs as received",
            "ascii_host": "string — the WHATWG-parsed ASCII/punycode host",
            "unicode_host": "string|null — xn-- labels decoded with RFC 3492; null when decoding failed",
            "labels": "array — { index, ascii, unicode, is_punycode, decode_error, scripts }",
            "scripts": "string[] — scripts of the letters in the decoded host (Latin, Cyrillic, Han, … or Unknown)",
            "mixed_script": "boolean — more than one non-Unknown script among the host letters",
            "controls": "array — { index, codepoint, name, kind: zero_width|bidi } in the raw authority",
            "zero_width": "boolean — any zero-width or soft-hyphen character in the raw authority",
            "nfkc_changed": "boolean — NFKC changes the raw host",
            "confusables": "array — { index, char, codepoint, skeleton, name } from the small confusable table",
            "skeleton": "string|null — NFKC plus the confusable table, lowercased; null when decoding failed",
            "expected": "{ ascii, skeleton }|null — null when expected was omitted",
            "expected_match": "boolean|null — canonical ASCII host equality",
            "skeleton_match": "boolean|null — skeleton equality; null without expected or when a skeleton is unavailable",
            "homograph_suspect": "boolean|null — true only when skeleton_match is true and expected_match is false",
            "decode_error": "boolean — a punycode label could not be decoded",
            "notes": "string[] — limits of the report and why fields are null",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /idn-check — one URL and one optional expected host"
        },
        "steps": [
          "curl -i https://<worker-host>/idn-check  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-idn-check response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-text-width",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/text-width",
          "path": "/text-width",
          "params": null,
          "body": {
            "text": "required. A string of at most 65536 bytes in UTF-8. An empty string is 400 with a payment header (402 without one).",
            "max_width": "optional integer 1..100000. When present, the response also reports the grapheme-safe truncation.",
            "ambiguous": "optional 1 or 2, default 1. Controls how East Asian Width A is counted; width_ambiguous_2 is always returned."
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/text-width",
          "content_type": "application/json",
          "body": {
            "text": "required. A string of at most 65536 bytes in UTF-8. An empty string is 400 with a payment header (402 without one).",
            "max_width": "optional integer 1..100000. When present, the response also reports the grapheme-safe truncation.",
            "ambiguous": "optional 1 or 2, default 1. Controls how East Asian Width A is counted; width_ambiguous_2 is always returned."
          },
          "note": "A bare GET /text-width is 402 so a catalogue can probe the price. GET /text-width?preview=1 is a free list of the fields, limits and width rule. With a payment header and no text the POST is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-text-width\"",
            "schema_version": "number",
            "graphemes": "number — grapheme clusters",
            "code_points": "number — Unicode code points",
            "utf16_units": "number — UTF-16 code units (String.length)",
            "width": "number — display width under the stated rule",
            "width_ambiguous_2": "number — the same width with East Asian Width A counted as 2",
            "wide": "number — graphemes with width 2",
            "narrow": "number — graphemes with width 1 and not ambiguous",
            "ambiguous": "number — graphemes whose base is East Asian Width A",
            "zero_width": "number — non-control graphemes with width 0",
            "control": "number — control graphemes (line breaks included)",
            "lines": "number — lines split on CRLF, CR or LF",
            "max_line_width": "number — width of the widest line",
            "rules_version": "string — \"eaw-18.0.0\"",
            "ambiguous_width_used": "number — 1 or 2",
            "max_width": "number — only when you passed it",
            "fits": "boolean — only when max_width was passed",
            "truncated": "boolean — only when max_width was passed",
            "truncated_text": "string — the prefix that fits, with no ellipsis; only when max_width was passed",
            "truncated_width": "number — width of truncated_text",
            "remaining_width": "number — max_width minus truncated_width",
            "graphemes_kept": "number — grapheme clusters kept in truncated_text",
            "rules": "string — the exact width and truncation rule",
            "note": "string — the no-terminal-guarantee and no-storage note",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /text-width — one text, one measurement"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/text-width  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-text-width response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-mime",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/mime",
          "path": "/mime",
          "params": {
            "ext": "One of ext or type. A file extension, 1-32 characters, case-insensitive, with or without a leading dot, e.g. json or .json.",
            "type": "One of ext or type. A media type such as application/json; parameters after ';' are ignored. At most 128 characters."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/mime",
          "params": {
            "ext": "One of ext or type. A file extension, 1-32 characters, case-insensitive, with or without a leading dot, e.g. json or .json.",
            "type": "One of ext or type. A media type such as application/json; parameters after ';' are ignored. At most 128 characters."
          },
          "note": "A bare GET /mime is 402. With a payment header, a missing, duplicated or malformed parameter is 400 and no payment is requested. A well-formed unknown value is 200 with found=false."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string - \"x402-mime\"",
            "schema_version": "number",
            "lookup": "\"extension\" or \"type\"",
            "query": "{ ext } or { type } - the normalised query",
            "found": "boolean - false for a well-formed value outside the bundled table",
            "media_type": "string - only when found",
            "extensions": "string[] - known extensions for the media type; only when found",
            "charset": "string|null - the usual charset; only when found",
            "compressible": "boolean - usually compressed in transit; only when found",
            "category": "string - top-level type, e.g. \"application\"; only when found",
            "source": "string - bundled table, no external call",
            "table": "{ types, extensions } - size of the bundled table",
            "note": "string - the charset/compressible and no-storage note",
            "checked_at": "string - ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /mime - one extension or one media type"
        },
        "steps": [
          "curl -i https://<worker-host>/mime  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-mime response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-isin-check",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/isin",
          "path": "/isin",
          "params": {
            "q": "The ISIN, exactly 12 letters/digits after removing spaces and hyphens; case-insensitive. At most 64 characters before normalisation."
          },
          "body": null,
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/isin",
          "params": {
            "q": "The ISIN, exactly 12 letters/digits after removing spaces and hyphens; case-insensitive. At most 64 characters before normalisation."
          },
          "note": "A bare GET /isin is 402. With a payment header, malformed input is 400 and no payment is requested. A well-formed ISIN with a wrong check digit is 200 with valid=false."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string - \"x402-isin-check\"",
            "schema_version": "number",
            "query": "{ q } - the raw input",
            "normalized": "string - uppercased, spaces and hyphens removed",
            "valid": "boolean - the check digit matches",
            "reason": "\"check_digit_mismatch\" or null",
            "country_code": "string - first two letters",
            "country_name": "string|null - English name from Intl.DisplayNames",
            "country_known": "boolean - false when the region name is unknown",
            "nsin": "string - characters 3-11 (the national securities identifying number)",
            "check_digit": "string - the supplied 12th character",
            "expected_check_digit": "string - the digit the algorithm expects",
            "checksum_total": "number - Luhn sum over the expanded identifier",
            "checksum_remainder": "number - checksum_total % 10; 0 means the check passes",
            "algorithm": "string - the ISO 6166 rule used",
            "format": "{ length, structure }",
            "note": "string - the no-registry/no-storage note",
            "checked_at": "string - ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /isin - one identifier"
        },
        "steps": [
          "curl -i https://<worker-host>/isin  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-isin-check response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-mojibake-triage",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/mojibake",
          "path": "/mojibake",
          "params": null,
          "body": {
            "text": "required. The string you received, at most 65536 bytes in UTF-8. Empty is 400 with a payment header (402 without one).",
            "hint": "optional. One of utf-8, shift_jis, euc-jp, cp1252, latin1. It only affects hint_match; it does not force a candidate."
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/mojibake",
          "content_type": "application/json",
          "body": {
            "text": "required. The string you received, at most 65536 bytes in UTF-8. Empty is 400 with a payment header (402 without one).",
            "hint": "optional. One of utf-8, shift_jis, euc-jp, cp1252, latin1. It only affects hint_match; it does not force a candidate."
          },
          "note": "A bare GET /mojibake is 402 so a catalogue can probe the price. GET /mojibake?preview=1 is a free list of the fields, limits and scope. With a payment header and no text the POST is 400."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-mojibake-triage\"",
            "schema_version": "number",
            "verdict": "string — clean | suspect | confirmed | unknown",
            "evidence": "{ replacement_chars: {count, positions, positions_truncated}, c1_controls: {count, positions, positions_truncated}, halfwidth_katakana_ratio, non_ascii_ratio, utf8_roundtrip_ok, hint_match }",
            "candidates": "[{ from_encoding, to_encoding, direction, confidence, reversible, sample, reason }] — ranked, at most 5",
            "repaired": "string — only when the top candidate is reversible and confidence >= 0.85",
            "hint": "string|null",
            "rules_version": "string — \"mojibake-1.0.0\"",
            "rules": "string — the exact detection and non-promise rules",
            "disclaimer": "string — 復元は候補であり元バイト列の証明ではない",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /mojibake — one string, one triage"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/mojibake  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-mojibake-triage response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-delivery-validation",
        "call": {
          "method": "POST",
          "url_template": "https://<worker-host>/validate-delivery",
          "path": "/validate-delivery",
          "params": null,
          "body": {
            "items": "required. An array of JSON objects, at most 2000 items. Non-object items are 400 before payment.",
            "rules": "required. At least one of count {min?, max?, expected?}, required [field...], unique_by (field or [field...]), sum {field, expected, tolerance?} and types {field: string|number|integer|boolean|object|array}."
          },
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "POST",
          "path": "/validate-delivery",
          "content_type": "application/json",
          "body": {
            "items": "required. An array of JSON objects, at most 2000 items. Non-object items are 400 before payment.",
            "rules": "required. At least one of count {min?, max?, expected?}, required [field...], unique_by (field or [field...]), sum {field, expected, tolerance?} and types {field: string|number|integer|boolean|object|array}."
          },
          "note": "A bare GET /validate-delivery is 402 so a catalogue can probe the price. GET /validate-delivery?preview=1 is a free list of the five rules, the input shape, the limits and the output fields. With a payment header and an invalid body the POST is 400 before verification."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-delivery-validation\"",
            "schema_version": "number",
            "ok": "boolean — true when every applied rule passed",
            "verdict": "string — \"accepted\" or \"rejected\"",
            "checks": "[{name, ok, detail}] — one entry per applied rule",
            "issues": "[{code, item, field?}] — failing item index and field name; values are never returned",
            "issues_truncated": "boolean — true when the 200-issue cap was reached",
            "summary": "{items, rules_applied, failed_checks, issue_count}",
            "checker": "{name:\"x402-delivery-validation\", version:\"dv-0.1.0\", deterministic:true, network:false}",
            "note": "string — the rules-only, not-truth note",
            "computed_at": "string — ISO 8601 timestamp",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /validate-delivery — one delivery, one acceptance report"
        },
        "steps": [
          "curl -i -X POST https://<worker-host>/validate-delivery  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-delivery-validation response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      },
      {
        "product_id": "x402-candles-ohlcv",
        "call": {
          "method": "GET",
          "url_template": "https://<worker-host>/candles",
          "path": "/candles",
          "params": {
            "pair": "optional. BASE-QUOTE, e.g. BTC-USD (default BTC-USD).",
            "granularity": "optional. One of 60, 300, 900, 3600, 21600, 86400 seconds; default 3600.",
            "limit": "optional. 1 to 300; default 24."
          },
          "body": "none",
          "headers": {
            "PAYMENT-SIGNATURE": "<base64 payment payload> — required only for the paid delivery; the first call without it returns 402 with the price"
          }
        },
        "input": {
          "method": "GET",
          "path": "/candles",
          "params": {
            "pair": "optional. BASE-QUOTE, e.g. BTC-USD (default BTC-USD).",
            "granularity": "optional. One of 60, 300, 900, 3600, 21600, 86400 seconds; default 3600.",
            "limit": "optional. 1 to 300; default 24."
          },
          "body": "none",
          "note": "Bad input is refused with 400 before any payment is verified and before the exchange is read."
        },
        "output": {
          "content_type": "application/json",
          "encoding": "UTF-8",
          "shape": {
            "product_id": "string — \"x402-candles-ohlcv\"",
            "schema_version": "number",
            "pair": "string",
            "granularity_seconds": "number",
            "requested_limit": "number",
            "count": "number",
            "candles": "[ { unix, time, open, high, low, close, volume } ] — newest first",
            "source": "{ name, api, request_url, fetched_at, http_status, latency_ms }",
            "notes": "[ string ]",
            "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "amount_usd": 0.005,
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /candles — one pair and granularity, one delivery"
        },
        "steps": [
          "curl -i https://<worker-host>/candles  -> 402, read the PAYMENT-REQUIRED header",
          "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "repeat the call with the PAYMENT-SIGNATURE header  -> 200 with the x402-candles-ohlcv response"
        ],
        "note": "The 402 challenge is the authority on the current price and payTo. This example is generated from the same CONFIG and the same io/price fields as the product entry above."
      }
    ],
    "free_endpoints": [
      {
        "path": "/",
        "method": "GET",
        "what": "the catalogue: every product, its price and a curl purchase example"
      },
      {
        "path": "/health",
        "method": "GET",
        "what": "liveness of this Worker and how fresh the observation snapshot is"
      },
      {
        "path": "/status",
        "method": "GET",
        "what": "is this 402 still alive and has it ever delivered? The delivery record per paid route, read from this service's own delivery log. No uptime is claimed; a route with no recorded delivery says no_data and null."
      },
      {
        "path": "/status.json",
        "method": "GET",
        "what": "the same delivery record as JSON, for agents and monitors"
      },
      {
        "path": "/delivery-receipt",
        "method": "GET",
        "what": "the free reference implementation that matches one on-chain payment to one delivery by tx or payer"
      },
      {
        "path": "/contract/sample",
        "method": "GET",
        "what": "one free sample of a normalised x402 output contract"
      },
      {
        "path": "/listing-fit/sample",
        "method": "GET",
        "what": "one free reading of this service's own /dns listing from the discovery index, matched against a query"
      },
      {
        "path": "/failure/sample",
        "method": "GET",
        "what": "one free sample of the failure/refund declarations a 402 carries, read from this service's own /gas 402"
      },
      {
        "path": "/example-fit/sample",
        "method": "GET",
        "what": "one free reading of this service's own /hash 402 declaration: the example and the schema are compared literally and an older example is reported as stale (no subrequest, no payment)"
      },
      {
        "path": "/paid/sample",
        "method": "GET",
        "what": "one fixed, known confirmed Base USDC transfer (this service's own 0.001 USDC self-verification tx), with no RPC call and no payment"
      },
      {
        "path": "/data",
        "method": "GET",
        "what": "the measured x402 market, CC0: price distribution, payers by category, near-identical listing families, and how often listings declare liveness or diffs. The same numbers as JSON are at /data.json."
      },
      {
        "path": "/support",
        "method": "GET",
        "what": "optional support: what it pays for, the EIP-681 links and locally generated QR codes for USDC on Base"
      }
    ],
    "paid_endpoints": [
      {
        "product_id": "x402-catalog-history",
        "path": "/history",
        "method": "GET",
        "price_atomic": "10000"
      },
      {
        "product_id": "x402-json-compat-check",
        "path": "/compat",
        "method": "POST",
        "price_atomic": "20000"
      },
      {
        "product_id": "x402-catalog-change-log",
        "path": "/changes",
        "method": "GET",
        "price_atomic": "20000",
        "params": [
          "from",
          "to"
        ]
      },
      {
        "product_id": "x402-catalog-change-bundle",
        "path": "/changes/bundle",
        "method": "GET",
        "price_atomic": "100000",
        "params": [
          "units",
          "from",
          "to",
          "order"
        ],
        "units_per_delivery": 100,
        "max_units": 100
      },
      {
        "product_id": "x402-check-before-you-pay",
        "path": "/check",
        "method": "GET",
        "price_atomic": "20000",
        "params": [
          "url"
        ],
        "live_target_fetch": true
      },
      {
        "product_id": "x402-check-batch",
        "path": "/check/batch",
        "method": "GET",
        "price_atomic": "100000",
        "params": [
          "urls"
        ],
        "live_target_fetch": true,
        "max_target_requests": 10,
        "max_urls": 10,
        "batch_of": "/check"
      },
      {
        "product_id": "x402-check-watch",
        "path": "/check/watch",
        "method": "GET",
        "price_atomic": "80000",
        "params": [
          "url",
          "since"
        ],
        "live_target_fetch": true,
        "max_target_requests": 1,
        "history_of": "/check"
      },
      {
        "product_id": "x402-alive-402",
        "path": "/alive",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "url"
        ],
        "live_target_fetch": true
      },
      {
        "product_id": "x402-mutation-watch",
        "path": "/watch",
        "method": "GET",
        "price_atomic": "20000",
        "params": [
          "url",
          "id"
        ],
        "live_target_fetch": true,
        "post_registration": true
      },
      {
        "product_id": "x402-watchlist-batch",
        "path": "/watchlist",
        "method": "GET",
        "price_atomic": "50000",
        "params": [
          "urls",
          "id"
        ],
        "live_target_fetch": true,
        "post_registration": true,
        "max_urls": 10,
        "batch_of": "/watch"
      },
      {
        "product_id": "x402-402-compat-report",
        "path": "/compat-check",
        "method": "GET",
        "price_atomic": "20000",
        "params": [
          "url"
        ],
        "live_target_fetch": true
      },
      {
        "product_id": "x402-output-contract",
        "path": "/contract",
        "method": "GET",
        "price_atomic": "20000",
        "params": [
          "url"
        ],
        "live_target_fetch": true,
        "free_sample": "/contract/sample"
      },
      {
        "product_id": "x402-example-fit",
        "path": "/example-fit",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "url"
        ],
        "live_target_fetch": true,
        "free_sample": "/example-fit/sample"
      },
      {
        "product_id": "x402-payer-leak-scan",
        "path": "/payer-leak",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "url"
        ],
        "live_target_fetch": true
      },
      {
        "product_id": "x402-random-pick",
        "path": "/pick",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "items",
          "count",
          "replace"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "crypto.getRandomValues with rejection sampling"
      },
      {
        "product_id": "x402-base64",
        "path": "/base64",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "data",
          "action",
          "urlsafe"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "btoa/atob and TextEncoder/TextDecoder"
      },
      {
        "product_id": "x402-text-stats",
        "path": "/text-stats",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "text",
          "max_chars"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "Unicode code point iteration and TextEncoder"
      },
      {
        "product_id": "x402-roman",
        "path": "/roman",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "n",
          "roman"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "Greedy subtractive conversion table"
      },
      {
        "product_id": "x402-semver",
        "path": "/semver",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "range",
          "versions",
          "include_prerelease"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "strict semver 2.0.0 parser and npm-subset range evaluator in this Worker"
      },
      {
        "product_id": "x402-timezone",
        "path": "/timezone",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "zone",
          "at"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "IANA time zone database bundled with the Workers runtime (Intl.DateTimeFormat)"
      },
      {
        "product_id": "x402-wallclock",
        "path": "/wallclock",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "zone",
          "local"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "IANA time zone database bundled with the Workers runtime (Intl.DateTimeFormat); candidate offsets are re-formatted and matched"
      },
      {
        "product_id": "x402-npm",
        "path": "/npm",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "name",
          "version"
        ],
        "bundled_data": false,
        "generated_locally": false,
        "source": "npm registry (https://registry.npmjs.org), one GET per paid call"
      },
      {
        "product_id": "x402-pypi",
        "path": "/pypi",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "name",
          "version"
        ],
        "bundled_data": false,
        "generated_locally": false,
        "source": "PyPI JSON API (https://pypi.org/pypi), one GET per paid call"
      },
      {
        "product_id": "x402-catalog-fit",
        "path": "/catalog-fit",
        "method": "GET",
        "price_atomic": "10000",
        "params": [
          "base",
          "paths"
        ],
        "live_target_fetch": true,
        "max_target_requests": 25
      },
      {
        "product_id": "x402-compare",
        "path": "/compare",
        "method": "GET",
        "price_atomic": "20000",
        "params": [
          "urls"
        ],
        "live_target_fetch": true,
        "max_target_requests": 3,
        "min_urls": 2,
        "max_urls": 3
      },
      {
        "product_id": "x402-unix-mode",
        "path": "/unix-mode",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "mode"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "octal and symbolic chmod conversion in this Worker"
      },
      {
        "product_id": "x402-radix",
        "path": "/radix",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "n",
          "from",
          "to"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "BigInt base conversion in this Worker"
      },
      {
        "product_id": "x402-uuid",
        "path": "/uuid",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "count",
          "uppercase",
          "braces",
          "hyphens"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "crypto.getRandomValues UUID v4 generation in this Worker"
      },
      {
        "product_id": "x402-http-status",
        "path": "/http-status",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "code"
        ],
        "bundled_data": true,
        "generated_locally": true,
        "source": "bundled IANA/RFC HTTP status-code table in this Worker"
      },
      {
        "product_id": "x402-iban-check",
        "path": "/iban",
        "method": "GET",
        "price_atomic": "2000",
        "params": [
          "iban"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "ISO 13616 structure, SEPA lengths and MOD-97 inside this Worker"
      },
      {
        "product_id": "x402-schema-infer",
        "path": "/schema-infer",
        "method": "POST",
        "price_atomic": "5000",
        "params": [
          "examples",
          "title"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "recursive observation and JSON Schema assembly inside this Worker"
      },
      {
        "product_id": "x402-jsonl",
        "path": "/jsonl",
        "method": "POST",
        "price_atomic": "2000",
        "params": [
          "text",
          "unique_key",
          "max_lines",
          "require_same_keys"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "JSON.parse per line and top-level key aggregation inside this Worker"
      },
      {
        "product_id": "x402-json-canonical",
        "path": "/json-canonical",
        "method": "POST",
        "price_atomic": "2000",
        "params": [
          "json"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "strict JSON parser and RFC 8785 JCS serializer inside this Worker"
      },
      {
        "product_id": "x402-pii-scan",
        "path": "/pii-scan",
        "method": "POST",
        "price_atomic": "5000",
        "params": [
          "text",
          "locale",
          "types",
          "redact"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "regular expressions plus Luhn, MOD-97 and an E.164 country-code table inside this Worker",
        "returns_values": false
      },
      {
        "product_id": "x402-slug",
        "path": "/slug",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "text",
          "separator",
          "max_length"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "Unicode NFKD and combining-mark removal"
      },
      {
        "product_id": "x402-charset",
        "path": "/charset",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "url"
        ],
        "live_target_fetch": true,
        "source": "BOM/HTTP/meta declarations and TextDecoder fatal decodes in this Worker",
        "max_body_bytes": 524288,
        "timeout_ms": 5000,
        "max_redirects": 3,
        "meta_scan_bytes": 4096,
        "returns_body": false
      },
      {
        "product_id": "x402-dice-roll",
        "path": "/dice",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "count",
          "sides"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "crypto.getRandomValues with rejection sampling"
      },
      {
        "product_id": "x402-cron-next",
        "path": "/cron",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "expr",
          "count",
          "from"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "5-field cron parser in this Worker (UTC)"
      },
      {
        "product_id": "x402-json-strict",
        "path": "/json-strict",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "url"
        ],
        "live_target_fetch": true,
        "source": "own tokenizer in this Worker",
        "max_body_bytes": 1048576,
        "timeout_ms": 5000,
        "max_redirects": 3,
        "returns_values": false
      },
      {
        "product_id": "x402-dns-propagation",
        "path": "/dns-propagation",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "name",
          "type"
        ],
        "live_upstream_call": true,
        "source": "public DoH (Cloudflare, Google, Quad9), one query each, no retry",
        "max_resolvers": 4,
        "timeout_ms": 5000,
        "default_type": "A",
        "record_types": [
          "A",
          "AAAA",
          "MX",
          "TXT",
          "CNAME"
        ]
      },
      {
        "product_id": "x402-dnssec-status",
        "path": "/dnssec",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "domain",
          "type"
        ],
        "live_upstream_call": true,
        "source": "public DoH JSON (Cloudflare for DS, Cloudflare and Google for A with do=1), one query each, no retry",
        "queries_per_delivery": 3,
        "timeout_ms": 5000,
        "record_type": "A"
      },
      {
        "product_id": "x402-url-inspector",
        "path": "/url",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "url"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "WHATWG URL parser in this Worker",
        "fetches_target": false
      },
      {
        "product_id": "x402-idn-check",
        "path": "/idn-check",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "url",
          "expected"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "WHATWG URL parser, RFC 3492 punycode decoder and a small script/confusable table in this Worker",
        "fetches_target": false,
        "raw_authority": true
      },
      {
        "product_id": "x402-text-width",
        "path": "/text-width",
        "method": "POST",
        "price_atomic": "1000",
        "params": [
          "text",
          "max_width",
          "ambiguous"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "Intl.Segmenter grapheme boundaries and a bundled East Asian Width 18.0.0 table in this Worker",
        "rules_version": "eaw-18.0.0",
        "truncates_on_grapheme_boundary": true
      },
      {
        "product_id": "x402-isin-check",
        "path": "/isin",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "q"
        ],
        "bundled_data": true,
        "generated_locally": true,
        "source": "ISO 6166 check-digit algorithm in this Worker",
        "fetches_target": false
      },
      {
        "product_id": "x402-mojibake-triage",
        "path": "/mojibake",
        "method": "POST",
        "price_atomic": "1000",
        "params": [
          "text",
          "hint"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "TextDecoder plus a lazily built CP932 reverse map in this Worker",
        "rules_version": "mojibake-1.0.0",
        "reversible_repair": true
      },
      {
        "product_id": "x402-mime",
        "path": "/mime",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "ext",
          "type"
        ],
        "bundled_data": true,
        "generated_locally": true,
        "source": "bundled IANA media-type subset in this Worker",
        "fetches_target": false,
        "table_types": 79,
        "table_extensions": 102
      },
      {
        "product_id": "x402-fx-reference-rate",
        "path": "/fx",
        "method": "GET",
        "price_atomic": "2000",
        "params": [
          "from",
          "to",
          "amount",
          "date"
        ],
        "live_upstream_call": true,
        "source": "Frankfurter v2 /rate with providers=ecb (ECB reference rates)",
        "upstream_calls_per_delivery": 1,
        "cache_ttl_seconds": 3600,
        "kind": "reference"
      },
      {
        "product_id": "x402-ai-access",
        "path": "/ai-access",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "url"
        ],
        "live_target_fetch": true,
        "source": "one GET of /robots.txt and one HEAD of /llms.txt",
        "max_body_bytes": 524288,
        "timeout_ms": 5000,
        "max_redirects": 5,
        "returns_body": false
      },
      {
        "product_id": "x402-ip-inspector",
        "path": "/ip",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "addr"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "IPv4/IPv6 parser in this Worker"
      },
      {
        "product_id": "x402-failure-declaration",
        "path": "/failure",
        "method": "GET",
        "price_atomic": "50000",
        "params": [
          "url"
        ],
        "live_target_fetch": true,
        "free_sample": "/failure/sample"
      },
      {
        "product_id": "x402-crosschain-gas",
        "path": "/gas",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "chains"
        ],
        "live_upstream_call": true,
        "chains": [
          "base",
          "eth",
          "arbitrum",
          "optimism",
          "polygon"
        ]
      },
      {
        "product_id": "x402-gas-plan",
        "path": "/gas/plan",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "chains",
          "gas_limit"
        ],
        "live_upstream_call": true,
        "chains": [
          "base",
          "eth",
          "arbitrum",
          "optimism",
          "polygon"
        ],
        "default_gas_limit": 21000,
        "min_gas_limit": 1,
        "max_gas_limit": 30000000
      },
      {
        "product_id": "x402-gas-tx",
        "path": "/gas/tx",
        "method": "GET",
        "price_atomic": "2000",
        "params": [
          "chain",
          "hash"
        ],
        "live_upstream_call": true,
        "chains": [
          "base",
          "eth",
          "arbitrum",
          "optimism",
          "polygon"
        ],
        "reads": [
          "eth_getTransactionReceipt",
          "eth_getTransactionByHash",
          "eth_chainId"
        ],
        "storage": false,
        "sends_transaction": false
      },
      {
        "product_id": "x402-price-benchmark",
        "path": "/price",
        "method": "GET",
        "price_atomic": "20000",
        "params": [
          "amount",
          "url",
          "category"
        ],
        "bundled_data": true,
        "price_index_generated_at": "2026-10-15T14:49:56.365Z"
      },
      {
        "product_id": "x402-agent-payment-reality-map",
        "path": "/reality",
        "method": "GET",
        "price_atomic": "50000",
        "params": [
          "name"
        ],
        "bundled_data": true,
        "route_map_generated_at": "2026-10-15T18:24:16Z"
      },
      {
        "product_id": "x402-random-bytes",
        "path": "/random",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "bytes",
          "format"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "crypto.getRandomValues",
        "min_bytes": 1,
        "max_bytes": 1024,
        "default_bytes": 32,
        "formats": [
          "hex",
          "base64",
          "uuid"
        ],
        "default_format": "hex"
      },
      {
        "product_id": "x402-unit-convert",
        "path": "/convert",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "value",
          "from",
          "to"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "fixed unit definitions in this Worker"
      },
      {
        "product_id": "x402-timestamp-convert",
        "path": "/ts",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "value",
          "from",
          "to"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "JavaScript Date and integer arithmetic in this Worker"
      },
      {
        "product_id": "x402-news-headlines",
        "path": "/news",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "topic",
          "limit"
        ],
        "live_upstream_call": true,
        "sources": [
          "markets",
          "crypto",
          "tech",
          "world"
        ],
        "feed_count": 15,
        "max_age_hours": 48,
        "min_limit": 1,
        "max_limit": 50,
        "default_limit": 20,
        "default_topic": "markets"
      },
      {
        "product_id": "x402-candles-ohlcv",
        "path": "/candles",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "pair",
          "granularity",
          "limit"
        ],
        "live_upstream_call": true,
        "source": "Coinbase Exchange public candles API",
        "granularities": [
          60,
          300,
          900,
          3600,
          21600,
          86400
        ],
        "min_limit": 1,
        "max_limit": 300,
        "default_limit": 24,
        "default_granularity": 3600,
        "newest_first": true
      },
      {
        "product_id": "x402-catalog-families",
        "path": "/catalog/families",
        "method": "GET",
        "price_atomic": "50000",
        "params": [
          "min_members",
          "axis",
          "limit"
        ],
        "bundled_data": true,
        "family_count": 30,
        "max_members": 80,
        "unique_resources": 2562,
        "observed_from": "2026-10-11T12:25:07.808Z",
        "observed_to": "2026-10-16T12:11:43.180Z"
      },
      {
        "product_id": "x402-lei-lookup",
        "path": "/lei",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "q",
          "limit"
        ],
        "live_upstream_call": true,
        "source": "GLEIF public API",
        "min_limit": 1,
        "max_limit": 20,
        "default_limit": 5
      },
      {
        "product_id": "x402-holiday-calendar",
        "path": "/holidays",
        "method": "GET",
        "price_atomic": "3000",
        "params": [
          "country",
          "year"
        ],
        "live_upstream_call": true,
        "source": "Nager.Date public API",
        "min_year": 1990,
        "max_year": 2100
      },
      {
        "product_id": "x402-cidr-calculator",
        "path": "/cidr",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "cidr"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "integer arithmetic in this Worker"
      },
      {
        "product_id": "x402-barcode-check",
        "path": "/barcode",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "code"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "integer arithmetic in this Worker",
        "symbologies": [
          "ean-13",
          "upc-a",
          "ean-8",
          "isbn-10",
          "isbn-13"
        ]
      },
      {
        "product_id": "x402-color-contrast",
        "path": "/color",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "hex",
          "against"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "sRGB and WCAG 2.x arithmetic in this Worker"
      },
      {
        "product_id": "x402-jwt-inspector",
        "path": "/jwt",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "token"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "base64url and JSON decoding in this Worker",
        "signature_verified": false
      },
      {
        "product_id": "x402-mailauth-check",
        "path": "/mailauth",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "domain"
        ],
        "live_upstream_call": true,
        "source": "Cloudflare DNS-over-HTTPS JSON API",
        "queries_per_call": 3,
        "cache_ttl_seconds": 300,
        "negative_cache_ttl_seconds": 30
      },
      {
        "product_id": "x402-spf-depth",
        "path": "/spf-depth",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "domain"
        ],
        "live_upstream_call": true,
        "source": "Cloudflare DNS-over-HTTPS JSON API",
        "queries_per_call": 20,
        "lookup_limit": 10,
        "max_chain_records": 20,
        "max_depth": 10,
        "cache_ttl_seconds": 300,
        "negative_cache_ttl_seconds": 30
      },
      {
        "product_id": "x402-dmarc-policy",
        "path": "/dmarc-policy",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "domain"
        ],
        "live_upstream_call": true,
        "source": "Cloudflare DNS-over-HTTPS JSON API",
        "queries_per_call": 1,
        "cache_ttl_seconds": 300,
        "negative_cache_ttl_seconds": 30,
        "subdomain_inheritance": false
      },
      {
        "product_id": "x402-mta-sts",
        "path": "/mta-sts",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "domain"
        ],
        "live_upstream_call": true,
        "source": "Cloudflare DoH JSON (TXT _mta-sts + MX) and one HTTPS GET of the policy, redirects not followed",
        "queries_per_call": 3,
        "redirects_followed": 0,
        "timeout_ms": 5000
      },
      {
        "product_id": "x402-domain-age",
        "path": "/domain-age",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "domain"
        ],
        "live_upstream_call": true,
        "source": "RDAP (registry authoritative) via the IANA bootstrap registry",
        "bootstrap": "https://data.iana.org/rdap/dns.json",
        "bootstrap_cache_ttl_seconds": 86400,
        "queries_per_call": 1,
        "privacy": "no registrant or contact data returned or cached"
      },
      {
        "product_id": "x402-dns-lookup",
        "path": "/dns",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "name",
          "type"
        ],
        "live_upstream_call": true,
        "source": "Cloudflare DNS-over-HTTPS JSON API",
        "queries_per_call": 1
      },
      {
        "product_id": "x402-text-hash",
        "path": "/hash",
        "method": "GET",
        "price_atomic": "1000",
        "params": [
          "text",
          "algo",
          "encoding",
          "key"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "Web Crypto in this Worker",
        "algorithms": [
          "sha256",
          "sha384",
          "sha512",
          "sha1"
        ],
        "hmac_supported": true
      },
      {
        "product_id": "x402-base-usdc-transfer",
        "path": "/paid",
        "method": "GET",
        "price_atomic": "5000",
        "params": [
          "tx",
          "to",
          "amount"
        ],
        "live_upstream_call": true,
        "source": "public Base RPC",
        "rpc_calls_per_delivery": 2,
        "rpc_methods": [
          "eth_getTransactionReceipt",
          "eth_blockNumber"
        ],
        "free_sample": "/paid/sample"
      },
      {
        "product_id": "x402-wikipedia-summary",
        "path": "/wiki",
        "method": "GET",
        "price_atomic": "2000",
        "params": [
          "q",
          "lang"
        ],
        "live_upstream_call": true,
        "source": "Wikipedia REST API (CC BY-SA 4.0)",
        "upstream_calls_per_delivery": 1,
        "languages": [
          "en",
          "ja",
          "de",
          "fr",
          "es",
          "it",
          "pt",
          "ru",
          "zh",
          "ko"
        ]
      },
      {
        "product_id": "x402-buyer-next-step",
        "path": "/digest",
        "method": "GET",
        "price_atomic": "10000",
        "params": [],
        "bundled_data": true
      },
      {
        "product_id": "x402-delivery-validation",
        "path": "/validate-delivery",
        "method": "POST",
        "price_atomic": "5000",
        "params": [
          "items",
          "rules"
        ],
        "bundled_data": false,
        "generated_locally": true,
        "source": "count, required, unique_by, sum and types checks inside this Worker",
        "returns_values": false
      }
    ],
    "human_purchases": [
      {
        "product_id": "x402-seller-playbook",
        "path": "/guide",
        "method": "GET",
        "price_atomic": "3000000",
        "price_usd": 3,
        "payment_method": "claim",
        "buy_path": "/guide/buy",
        "claim_path": "/guide/claim",
        "free_sample": "/guide/sample",
        "claim_body": [
          "tx"
        ],
        "what_get": "the full 15-chapter playbook as signed, time-limited PDF and Markdown links",
        "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
      },
      {
        "product_id": "x402-catalog-history-pack",
        "path": "/pack",
        "method": "GET",
        "price_atomic": "250000",
        "price_usd": 0.25,
        "payment_method": "claim",
        "buy_path": "/pack/buy",
        "claim_path": "/pack/claim",
        "free_sample": "/pack/sample",
        "claim_body": [
          "tx"
        ],
        "what_get": "the frozen hist-v1 pack as signed, time-limited JSONL and CSV links",
        "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
      },
      {
        "product_id": "x402-preflight-report",
        "path": "/preflight",
        "method": "GET",
        "price_atomic": "5000000",
        "price_usd": 5,
        "payment_method": "claim",
        "buy_path": "/preflight/buy",
        "claim_path": "/preflight/claim",
        "free_sample": "/preflight/buy",
        "claim_body": [
          "tx",
          "resource (optional)"
        ],
        "what_get": "the pre-flight report Markdown in the claim response",
        "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
      },
      {
        "product_id": "x402-enrich-report",
        "path": "/enrich",
        "method": "GET",
        "price_atomic": "300000",
        "price_usd": 0.3,
        "payment_method": "claim",
        "buy_path": "/enrich/buy",
        "claim_path": "/enrich/claim",
        "free_sample": "/enrich/buy",
        "claim_body": [
          "tx",
          "url"
        ],
        "what_get": "the enrichment report Markdown in the claim response (needs the target URL)",
        "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
      },
      {
        "product_id": "x402-measured-brief",
        "path": "/brief",
        "method": "GET",
        "price_atomic": "1000000",
        "price_usd": 1,
        "payment_method": "claim",
        "buy_path": "/brief/buy",
        "claim_path": "/brief/claim",
        "free_sample": "/brief/buy",
        "claim_body": [
          "tx"
        ],
        "what_get": "the measured brief Markdown in the claim response",
        "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
      },
      {
        "product_id": "x402-credit",
        "path": "/credit",
        "method": "GET",
        "price_atomic": "5000000",
        "price_usd": 5,
        "payment_method": "claim",
        "buy_path": "/credit",
        "claim_path": "/credit/claim",
        "free_sample": "/credit",
        "claim_body": [
          "tx"
        ],
        "what_get": "a credit id usable on every paid route; exactly 0.01 USDC returns the /digest delivery itself, and 5 USDC issues the 110-call pack",
        "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
      }
    ],
    "x402_price_ceiling_atomic": "100000",
    "x402_prices_over_ceiling": [],
    "products": [
      {
        "product_id": "x402-catalog-history",
        "schema_version": 1,
        "canonical_source": {
          "service": "x402-catalog-history",
          "url": "https://x402-catalog-history.ai-business-surface.workers.dev/history",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9D0C889f2F89c3",
          "license": "Read and use this data freely. If you redistribute it or sell it to someone else, keep this canonical_source block unchanged (service, url, pay_to): payments for this data belong to pay_to, and the observation timestamps are the origin's record of when each fact was collected.",
          "note": "This URL is the origin of this data. The observation timestamps and the coverage fields below are the record of when it was collected; a copy cannot produce earlier observations than the original."
        },
        "title": "x402 catalog observation history",
        "what_it_is": "The observed change history of the public x402 facilitator catalog: which listed resources appeared, disappeared, changed price, changed network/asset, or changed terms, cycle by cycle, with raw facts.",
        "when_to_buy": "Buy one delivery when you need a dated record of how the public x402 catalogue changed — resource totals, the composition of one discovery page, facilitator pricing and a tracked set of resources — instead of a single live reading. Typical case: a listing, an integration or a report depends on a resource count, a price band or an accepted network, and you want the exact period covered, the raw facts and the misses behind those numbers.",
        "subject": {
          "what_is_observed": [
            "facilitator discovery catalog: total resource count, per-page window composition (hosts, networks, price bands, schemes, assets, max timeouts)",
            "facilitator supported networks/schemes (network x scheme rows, feePayer, gas sponsored, extensions, signer networks)",
            "facilitator pricing (credit price, published margin, per network x scheme x transferMethod rates, published rate changes)",
            "a tracked set of individual resources (listed/not listed, last_updated, accepts: network, scheme, asset, amount, payTo, maxTimeoutSeconds)"
          ],
          "not_included": [
            "no response bodies of third-party APIs, no private keys, no buyer or payer identities",
            "no observations of resources outside the configured watch list"
          ],
          "source": "public facilitator endpoints (discovery/resources, supported, pricing)",
          "observation_interval_minutes": 15,
          "collector_location": "local host (not in this Worker); this Worker only serves the stored snapshot"
        },
        "period": {
          "first_observed_at": "2026-10-11T12:31:51.688Z",
          "last_observed_at": "2026-11-01T09:57:59.870Z",
          "cycles_recorded": 7605,
          "note": "The delivery contains the snapshot built from all cycles recorded so far. The exact window is reported in the response period field.",
          "timezone": "UTC (observed_at); observed_at_jst is UTC+09:00"
        },
        "version": {
          "product_schema_version": 1,
          "history_schema_version": 1,
          "snapshot_generated_at": "2026-11-01T10:04:23.198Z",
          "kind": "fixed_snapshot",
          "update_policy": "This delivery is a fixed snapshot. Continued local observation does NOT change it. A newer snapshot is published as a separate deployment with a different snapshot_id, and this URL then serves that newer snapshot; the period fields always state exactly what is included.",
          "how_to_tell_which_snapshot": "Read snapshot.id, snapshot.generated_at and period in this response before paying.",
          "static_catalogue_file": "The same values are published in product.json (built from this code, checked by selftest)."
        },
        "missing_data": {
          "meaning": "A missing cycle means the observation attempt for that target failed (HTTP error or timeout). It does not mean the observed value was absent, zero, or removed.",
          "how_to_read": "coverage.miss_events lists failed cycles with target_id, http_status and error. coverage.total_misses is their count.",
          "coverage_caveat": "Observations are 15-minute samples, not a continuous record. A change that appeared and reverted between two cycles is not visible. Zero misses does not mean zero blind spots."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/history",
            "params": "none",
            "body": "none",
            "note": "Payment is proven by the payment header, not by a request body."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "generated_at": "ISO-8601 UTC, when this snapshot was built",
              "period": "{ first_observed_at, last_observed_at, cycles, series_events }",
              "coverage": "{ targets[], total_observations, total_misses, miss_events[], missing_meaning }",
              "changes": "[{ observed_at, observed_at_jst, target_id, change_status, changes[] }] sorted oldest first",
              "latest": "{ target_id: { observed_at, facts } } — full facts of the newest observation per target",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "10000",
          "asset_decimals": 6,
          "amount_usd": 0.01,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /history response",
          "note": "One payment buys one delivery of the current snapshot. Price is set by the operator and may change; the 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "version_note": "V2 only. The version field, the CAIP-2 network id, the header names and the payment requirement shape are the V2 forms and are consistent with each other. A V1 client (x402Version 1, network \"base\", X-PAYMENT) can also buy: the PAYMENT-REQUIRED header stays V2 while the 402 body is V1-compatible (x402Version 1, accepts[].maxAmountRequired), and X-PAYMENT is verified and settled as v1.",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "refunds": "Payments are settled on-chain and are not refunded automatically. If a paid request fails to return data, the transaction is the record of the claim.",
          "terms_of_use": "Data is provided as observed, without warranty of completeness or fitness for a particular purpose."
        },
        "purchase_example": {
          "step_1": "curl -i https://<worker-host>/history   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' https://<worker-host>/history   -> 200 with the history JSON",
          "note": "An x402 client library performs steps 2 and 3 automatically."
        },
        "listing_notes": {
          "resource_type": "Plain GET. A catalogue can confirm the payment terms by calling the resource and reading the 402 PAYMENT-REQUIRED header; no request body is needed, so listing it does not require preparing an input.",
          "price": "The 402 response always carries the current amount. product.json and this catalogue are generated from the same CONFIG, so a price change must be re-generated and re-deployed for both at once.",
          "snapshot": "List it as a fixed snapshot sold one delivery at a time, not as a live or streaming feed. snapshot.id, snapshot.generated_at and period in each response state exactly what is included.",
          "claims": "Do not advertise completeness or real-time coverage. Observation is a 15-minute sample, and a delivery does not change when local observation continues."
        }
      },
      {
        "product_id": "x402-json-compat-check",
        "schema_version": 1,
        "title": "Will this change break my integration?",
        "what_it_is": "A bounded compatibility check of one JSON value against one JSON Schema fragment. Supported keywords: type, required, properties, additionalProperties, items, enum, const. It returns pass/fail, the kind and location of each mismatch, expected vs actual, the checker version and the sha256 of the canonicalized inputs. It is not a full JSON Schema validator and runs no input code.",
        "when_to_buy": "Buy one check when you have one JSON value and one JSON Schema fragment and want a yes/no answer plus the failing paths, before you wire that pair into your own validator, test suite or paid pipeline. It fits a pre-flight step: confirm the payload shape a seller expects without shipping a full validator.",
        "subject": {
          "what_is_checked": "one JSON Schema fragment against one JSON value, in one request (the fields schema and actual)",
          "supported_keywords": [
            "type",
            "required",
            "properties",
            "additionalProperties",
            "items",
            "enum",
            "const"
          ],
          "checker": {
            "name": "x402-compat-check",
            "version": "1.0.0",
            "format_version": 1
          },
          "not_included": [
            "no full JSON Schema conformance: $ref, boolean schemas, format, numeric/string length constraints and oneOf/anyOf/allOf are reported as unsupported, never silently ignored",
            "no input retention: only the sha256 of the canonicalized inputs is returned",
            "no code execution: the checker reads JSON data only (no eval, no regular expressions, no property getters)"
          ]
        },
        "io": {
          "input": {
            "content_type": "application/json",
            "method": "POST",
            "path": "/compat",
            "body": {
              "schema": "JSON Schema fragment (supported keywords only)",
              "actual": "the JSON value to check"
            },
            "note": "The request body is validated (size, JSON shape, depth, node count) and rejected with 400/413 before any payment is requested."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "status": "no_mismatch | mismatch | unsupported_input",
              "issues": "[{ path (RFC 6901 JSON Pointer), schemaPath, keyword, expected, actual }]",
              "checker": "{ name, version, supported_keywords }",
              "input": "{ schema_sha256, actual_sha256, schema_canonical_bytes, actual_canonical_bytes }"
            }
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this catalogue plus the newest change events of product 1"
          }
        },
        "limits": {
          "maxBodyBytes": 65536,
          "maxDepth": 16,
          "maxNodes": 10000,
          "maxIssues": 100
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /compat response",
          "note": "One payment buys one checked pair. This is a separate constant from product 1, so either price can change alone; the 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "version_note": "V2 only, the same forms as product 1 (x402Version 2, CAIP-2 network id, PAYMENT-SIGNATURE). A V1 client (x402Version 1, network \"base\", X-PAYMENT) can also buy from the same 402: the header stays V2 and the body is V1-compatible.",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "refunds": "Payments are settled on-chain and are not refunded automatically. If a paid request fails to return a report, the transaction is the record of the claim.",
          "terms_of_use": "The check is provided as-is, without warranty. no_mismatch only means no mismatch within the six supported keywords."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST https://<worker-host>/compat -H 'content-type: application/json' -d '{\"schema\":{\"type\":\"object\"},\"actual\":{}}'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -X POST -H 'content-type: application/json' -H 'PAYMENT-SIGNATURE: <base64 payload>' https://<worker-host>/compat -d '{...}'   -> 200 with the compatibility report",
          "note": "The body must be exactly {schema, actual}. An x402 client library performs steps 2 and 3 automatically."
        },
        "listing_notes": {
          "resource_type": "POST resource. A catalogue that confirms payment terms by calling the resource may need a request body and a payment to complete the listing, which is not possible for a GET-only listing flow.",
          "no_get_alias": "GET /compat stays 405 on purpose. A GET window that returns a description or an empty report would put a resource in the catalogue that does not behave as listed and would break a buyer's 402 check.",
          "price": "The 402 response always carries COMPAT_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG."
        },
        "spec": "compat-spec.md (published with this code; not served as a GET route)"
      },
      {
        "product_id": "x402-catalog-change-log",
        "schema_version": 1,
        "title": "What changed in the x402 catalog in this period?",
        "what_it_is": "The diff of the stored observation history of the public x402 facilitator catalog, for a period you choose with from/to: every detected change with the field name and its before/after values and the observation time, the last success and last failure per target with the intervals where observation failed, and the observation cycles that are missing. It is built only by processing observation records that were already collected; it makes no new observation and no upstream call. It is not a live feed.",
        "when_to_buy": "Buy one delivery before you rely on a number from the catalog, or before you pay someone else: confirm what changed in a period (which tracked resource repriced, which host left the page window, which capability appeared), where observation stopped and where it resumed, and how many cycles are missing — so you know whether a value you are about to trust is stable, moving, or simply unobserved. Use /history when you need the current snapshot of the facts; use /changes when you need the difference over a period.",
        "subject": {
          "what_is_diffed": [
            "field-level changes of every observation target (target_id, field, before value, after value, observation time, cycle number)",
            "the status of each target over the period (last success, last failure, consecutive failures, cycles present and missing)",
            "intervals where observation failed (start, end, ongoing, failed attempts, http status, error)",
            "missing observation cycles per target: the interval, how many cycles, and the cycles before and after",
            "cycle-level gaps in the observation record itself (a gap longer than 25 minutes is flagged)"
          ],
          "not_included": [
            "no third-party response bodies, no private keys, no buyer or payer identities",
            "no interpolated values: a missing cycle is reported as missing, never filled in",
            "no new collection: the data is the stored observation record only"
          ],
          "source": "the same local observation store as GET /history (facilitator discovery/resources, supported, pricing and a tracked resource set)",
          "observation_interval_minutes": 15,
          "collector_location": "local host (not in this Worker); this Worker only serves the stored record"
        },
        "period": {
          "default": "all observed cycles",
          "selectable": "?from=<ISO-8601>&to=<ISO-8601>; a bare date (YYYY-MM-DD) means the whole day in UTC",
          "available": {
            "first_observed_at": "2026-10-11T12:31:51.688Z",
            "last_observed_at": "2026-10-20T17:13:00.304Z",
            "cycles": 787,
            "observation_records": 3138
          },
          "how_cycles_are_counted": "One cycle is one run of the collector, which observes every target within a few seconds. A cycle counts when the observation time of at least one target falls inside the period. Note that the cycles field of the bundled GET /history snapshot counts stored observation records (one per target per cycle), not runs, so compare it with observation_records here, not with cycles.",
          "timezone": "UTC (observed_at); observed_at_jst is UTC+09:00"
        },
        "version": {
          "product_schema_version": 1,
          "change_schema_version": 1,
          "change_log_generated_at": "2026-10-20T17:21:44.287Z",
          "kind": "fixed_snapshot",
          "update_policy": "This delivery is a fixed snapshot of the stored change log. Continued local observation does NOT change it. A newer change log is published as a separate deployment with a different snapshot_id, and this URL then serves that newer one; the period fields always state exactly what is included.",
          "how_to_tell_which_snapshot": "Read snapshot_id, generated_at and period in this response before paying.",
          "static_catalogue_file": "The same values are published in product.json (built from this code, checked by selftest)."
        },
        "missing_data": {
          "meaning": "A missing cycle means the observation of that target in that cycle left no record. The collector writes a failed attempt to misses.jsonl instead of records.jsonl, so a failure and an absent run both appear here as a missing cycle. It does not mean the observed value was absent, zero or removed.",
          "how_to_read": "missing.intervals lists, per target, the interval, the number of missing cycles and the cycles immediately before and after. outages.intervals lists recorded failed attempts with their http status and error.",
          "coverage_caveat": "Observations are 15-minute samples, not a continuous record. A change that appeared and reverted between two cycles is not visible. Zero missing cycles does not mean zero blind spots."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/changes",
            "params": {
              "from": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the first observed cycle",
              "to": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the last observed cycle"
            },
            "body": "none",
            "note": "An unparsable or reversed from/to is rejected with 400 before any payment is requested. Payment is proven by the payment header, not by a request body."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "generated_at": "ISO-8601 UTC, when this change log was built",
              "snapshot_id": "string (snap-<16 hex>)",
              "first_observed_at": "ISO-8601 UTC, first observation inside the selected period",
              "last_observed_at": "ISO-8601 UTC, last observation inside the selected period",
              "cycles": "number of collector cycles inside the selected period",
              "period": "{ requested, default_period, cycles, observation_records, available, filter_rule }",
              "changes": "{ total, by_target, by_field, first_change_at, last_change_at, events[] } where each event is { observed_at, observed_at_jst, cycle, target_id, field, kind (changed|added|removed), from, to }",
              "targets": "[{ target_id, url, purpose, observations_in_period, cycles_present, cycles_missing, first/last_observed_at, last_success_at, last_failure_at, consecutive_failures, state }]",
              "outages": "{ total, intervals[{ target_id, started_at, ended_at, ongoing, failed_attempts, http_statuses, errors }] }",
              "missing": "{ total, intervals[{ target_id, from, to, missing_cycles, cycle_numbers, after, before }], cycle_gaps }",
              "first_seen": "[{ target_id, observed_at, cycle }] — targets first observed inside the period",
              "snapshot": "{ id, kind, generated_at, cycles, observation_records }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /changes response",
          "note": "The price is per deliverable period and does not depend on the size of the period. This is a separate constant from the other products, so either price can change alone; the 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "version_note": "V2 only, the same forms as the other products (x402Version 2, CAIP-2 network id, PAYMENT-SIGNATURE). A V1 client (x402Version 1, network \"base\", X-PAYMENT) can also buy from the same 402: the header stays V2 and the body is V1-compatible.",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "refunds": "Payments are settled on-chain and are not refunded automatically. If a paid request fails to return data, the transaction is the record of the claim.",
          "terms_of_use": "Data is provided as observed, without warranty of completeness or fitness for a particular purpose."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/changes?from=2026-10-12T00:00:00Z&to=2026-10-12T12:00:00Z'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/changes?from=...&to=...'   -> 200 with the change log JSON",
          "note": "The same payment header works with or without from/to; the period only selects what is reported. An x402 client library performs steps 2 and 3 automatically."
        },
        "listing_notes": {
          "resource_type": "Plain GET with optional query parameters. A catalogue can confirm the payment terms by calling the resource and reading the 402 PAYMENT-REQUIRED header; the parameters are optional, so listing it does not require preparing an input.",
          "query_params": "from/to are optional and default to the full observed period. They select the reported period only; they do not change the price or the snapshot.",
          "snapshot": "List it as a fixed snapshot sold one delivery at a time, not as a live or streaming feed. snapshot_id, generated_at and period in each response state exactly what is included.",
          "distinct_from_history": "/history serves the current facts per target; /changes serves the period diff. They are separate products with separate prices and must not be listed as duplicates of each other.",
          "claims": "Do not advertise completeness or real-time coverage. Observation is a 15-minute sample, a delivery does not change when local observation continues, and a missing cycle is reported as missing rather than filled in."
        }
      },
      {
        "product_id": "x402-catalog-change-bundle",
        "schema_version": 1,
        "title": "How many changes in the x402 catalog in this period?",
        "unit_definition": {
          "one_unit": "one observation target x one checked field x one detected change inside the selected period (the values before and after, at one observation time). One field change = one unit.",
          "triple": {
            "target": "one of the tracked observation targets (target_id)",
            "field": "one checked field of that target (field)",
            "period": "the from/to you pass; every unit is bound to exactly that period, so the same period always yields the same units"
          },
          "what_a_unit_contains": [
            "target_id",
            "field",
            "kind: changed | added (no previous value) | removed (no new value)",
            "from and to: the stored before/after values",
            "observed_at, observed_at_jst and the cycle number"
          ],
          "not_a_unit": [
            "a field that was observed across the period and did not change is not a delivered unit — it is counted in shortfall.unit_slots.observed_without_change (code no_change)",
            "a field whose target left no record in some cycle of the period is not a delivered unit — it is counted in shortfall.unit_slots.missing_observation (code missing_observation)",
            "no aggregation and no splitting: one compound change (a host map, a payment terms object) is one unit"
          ],
          "selection_order": "oldest first by observation time; order=newest reverses it. The same request returns the same units for the same snapshot.",
          "units_per_delivery": 100,
          "max_units_per_delivery": 100,
          "over_limit_behavior": "a request for more than 100 units is refused with HTTP 400 (units_limit_exceeded) before any payment; the answer is never silently truncated to the limit",
          "no_data_behavior": "a period that yields no change at all is still a delivery: units_delivered is 0 and shortfall.reasons says whether the fields were observed without a change or were not observed"
        },
        "what_it_is": "One delivery of up to 100 units counted against the definition below, taken from the same period diff as GET /changes and built by the same processing of the stored observation record. Each unit is one detected change of one field of one target inside the period you select. The response states units_requested, units_delivered, the unit definition and, when the period yields fewer units than asked, why — separating 'observed and did not change' from 'not observed at all'. No new collection and no upstream call.",
        "when_to_buy": "Buy the bundle when you want the period diff split into countable, labelled units in a single response — for unit-level accounting, for a fixed-size answer instead of an unbounded diff, or when you need each finding carried with its own field, before/after values, observation time and a per-unit statement of what could not be checked. Use the cheaper single-unit GET /changes when you only want the whole period diff as one document; the bundle costs more per delivery because the units are counted, capped and individually labelled.",
        "subject": {
          "what_is_delivered": [
            "units[]: one entry per delivered unit (target_id, field, kind, from, to, observed_at, observed_at_jst, cycle, unit_index)",
            "units_requested / units_delivered / units_unavailable: the exact count, never a silent truncation",
            "unit_slots: how many unit slots the period holds — detected changes, fields observed without a change, and fields whose target is missing cycles",
            "shortfall.reasons[]: per-code counts and meaning, with no_change and missing_observation kept apart",
            "the same period context as GET /changes: period, targets, outages, missing, snapshot_id"
          ],
          "not_included": [
            "no new observation and no upstream call: the stored record only",
            "no aggregation: one field change is one unit, and a compound change (a host map, a payment terms object) is also one unit",
            "no filling in: a missing cycle is reported as missing, never interpolated",
            "no third-party response bodies, no private keys, no buyer or payer identities"
          ],
          "source": "the same local observation store as GET /history and GET /changes",
          "unit_supply_in_this_snapshot": {
            "change_events": 6026,
            "target_field_pairs": 29,
            "observation_cycles": 787,
            "note": "change_events is the number of units this snapshot can deliver for the full period (one per detected field change). target_field_pairs is the number of (target, field) pairs the bundled snapshot knows; the rest of the unit slots are those pairs observed without a change."
          }
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/changes/bundle",
            "params": {
              "units": "optional integer 1..100; default 100. A larger value is refused with 400, not truncated.",
              "from": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the first observed cycle",
              "to": "optional ISO-8601 timestamp or date (YYYY-MM-DD); default: the last observed cycle",
              "order": "optional oldest (default) | newest — the order the units are delivered in"
            },
            "body": "none",
            "note": "Every parameter is checked before any payment: a bad period, a bad order, a missing or non-integer units value and a units value above the limit are answered with 400 and no PAYMENT-REQUIRED header. A period that contains no observation cycle at all is also refused with 400 (period_not_observed) instead of charging for nothing."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "units_requested": "number — what the request asked for (default 100)",
              "units_delivered": "number — how many units are in units[]",
              "units_unavailable": "number — units_requested - units_delivered",
              "unit_definition": "object — the definition every delivered unit follows",
              "units": "[{ unit_index, target_id, field, kind (changed|added|removed), from, to, observed_at, observed_at_jst, cycle }]",
              "shortfall": "{ units, unit_slots: { detected_change, observed_without_change, missing_observation, total }, reasons: [{ code, count, meaning }], note }",
              "order": "string — the delivery order that was applied",
              "period": "same as GET /changes",
              "targets": "same as GET /changes (per-target status, missing cycles)",
              "outages": "same as GET /changes",
              "missing": "same as GET /changes",
              "snapshot_id": "string (snap-<16 hex>)",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description (including the unit definition) plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "limits": {
          "max_units_per_delivery": 100,
          "default_units": 100,
          "over_limit": "400 units_limit_exceeded before payment — the response is never silently truncated to the limit",
          "empty_period": "400 period_not_observed before payment when the selected period contains no observation cycle"
        },
        "price": {
          "amount_atomic": "100000",
          "asset_decimals": 6,
          "amount_usd": 0.1,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /changes/bundle response (up to 100 units)",
          "price_relation": {
            "unit_price_usd": 0.02,
            "bundle_units": 100,
            "bundle_price_usd": 0.1,
            "note": "The bundle is 0.1 USD for up to 100 units in one response; the same unit bought one at a time through GET /changes is 0.02 USD."
          },
          "note": "The price is per response, not a function of units_delivered. A period with fewer detected changes than requested delivers fewer units and says so in shortfall; the count is always reported before the buyer reuses the data. This is a separate constant from the other products, so either price can change alone; the 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "version_note": "V2 only, the same forms as the other products (x402Version 2, CAIP-2 network id, PAYMENT-SIGNATURE). A V1 client (x402Version 1, network \"base\", X-PAYMENT) can also buy from the same 402: the header stays V2 and the body is V1-compatible.",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "refunds": "Payments are settled on-chain and are not refunded automatically. If a paid request fails to return data, the transaction is the record of the claim.",
          "terms_of_use": "Data is provided as observed, without warranty of completeness or fitness for a particular purpose."
        },
        "purchase_example": {
          "call": {
            "method": "GET",
            "url_template": "https://<worker-host>/changes/bundle?units=100",
            "headers": {
              "PAYMENT-SIGNATURE": "<base64 payment payload> (the first call without it returns 402)"
            }
          },
          "input": {
            "units": 100,
            "from": null,
            "to": null,
            "order": "oldest"
          },
          "output": {
            "status": 200,
            "content_type": "application/json",
            "shape": {
              "units_requested": 100,
              "units_delivered": "number (<= units_requested)",
              "units_unavailable": "units_requested - units_delivered",
              "unit_definition": "{ one_unit, triple, selection_order, max_units_per_delivery }",
              "units": "[{ unit_index, target_id, field, kind, from, to, observed_at, cycle }]",
              "shortfall": "{ units, unit_slots, reasons: [{ code, count, meaning }] }"
            }
          },
          "price": {
            "amount_atomic": "100000",
            "amount_usd": 0.1,
            "asset_symbol": "USDC",
            "network": "eip155:8453",
            "per": "one delivery of up to 100 units"
          },
          "steps": [
            "curl -i 'https://<worker-host>/changes/bundle?units=100'   -> 402, read the PAYMENT-REQUIRED header",
            "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
            "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/changes/bundle?units=100'   -> 200 with the units JSON"
          ],
          "note": "All parameters are optional; units defaults to 100. An x402 client library performs the signing and the retry automatically. Read units_delivered and shortfall before treating the delivery as complete."
        },
        "listing_notes": {
          "resource_type": "Plain GET with optional query parameters. A catalogue can confirm the payment terms by calling the resource and reading the 402 PAYMENT-REQUIRED header; the parameters are optional, so listing it does not require preparing an input.",
          "distinct_from_changes": "The 0.02 GET /changes and this 0.1 bundle use the same data, but they are not the same delivery: /changes returns the whole period diff as one unbounded document, the bundle returns counted and individually labelled units capped at 100 with an explicit shortfall account. Do not list them as duplicates.",
          "price": "The 402 response always carries BUNDLE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG. The bundle price: 0.1 USD for up to 100 units in one response.",
          "claims": "Do not advertise completeness or real-time coverage, and do not promise a fixed number of units: the number delivered depends on how many field changes the period actually contains, and the response states it."
        }
      },
      {
        "product_id": "x402-check-before-you-pay",
        "schema_version": 1,
        "title": "Send an x402 endpoint URL, get a verdict: alive, price, payTo, and what changed",
        "what_it_is": "Send one x402 endpoint URL, get a verdict: whether the resource answers right now, the exact payment challenge it serves (price, asset, network, payTo, timeout, the fields it requires), the shape of that challenge, and — once you have checked it before — what changed since the previous check and how often it answered. The target is fetched once, at request time, with no payment header, so the 402 it returns is the real one a buyer would face.",
        "when_to_buy": "Buy one check when you are about to spend on an x402 resource and cannot tell from a listing whether it is alive, what it really charges, or whether its terms moved since you integrated it. Typical cases: a discovery catalogue entry you have never called, a resource whose price or payTo you cached, a schema you depend on, or an endpoint that stopped answering. One call before the purchase replaces the manual probing, and the stored history turns the second and later checks into a change report for the same price.",
        "subject": {
          "what_is_observed": [
            "reachability: did the target answer over HTTP, with which status, how fast, and after which redirects",
            "the x402 payment challenge as served (PAYMENT-REQUIRED header, and the V1-shaped body when present): amount, asset, network, payTo, scheme, maxTimeoutSeconds, the required fields",
            "the resource metadata carried in the challenge: url, mimeType, serviceName, tags, and the declared input/output example when the Bazaar extension is present",
            "the shape of the challenge: its top-level fields and the fields of accepts[]",
            "your own check history for that URL: how many of the stored checks reached the target, how many saw a challenge, and the exact field-level changes since the previous check"
          ],
          "not_included": [
            "no payment is made to the target and no payment header is sent: only the free 402 challenge is read",
            "no response body of a paid delivery: what the target returns after payment is not observed by this call",
            "no delivery guarantee for a third party: this service records its own paid deliveries, and states that count; it has no delivery record for other sellers",
            "no private keys, no buyer identities"
          ],
          "source": "one live HTTP GET to the URL you pass, plus this service's own stored checks of that same URL",
          "live_call_semantics": "This is the one product here that leaves the Worker: the target is fetched at request time, once, with a 5 second cutoff, at most 3 redirects, and only to public hosts and the allowed ports. The probe happens after payment is verified, never before, so the endpoint cannot be used as a free prober."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/check",
            "params": {
              "url": "required for a delivery. The absolute http(s) URL of the x402 resource to check. A url that is not http(s), points inside a private or link-local network, uses a blocked port, embeds credentials or is over-long is refused with 400 before payment."
            },
            "body": "none",
            "note": "The URL is validated before any payment: a malformed, non-http(s), oversized, internal, blocked-port or credentialed url is answered with 400 and no PAYMENT-REQUIRED header, and nothing is fetched. The bare URL without a payment header still answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "target": "{ url, host, path } — the URL that was checked",
              "checked_at": "ISO-8601 UTC, when the probe ran",
              "alive": "boolean — true only when the target answered over HTTP; false with a reason when it did not",
              "reason": "null when the probe completed; timeout | unreachable when alive is false; blocked_redirect | too_many_redirects when the target answered but the probe stopped there",
              "probe": "{ method, requests_made, completed, http_status, latency_ms, final_url, redirects[], content_type, body_bytes, body_truncated, payment_header_sent, max_timeout_ms, max_redirects }",
              "payment_challenge": "{ present, source, x402_version, amount_atomic, amount_usd, asset, asset_symbol, network, pay_to, scheme, max_timeout_seconds, required_fields[], accepts_fields[], top_level_fields[], resource, declared_input, declared_output_example }",
              "response_shape": "{ kind, content_type, keys[] } — the shape of what the target actually returned",
              "history": "{ stored_checks, first_checked_at, previous_checked_at, uptime{reached, of, ratio}, challenges_seen, changes_since_previous[], baseline }",
              "delivery_evidence": "{ source, first_party, known_deliveries } — this service's own paid-delivery record, and only its own",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /check — one probe of one target URL, with its stored history",
          "note": "One payment buys one probe and the history this service has already stored for that same URL. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The check reports what was observed at that moment, as observed."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/check?url=https://x402-catalog-history.ai-business-surface.workers.dev/history'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/check?url=https://x402-catalog-history.ai-business-surface.workers.dev/history'   -> 200 with the check report",
          "note": "The URL is in the query string, so a catalogue can call it as a plain GET and read the 402 before buying. Call the same URL again later and history.changes_since_previous answers what moved."
        },
        "listing_notes": {
          "free_preview": "Free, before you pay: GET /check?url=<the URL>&preview=1 returns the stored summary only (last observed liveness, the price that observation read, and the change since the previous one). It makes no request to the target and asks for no payment. The paid call adds the live probe, the full 402 details, the response shape, the whole stored history and the delivery evidence.",
          "resource_type": "Plain GET with one required query parameter for the delivery. A catalogue can confirm the payment terms by calling the bare path and reading the 402 PAYMENT-REQUIRED header (the bare URL answers 402 as well), and can call it with a url to read a full challenge. GET (not POST) on purpose: a verify-only listing needs no first settlement.",
          "distinct_from_siblings": "The other three paid routes return what this service already observed. This one goes out to the URL you name, now: it is the only product here that answers 'is it alive at this moment, and what is it asking for'.",
          "price": "The 402 response always carries CHECK_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "Do not advertise a delivery guarantee for third-party sellers, and do not claim to observe what a paid delivery returned. The report states exactly what was called and what came back."
        }
      },
      {
        "product_id": "x402-check-batch",
        "schema_version": 1,
        "title": "Which of these x402 endpoints are alive, and what do they charge?",
        "what_it_is": "Send 1 to 10 x402 endpoint URLs in one call and get one line per URL: whether it answers right now, its HTTP status, whether it serves a payment challenge, and what it charges (price in atomic units, asset, network, payTo). For every URL this service has checked before, the line also carries what changed since the previous stored check. Each URL is fetched exactly once, at request time, with no payment header, after the payment is verified. A failed target is reported in its own line and does not fail the other URLs.",
        "when_to_buy": "Buy one call when an agent is about to route work across several paid endpoints and needs the same three facts for all of them before spending: alive, price, payTo. Calling /check once per URL costs one round trip and one payment each; this route answers the whole list for 0.10 USDC. It is the same probe and the same stored history as /check, so the verdict for one URL does not change because it arrived in a batch.",
        "subject": {
          "what_is_observed": [
            "reachability per URL: did it answer over HTTP, with which status",
            "whether the answer is an x402 payment challenge (present or not)",
            "the price, asset, network and payTo of the challenge that was served",
            "this service's own stored history for that URL: the field-level changes since the previous stored check"
          ],
          "not_included": [
            "no payment is made to any target and no payment header is sent: only the free 402 challenge is read",
            "no response body of a paid delivery and no guarantee for a third-party seller",
            "no private keys, no buyer identities"
          ],
          "source": "one live HTTP GET per URL, plus this service's own stored checks of the same URLs",
          "live_call_semantics": "The batch leaves the Worker only after payment: each URL is fetched once, with a 5 second cutoff, at most 3 redirects, and only to public hosts and the allowed ports. At most 10 URLs are accepted; a longer or empty list, an invalid URL, a duplicate URL, an internal host or a credentialed URL is refused with 400 before any payment and before any fetch."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/check/batch",
            "params": {
              "urls": "required. 1 to 10 comma-separated absolute http(s) URLs of x402 resources. An empty item, a duplicate URL, a non-http(s) URL, an internal/private/link-local host, a blocked port, embedded credentials or an over-long URL is refused with 400 before payment."
            },
            "body": "none",
            "note": "The bare path without urls still answers 402 when unpaid, so a catalogue can confirm this is an x402 resource by calling it once. With a payment header and no urls it answers 400. `?urls=` (empty) and more than 10 URLs are 400 before payment. Repeated calls are rate limited before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — x402-check-batch",
              "schema_version": "number",
              "generated_at": "ISO-8601 UTC, when the probes ran",
              "results": "[{url, alive, http_status, payment_challenge_present, price, asset, network, payTo, changed_since_previous, error}] — one entry per input URL, in input order; each URL is fetched once",
              "results[].price": "amount in atomic units of results[].asset (USDC has 6 decimals), as served in the 402; null when the target served no readable payment challenge",
              "results[].changed_since_previous": "the same diffCheckRecords output as /check: [{field, from, to}] between the previous stored check of this URL and this one; [] on the first stored check or when nothing changed",
              "results[].error": "null when the target was reached; a reason such as timeout, unreachable, blocked_redirect or too_many_redirects otherwise",
              "errors": "[] — per-URL failures are reported in results[].error and never fail the batch"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "100000",
          "asset_decimals": 6,
          "amount_usd": 0.1,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /check/batch — one probe of each of up to 10 target URLs, with their stored history",
          "note": "One payment buys the whole list, up to the stated maximum. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The batch reports what was observed at that moment, as observed."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/check/batch?urls=https%3A%2F%2Fx402-catalog-history.ai-business-surface.workers.dev%2Fhistory,https%3A%2F%2Fexample.com%2Fpaid'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/check/batch?urls=...'   -> 200 with one result per URL",
          "note": "The URLs are in the query string, so a catalogue can call the bare path as a plain GET and read the 402 before buying. Call the same URLs again later and changed_since_previous answers what moved."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter for the delivery. The bare path answers 402, so a verify-only listing needs no first settlement.",
          "distinct_from_siblings": "GET /check reads one URL's liveness, price and history. This route applies the same probe and the same stored check records to up to 10 URLs in one payment, which is the difference.",
          "failure_answers": "400 (missing_urls, empty_urls, invalid_urls, too_many_urls, invalid_url, blocked_target, blocked_port, credentials_not_allowed, duplicate_url) before anything is fetched; 200 with a per-URL error for an unreachable target; 200 with the rest of the results even when one target fails.",
          "price": "The 402 response always carries CHECK_BATCH_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "Do not advertise a delivery guarantee for third-party sellers and do not present a failed target as cheap. The result states exactly which URL answered and with what challenge."
        }
      },
      {
        "product_id": "x402-check-watch",
        "schema_version": 1,
        "title": "Did this x402 endpoint change since my last check?",
        "what_it_is": "Send one x402 endpoint URL and, optionally, the ISO-8601 time of your last check. Get the target probed once right now (alive, HTTP status, price, asset, network, payTo, declared timeout), the field-level changes this service recorded since that time, and the range of observations it has stored for the URL: how many checks it holds, how many reached the target, how many did not, and when the URL was last seen. When `since` is omitted, the most recent stored observation is the baseline. When nothing is stored, the statistics are 0 and last_seen_at is null, with a basis that says so: nothing is inferred.",
        "when_to_buy": "Buy when you already checked this x402 endpoint once and need to know what moved before you call it again: a price or payTo change, a different asset or network, a shorter timeout, or the endpoint not answering now. /check answers the current probe and the difference from the immediately previous check; this route lets you name the time you last looked and also returns how much stored evidence exists behind the answer. The target is still fetched exactly once, after payment, with no payment header.",
        "subject": {
          "what_is_observed": [
            "the current probe: did the target answer over HTTP, with which status, and what 402 terms it serves (price in atomic units, asset, network, payTo, maxTimeoutSeconds)",
            "the field-level changes between the stored observations in the window and the current probe, using the same diff as /check",
            "the range of this service's stored observations of that URL: stored_checks, answered, failed and last_seen_at"
          ],
          "not_included": [
            "no payment is made to the target and no payment header is sent: only the free challenge is read",
            "no response body of a paid delivery and no guarantee for a third-party seller",
            "no claim about what happened between two stored observations: a change is reported at the observation that first recorded it",
            "no private keys, no buyer identities"
          ],
          "source": "one live HTTP GET to the URL you pass, plus this service's own stored checks of that same URL",
          "live_call_semantics": "The target is fetched at request time, once, with a 5 second cutoff, at most 3 redirects, and only to public hosts and allowed ports. The probe happens after payment is verified. An invalid url or an invalid since is refused with 400 before payment and before any fetch."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/check/watch",
            "params": {
              "url": "required for a delivery. Absolute http(s) URL of the x402 endpoint. A non-http(s) URL, an internal/private/link-local host, a blocked port, embedded credentials or an over-long URL is refused with 400 before payment.",
              "since": "optional. ISO-8601 date-time with a timezone, e.g. 2026-10-22T00:00:00Z. Refused with 400 when it is not a valid ISO-8601 date-time; an empty value is also 400. Omit it to compare with the most recent stored observation."
            },
            "body": "none",
            "note": "The bare path without url still answers 402 when unpaid, so a catalogue can confirm this is an x402 resource with one call. With a payment header and no url it answers 400. Repeated calls are rate limited with 429 before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — x402-check-watch",
              "schema_version": "number",
              "check_id": "sha256 of the normalized target URL; the same id /check uses",
              "target": "{ url, host, path }",
              "checked_at": "ISO-8601 UTC, when this probe ran",
              "since": "ISO-8601 UTC, normalized; null when the request omitted it",
              "since_provided": "boolean",
              "current": "{ alive, http_status, price, asset, network, payTo, timeout, reason, requests_made, latency_ms, payment_header_sent } — price is in atomic units of asset; timeout is the target's declared maxTimeoutSeconds; null when no readable challenge",
              "changes": "[{at, from_at, field, from, to}] — field-level differences between consecutive stored observations ending with the current probe; [] when there is nothing to compare or nothing changed. at is the observation that first recorded the new value; from_at is the one it is compared with",
              "changes_basis": "string — which stored observations the comparison used, or why it is empty",
              "history_stats": "{ stored_checks, answered, failed, last_seen_at } — counted only from this service's stored checks of this URL before this delivery",
              "observation_scope": "{ what_this_is, basis, first_stored_at, last_stored_at, observations_after_since, retention_days, changes_are_between_stored_observations }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "80000",
          "asset_decimals": 6,
          "amount_usd": 0.08,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /check/watch — one probe of one target URL, with the stored history in the window you name",
          "note": "One payment buys one probe and the stored observations this service already holds for that URL. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The report describes what was observed and what this service stored, as observed."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/check/watch?url=https://x402-catalog-history.ai-business-surface.workers.dev/history&since=2026-10-22T00%3A00%3A00Z'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/check/watch?url=...&since=2026-10-22T00:00:00Z'   -> 200 with the current probe, changes and stored-observation range",
          "note": "Both parameters are in the query string, so a catalogue can call the bare path and read the 402 before buying. The same check:<id> history feeds /check and /check/watch: a /check you bought earlier is part of the baseline you can name with since."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (url) and one optional one (since). The bare path answers 402, so a verify-only listing needs no first settlement.",
          "distinct_from_siblings": "/check returns the current probe and the difference from the immediately previous stored check. This route returns the current probe, the changes in a window you name with since, and how many observations this service stored for that URL. /watch keeps its own registration and only diffs payment conditions; this route reads the shared /check history and also reports liveness and the observation range. No new storage is created.",
          "failure_answers": "400 (missing_url, invalid_url, unsupported_scheme, blocked_target, blocked_port, credentials_not_allowed, url_too_long, invalid_since) before anything is fetched; 429 before payment when the rate limit is hit; 200 with alive:false and a reason when the target itself did not answer.",
          "price": "The 402 response always carries CHECK_WATCH_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "Do not present the stored count as a measure of availability: it is the range of this service's stored observations, and a gap between observations is not observed. The response carries the basis and nulls instead of guesses when nothing is stored."
        }
      },
      {
        "product_id": "x402-402-compat-report",
        "schema_version": 1,
        "title": "Will your client read this 402? One URL in, one verdict out",
        "what_it_is": "One GET with the URL of an x402 resource returns the compatibility verdict for the 402 it actually serves: whether an x402 v2 client can pay it (the PAYMENT-REQUIRED header, CAIP-2 network, amount, asset, payTo, extra), whether a v1 client can pay it (the JSON body, string network name, maxAmountRequired), and exactly which required fields are missing from the accepts[] either side reads. Both verdicts come from the response the target sends a buyer, read once at request time with no payment header.",
        "when_to_buy": "Buy one report when a purchase failed with a parse or Zod error and you cannot tell whether the seller's 402 or your client is at fault, when you are about to integrate a resource and want to know which client generations it supports, or when a seller moved their challenge format and your integration stopped. Typical case: the endpoint answers 402 and looks healthy, yet your client never reaches the signature step.",
        "subject": {
          "what_is_observed": [
            "the PAYMENT-REQUIRED header as served: present or absent, whether it decodes as base64 JSON, its x402Version",
            "the v2 read: accepts[0] scheme, network (CAIP-2 or not), amount, asset, payTo, maxTimeoutSeconds, extra, and which of the required fields are missing",
            "the v1 read: the JSON body's accepts[0] scheme, network name, maxAmountRequired, asset, payTo, maxTimeoutSeconds, and which of the required fields are missing",
            "the blocking reasons that stop both generations (no 402, undecodable header, no readable accepts[0], non-positive amount, invalid payTo) and the warnings a single generation hits",
            "the probe facts behind the reading: HTTP status, latency, redirects, bytes, and the timeout and redirect limits that applied"
          ],
          "not_included": [
            "no payment is made to the target and no payment header is sent: only the free 402 challenge is read",
            "no response body of a paid delivery: what the target returns after payment is not observed",
            "no private keys, no buyer identities"
          ],
          "source": "one live HTTP GET to the URL you pass",
          "live_call_semantics": "The target is fetched at request time, once, with a 5 second cutoff, at most 3 redirects, and only to public hosts and the allowed ports. The probe happens after payment is verified, never before."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/compat-check",
            "params": {
              "url": "required for a delivery. The absolute http(s) URL of the x402 resource whose 402 to judge. A url that is not http(s), points inside a private or link-local network, uses a blocked port, embeds credentials or is over-long is refused with 400 before payment."
            },
            "body": "none",
            "note": "The bare path without a payment header still answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "target": "{ url, host, path } — the URL that was judged",
              "checked_at": "ISO-8601 UTC, when the probe ran",
              "alive": "boolean — true only when the target answered over HTTP",
              "reason": "null when the probe completed; timeout | unreachable | blocked_redirect | too_many_redirects otherwise",
              "probe": "{ method, requests_made, completed, http_status, latency_ms, final_url, redirects[], content_type, body_bytes, body_truncated, payment_header_sent, max_timeout_ms, max_redirects }",
              "compat": "{ http_status, is_x402_challenge, header{payment_required_present,decodes_as_base64_json,x402_version}, v2{...}, v1{...}, verdict }",
              "verdict": "{ buyable_with_v2_client, buyable_with_v1_client, one_line, blocking[], warnings[] }",
              "v2": "{ readable, x402_version, missing_required[], accepts_fields[], top_level_fields[], scheme, network, network_form, amount_atomic, amount_usd, asset, asset_symbol, pay_to, max_timeout_seconds, resource_url }",
              "v1": "{ same fields as v2, read from the response body }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /compat-check — one reading of one target's 402",
          "note": "One payment buys one reading of the target's 402 and the verdict on it. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The report states what the target served at that moment, as served."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/compat-check?url=https://x402-catalog-history.ai-business-surface.workers.dev/history'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/compat-check?url=https://x402-catalog-history.ai-business-surface.workers.dev/history'   -> 200 with the compatibility report",
          "note": "The URL is in the query string, so a catalogue can call it as a plain GET and read the 402 before buying."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter for the delivery. The bare path answers 402 as well, so a verify-only listing needs no first settlement. GET (not POST) on purpose.",
          "distinct_from_siblings": "The other routes answer what this service observed or what a resource asks for. This one answers whether the 402 a resource serves is readable at all, and by which client generation.",
          "price": "The 402 response always carries COMPAT_CHECK_PRICE_ATOMIC (0.02 USDC, the measured market p90). product.json and this catalogue come from the same CONFIG.",
          "claims": "Do not claim a delivery guarantee for third-party sellers. The report states the fields that were read and the fields that were missing."
        }
      },
      {
        "product_id": "x402-seller-playbook",
        "schema_version": 1,
        "kind": "digital_good",
        "title": "Ship a Paid x402 API on a Cloudflare Worker — seller's playbook (USDC on Base)",
        "what_it_is": "The seller's playbook for a live x402 endpoint, written from operating one: the exact 402 challenge we serve (v2 header and v1 body in the same response), what the facilitator's /verify actually checks, the two-call purchase that decides whether a settled payment becomes a delivery, delivery evidence kept in three independent places, how to get listed where agent buyers search, and a plain-USDC page for human buyers who will never read a 402. Every number in it was read from a real response. Delivered as the full text plus a PDF, with a signed, expiring download link — and the receiving side of it is USDC on Base with no account, no KYC and no third party between you and the buyer.",
        "when_to_buy": "Buy it when you are about to sell something over x402 and do not want to learn the failure modes with your own money: a buyer whose client throws a schema error on your 402, a signature your facilitator rejects, a payment that settles on-chain and never turns into a delivery, a resource that no catalogue picks up. The free sample at /guide/sample carries the whole protocol; the paid edition carries the operating decisions around it.",
        "subject": {
          "inside": [
            "the 402 challenge field by field, with the values that make a wallet refuse to sign",
            "the facilitator flow: /verify, /settle, the balance rule that rejects a valid signature, and what to tell a buyer who hits it",
            "EIP-3009 in practice: what the buyer signs, why they need no gas, and which field identifies the payer",
            "what a paid 200 must contain so a buyer can prove the purchase back to you",
            "delivery evidence in three independent records, including the write-failure line that stops a real delivery looking like a non-event",
            "catalogue listing: the bazaar extension, why a bare path must answer 402, and how to write the one description a buyer reads",
            "serving v1 and v2 clients from one 402, with the combination that pays both",
            "the human path: a plain page, a receiving address, an on-chain confirmation and a signed expiring link — no Stripe, PayPal or bank",
            "testing without spending, and the trap table: ten failures with symptom, cause and fix"
          ],
          "not_included": [
            "no private keys, no wallet seed, no custody of buyer funds",
            "no guarantee of sales or of listing acceptance by any third-party catalogue",
            "no custom development or support contract: this is the document and the PDF"
          ],
          "formats": {
            "text": "the full playbook as Markdown in the JSON delivery (readable as-is, easy to keep in a repo)",
            "pdf": "187339 bytes, A4, generated from the same source as the text"
          }
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/guide",
            "params": {
              "format": "optional. json (default) returns the full text; pdf returns the PDF bytes. Payment terms are identical."
            },
            "body": "none",
            "note": "This is not an x402 paid route. GET /guide returns purchase instructions only; the full text is delivered after a plain USDC transfer on Base is verified at /guide/claim. The human page at /guide/buy quotes the same price."
          },
          "output": {
            "content_type": "application/json; charset=utf-8 (application/pdf with format=pdf)",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "title": "string",
              "version": "string — the edition of the text",
              "updated_at": "ISO-8601 UTC",
              "sections": "string[] — the chapter list",
              "playbook_markdown": "string — the full text, the deliverable",
              "download": "{ url, format, expires_at, pdf_bytes } — a signed, expiring link to the same text as PDF",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/guide/sample",
            "returns": "the first third of the playbook (sections 1-5) plus what the paid edition adds"
          },
          "human_page": {
            "method": "GET",
            "path": "/guide/buy",
            "returns": "price, contents, free sample, the receiving address and the send-and-claim steps"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "3000000",
          "asset_decimals": 6,
          "amount_usd": 3,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one delivery — the full playbook as text, plus the PDF download link",
          "note": "One payment buys the whole playbook. The 402 response always carries the current amount, and the human page quotes the same number."
        },
        "payment": {
          "protocol": "claim",
          "sale_method": "claim",
          "note": "Since 2026-10-20 this title is not sold over x402 (REVENUE-PLAN §34). Pay on Base and report the transaction hash at /guide/claim.",
          "asset_transfer_method": "usdc-transfer",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "human_path": "Send the price in USDC on Base to the address above and report the transaction hash at /guide/claim; the Worker reads the transaction on-chain and returns a signed, expiring download link.",
          "terms_of_use": "One purchase, one buyer, unlimited re-download until the link expires."
        },
        "purchase_example": {
          "step_1": "open https://<worker-host>/guide/buy and read the price and the receiving address",
          "step_2": "send 3 USDC on Base to 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "step_3": "POST {\"tx\":\"0x…\"} to https://<worker-host>/guide/claim -> 200 with a signed, expiring download link",
          "note": "GET /guide only describes this purchase. It is not an x402 paid route and never returns 402."
        },
        "listing_notes": {
          "resource_type": "Plain GET, no parameters required for the purchase instructions; claim-based, not x402.",
          "distinct_from_siblings": "The other products are observations and checks produced by this Worker. This one is a written playbook: it does not depend on our snapshot data at all, and it is the only item here that a human buyer can also buy with a plain USDC transfer.",
          "price": "The human-facing price is GUIDE_PRICE_ATOMIC (3.00 USDC). This route is not part of the x402 paid-route list, so the 0.10 x402 ceiling does not apply.",
          "claims": "Do not claim sales figures, listing acceptances or third-party endorsements. The guide states what was measured on this endpoint and nothing else."
        }
      },
      {
        "product_id": "x402-crosschain-gas",
        "schema_version": 1,
        "title": "Live gas price for five chains in one GET (gwei, base fee, priority fee)",
        "why_i_bought": "I bought this because pricing a transaction should not cost five explorer tabs: I open an explorer for Base, another for Ethereum, copy two numbers by hand, and the numbers are already stale by the time I use them. One call that returns the gas price, the base fee and the priority fee for every chain I care about, with the block it came from and the RPC that answered, replaces that entire loop — and because it is one payment for one response, an agent can call it inside a transaction-pricing step without an account or an API key.",
        "what_it_is": "One GET returns the gas price each chain is asking right now. For every chain you name (base, eth, arbitrum, optimism, polygon) the delivery carries the current gas price in gwei and in raw wei, the latest block's base fee, the priority fee a 50th-percentile transaction actually paid over the last five blocks, the next block's base fee under the EIP-1559 formula, the block number and timestamp those numbers came from, and the public RPC host that answered. Requested chains no public RPC answered for appear in chains_unavailable[] with the reason; nothing is filled in with a guess.",
        "when_to_buy": "Buy one call when you are about to send a transaction and need the fee now, when you are comparing what the same transaction costs on several chains, when a bot needs a priority-fee figure before it submits, or when you are monitoring whether fees moved. Typical cases: choosing between Base and Ethereum for one transfer, setting maxFeePerGas and maxPriorityFeePerGas without opening an explorer, or an agent that must state the fee it assumed before it acts.",
        "subject": {
          "what_is_observed": [
            "eth_gasPrice for each requested chain (the price the node currently suggests)",
            "the latest block's baseFeePerGas, together with its number, timestamp, gasUsed, gasLimit and transaction count",
            "the 50th-percentile priority fee (reward) actually paid across the last 5 blocks, from eth_feeHistory",
            "the node's own eth_maxPriorityFeePerGas suggestion, reported next to (never instead of) the measured reward",
            "the next block's base fee under the EIP-1559 formula from the latest block's gasUsed/gasLimit (a protocol rule, not a prediction), and the chainId the chain reports",
            "which public RPC host answered, and which hosts were tried and failed"
          ],
          "not_included": [
            "no estimate or interpolation: every number is what an RPC returned at the stated time, and an unmeasurable figure is null",
            "no transaction is sent, no wallet is used, no key is handled",
            "no per-contract gas limits and no total-cost estimate: this is the price per gas unit, not the cost of your call",
            "no historical gas series and no price prediction"
          ],
          "source": "public JSON-RPC endpoints (no key): eth_gasPrice / eth_getBlockByNumber / eth_feeHistory / eth_maxPriorityFeePerGas / eth_chainId",
          "live_call_semantics": "This product leaves the Worker: one block's worth of RPC reads per requested chain, at request time, after payment is verified. Each RPC call has a 4 second cutoff and the endpoints are tried in order, so one dead public RPC does not fail the delivery. Results are cached for 15 seconds per chain; every value carries the fetched_at of the measurement and a cache_age_ms, so a cached number is never presented as new."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/gas",
            "params": {
              "chains": "optional. Comma-separated chain names, e.g. chains=base,eth. Supported: base,eth,arbitrum,optimism,polygon. Omit it to get all of them. Aliases (ethereum, arb, op, matic) are accepted. An unknown chain name is refused with 400 before any payment and before any RPC call."
            },
            "body": "none",
            "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. No payment is verified and no RPC is called until the input is valid."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "requested_at": "ISO-8601 UTC, when this delivery was assembled",
              "chains_requested": "string[] — the chains this call asked for, in order",
              "chains_delivered": "string[] — the chains an RPC answered for",
              "gas": "array, one entry per delivered chain: { chain, label, chain_id, chain_id_hex, gas_price_wei, gas_price_gwei, base_fee_wei, base_fee_gwei, priority_fee_wei, priority_fee_gwei, priority_fee_basis, node_priority_fee_wei, node_priority_fee_gwei, next_block_base_fee_gwei, block:{number,timestamp,age_seconds,gas_used,gas_limit,utilization,transactions}, source_rpc, fetched_at, cached, cache_age_ms }",
              "chains_unavailable": "array of { chain, error, rpc_trace[] } — requested chains no RPC answered for (the delivery is still 200 when at least one chain answered; 503 when none did)",
              "cache": "{ ttl_ms, hits, misses }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /gas — one delivery covering every chain you named (up to 5)",
          "note": "Priced at the bottom of the observed band for small utility calls ($0.001 to $0.014) because one call returns one small, immediately perishable fact. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The delivery reports what the public RPCs returned at the stated times, as returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/gas?chains=base,eth'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/gas?chains=base,eth'   -> 200 with one gas entry per chain",
          "note": "The chains are in the query string, so a catalogue or a scheduler can call it as a plain GET. Call it again after 15 seconds to force a fresh read; inside the window you get the cached measurement with its age."
        },
        "listing_notes": {
          "resource_type": "Plain GET, no required parameter (chains is optional), so a read-only probe that gets a 402 is enough for a catalogue to list it. GET on purpose: no first settlement is needed to publish the terms.",
          "distinct_from_siblings": "Every other product here returns what this service already observed about the x402 catalogue. This one returns live chain state that no other route answers: 'what does gas cost on these chains right now'.",
          "price": "The 402 response always carries GAS_PRICE_ATOMIC; product.json and this catalogue come from the same CONFIG.",
          "claims": "State the measurement time and the RPC that answered for every number, and say plainly that gas prices change; do not promise a fee, a cost estimate or a prediction."
        }
      },
      {
        "product_id": "x402-gas-plan",
        "schema_version": 1,
        "title": "What will this transaction cost on each chain right now?",
        "why_i_bought": "I bought this because a gas price is not a transaction cost. I still have to multiply by the gas limit, decide what base fee the next block will charge, add a priority fee, and then pick a maxFeePerGas that will not get the transaction dropped. Doing that by hand across five chains is where I make mistakes. One call that takes my gas limit and returns the next-block base fee, the measured priority fee, the caps to sign and the total in wei and ETH lets an agent price one transaction without a spreadsheet — and it is one payment for one answer, no account and no key.",
        "what_it_is": "Name the chains and the gas limit of one transaction. For each chain you get the latest block's base fee, the next block's base fee under the EIP-1559 formula, the 50th-percentile priority fee actually paid over the last five blocks, a max fee per gas and max priority fee per gas you can sign, and the total fee for your gas limit in wei and ETH — with the block number, block time and the public RPC host that answered. A chain whose base fee, next base fee or measured priority fee could not be read is listed in unavailable[] with the reason; no value is filled in with a guess. No USDC or JPY conversion is performed.",
        "when_to_buy": "Buy one call when you are about to send one transaction and need the fee rather than the price per gas unit: setting maxFeePerGas and maxPriorityFeePerGas for one transfer or contract call, comparing the same gas limit across chains, or checking whether a planned transaction still fits a budget after fees moved. /gas answers 'what does one unit of gas cost'; this route answers 'what does this transaction cost at my gas limit, and what caps do I sign'.",
        "subject": {
          "what_is_observed": [
            "the latest block's baseFeePerGas, gasUsed, gasLimit, number and timestamp for each requested chain",
            "the 50th-percentile priority fee (reward) actually paid across the last 5 blocks, from eth_feeHistory",
            "the next block's base fee under the EIP-1559 formula from the latest block's gasUsed/gasLimit (a protocol rule, not a prediction)",
            "the node's own eth_maxPriorityFeePerGas suggestion, used only to raise the max priority fee and always reported next to the measured p50",
            "max_fee_per_gas = 2 × next base fee + max priority fee, in wei and then gwei; the doubling is a stated planning headroom, not a prediction",
            "total_fee_wei = gas_limit × (next base fee + priority fee p50); total_fee_eth = total_fee_wei / 1e18",
            "the block number, block time and the public RPC host that answered"
          ],
          "not_included": [
            "no USDC or JPY conversion and no exchange rate: fees are reported only in wei and ETH",
            "no estimate of gas used: gas_limit is the number you pass (default 21000, range 1 to 30000000)",
            "no transaction is sent, no wallet is used, no key is handled",
            "no prediction of future fees: next_base_fee_gwei follows the EIP-1559 rule and max_fee_per_gas_gwei is a stated headroom rule",
            "no value for a chain whose base fee, next base fee or measured priority fee p50 could not be read; it is listed in unavailable[] with the reason"
          ],
          "source": "public JSON-RPC endpoints (no key): eth_getBlockByNumber / eth_feeHistory / eth_maxPriorityFeePerGas / eth_chainId, reusing the same chain list, fallback order and 15-second cache as /gas",
          "live_call_semantics": "This product leaves the Worker: one block's worth of RPC reads per requested chain, at request time, after payment is verified. Each RPC call has a 4 second cutoff and the endpoints are tried in order, so one dead public RPC does not fail the delivery. Results are cached for 15 seconds per chain and shared with /gas; every value carries the fetched_at of the measurement and a cache_age_ms, so a cached number is never presented as new. An unknown chain or an invalid gas_limit is refused with 400 before payment and before any RPC call."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/gas/plan",
            "params": {
              "chains": "optional. Comma-separated chain names, e.g. chains=base,eth. Supported: base,eth,arbitrum,optimism,polygon. Omit it to get all of them. Aliases (ethereum, arb, op, matic) are accepted. An unknown chain name is refused with 400 before any payment and before any RPC call.",
              "gas_limit": "optional integer, default 21000, range 1 to 30000000. A non-integer, an empty value or an out-of-range value is refused with 400 before any payment and before any RPC call."
            },
            "body": "none",
            "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. No payment is verified and no RPC is called until chains and gas_limit are valid."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — x402-gas-plan",
              "schema_version": "number",
              "requested_at": "ISO-8601 UTC, when this delivery was assembled",
              "gas_limit": "number — the gas limit this plan uses (default 21000)",
              "gas_limit_specified": "boolean — false when the request omitted gas_limit",
              "chains_requested": "string[] — the chains this call asked for, in order",
              "chains_delivered": "string[] — the chains a plan could be computed for",
              "chains": "array, one entry per delivered chain: { chain, base_fee_gwei, next_base_fee_gwei, priority_fee_p50_gwei, max_fee_per_gas_gwei, max_priority_fee_per_gas_gwei, gas_limit, total_fee_wei, total_fee_eth, block_number, block_time, rpc_host, fetched_at, cached, cache_age_ms, priority_fee_basis }",
              "unavailable": "array of { chain, reason, rpc_trace[] } — requested chains whose plan could not be computed (no_rpc_answered / base_fee_unavailable / next_base_fee_unavailable / priority_fee_p50_unavailable). The delivery is still 200 when at least one chain was computed; 503 when none was.",
              "cost_basis": "{ total_fee_wei, total_fee_eth, max_fee_per_gas, max_priority_fee_per_gas, no_conversion, unavailable } — the exact rules used",
              "cache": "{ ttl_ms, hits, misses }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /gas/plan — one fee plan per chain you named (up to 5) at the gas limit you set",
          "note": "0.005 USDC, five times the /gas price: /gas returns the price per gas unit, this returns the cost of one transaction at your gas limit plus the caps to sign, in wei and ETH. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The plan reports what the public RPCs returned at the stated times and applies the stated formulas, as returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/gas/plan?chains=base,eth&gas_limit=21000'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/gas/plan?chains=base,eth&gas_limit=21000'   -> 200 with one fee plan per chain",
          "note": "Both parameters are in the query string, so a catalogue or a scheduler can call it as a plain GET. Call it again after 15 seconds to force a fresh read; inside the window you get the cached measurement with its age."
        },
        "listing_notes": {
          "resource_type": "Plain GET, no required parameter (chains and gas_limit are optional), so a read-only probe that gets a 402 is enough for a catalogue to list it. GET on purpose: no first settlement is needed to publish the terms.",
          "distinct_from_siblings": "/gas returns the price per gas unit for each chain. This route multiplies by the gas_limit you name, uses the EIP-1559 next-block base fee and the measured priority fee p50, and returns the caps to sign plus the total in wei and ETH. It reuses /gas's RPC reads and cache; it does not fetch a second source and it does not convert to USDC or JPY.",
          "failure_answers": "400 (invalid_chains, unknown_chains, too_many_chains, invalid_gas_limit) before anything is called; 200 with unavailable[] when some chains could not be read; 503 when no chain could be read.",
          "price": "The 402 response always carries GAS_PLAN_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "State the formulas (total = gas_limit × (next base fee + p50), max fee = 2 × next base fee + max priority fee) and say that the doubling is a planning headroom, not a prediction. Never present a fiat conversion: this route reports wei and ETH only."
        }
      },
      {
        "product_id": "x402-gas-tx",
        "schema_version": 1,
        "title": "What did this transaction actually cost?",
        "why_i_bought": "I bought this because after a transaction is sent, the number I need is no longer an estimate: it is the gas the receipt says was used, at the effective gas price the chain charged, and whether the transaction succeeded or reverted. Reading that for one hash should not mean opening an explorer by hand, and a transaction that is still pending or not found yet is not an error — it is just not settled. One call that names the chain and the hash and returns the receipt's outcome and fee in wei and ETH lets an agent close the loop after sending.",
        "what_it_is": "Name one chain and one 0x-prefixed 64-hex transaction hash. One GET returns whether the transaction was found, its status (success, reverted, pending or null), the block number, the gas used, the effective gas price in wei, the fee in wei and ETH, the from and to addresses, the time checked and the public RPC host that answered. fee_wei = gas_used × effective gas price; fee_eth = fee_wei / 1e18. A pending transaction, or one no node has seen yet, is answered with HTTP 200 and found=false plus a reason — it is not a 404 and not called a failure. Only when no public RPC answers at all is the response 503. No transaction is sent, no key is handled and nothing is stored.",
        "when_to_buy": "Buy one call after sending one transaction when you need the actual cost rather than an estimate: confirming that it succeeded or reverted, recording the fee that was charged in wei and ETH, reconciling a batch of transactions, or checking a hash that a user pasted. /gas answers the current price per gas unit; /gas/plan prices a transaction before it is sent; this route reports what the receipt says after it was mined.",
        "subject": {
          "what_is_observed": [
            "eth_getTransactionReceipt for the exact hash on the named chain: status, blockNumber, gasUsed, effectiveGasPrice, from and to",
            "eth_getTransactionByHash, used only to tell a pending transaction (no receipt yet) from a hash no node has seen (not found)",
            "eth_chainId, used to reject an RPC whose chain does not match the chain you named",
            "fee_wei = gasUsed × effectiveGasPrice; fee_eth = fee_wei / 1e18",
            "checked_at (when this delivery was assembled) and rpc_host (the public RPC that answered, host only)"
          ],
          "not_included": [
            "no transaction is sent, no wallet is used and no key is handled",
            "no estimate: every number comes from the receipt, and a field the receipt does not carry is null rather than filled in",
            "no L1 data-fee breakdown: on OP Stack chains the L1 data fee is not part of effectiveGasPrice, so fee_wei is the L2 execution fee",
            "no 404 for pending or not-found transactions: both are 200 with found=false and a reason",
            "no storage: the receipt is read per request and not saved"
          ],
          "source": "public JSON-RPC endpoints (no key): eth_getTransactionReceipt / eth_getTransactionByHash / eth_chainId, reusing the same chain list, fallback order, 4 second cutoff and chainId check as /gas",
          "live_call_semantics": "This product leaves the Worker: after payment is verified it reads the receipt on the named chain, trying the same public RPCs in the same order as /gas with a 4 second cutoff each. A receipt found on the first answering node is final and stops the search; a null answer (pending or not found) is checked against the remaining RPCs so one stale node cannot turn a mined transaction into not_found. If no RPC answers, the delivery is 503 and explicitly says the transaction's existence was not determined. An invalid chain or hash is refused with 400 before payment and before any RPC call."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/gas/tx",
            "params": {
              "chain": "required. One chain name: base,eth,arbitrum,optimism,polygon. Aliases accepted by /gas (ethereum, arb, op, matic) also work. A missing or unknown chain is refused with 400 before any payment and before any RPC call.",
              "hash": "required. 0x followed by exactly 64 hexadecimal characters (32 bytes). Uppercase hex is accepted and normalised to lowercase. A missing or malformed hash is refused with 400 before any payment and before any RPC call."
            },
            "body": "none",
            "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. No payment is verified and no RPC is called until chain and hash are valid."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — x402-gas-tx",
              "schema_version": "number",
              "chain": "string — the canonical chain name that was read",
              "hash": "string — the 0x-prefixed 64-hex hash, normalised to lowercase",
              "found": "boolean — true only when a receipt was returned; false for pending or not found",
              "status": "string|null — success | reverted | pending | null (null when not found or the receipt has no status)",
              "block_number": "number|null — the block that included the transaction",
              "gas_used": "number|null — the gas the receipt says was used",
              "effective_gas_price_wei": "string|null — the receipt's effectiveGasPrice, raw integer in wei",
              "fee_wei": "string|null — gas_used × effective_gas_price_wei, decimal string in wei",
              "fee_eth": "number|null — fee_wei / 1e18 (JSON number; fee_wei holds the exact integer)",
              "from": "string|null — sender address",
              "to": "string|null — recipient address (null for a contract creation or when no transaction was found)",
              "checked_at": "ISO-8601 UTC, when this delivery was assembled",
              "rpc_host": "string|null — host of the public RPC that answered (no scheme, no key)",
              "reason": "string — only when found=false: not_found or pending",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "asset_decimals": 6,
          "amount_usd": 0.002,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /gas/tx — the receipt for one transaction on one chain",
          "note": "0.002 USDC, twice the /gas price and below the /gas/plan price: this closes the loop after sending and returns the receipt's status and the fee actually charged in wei and ETH. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The response reports what the receipt returned at the stated time and the stated multiplication, as returned. A pending or not-found transaction is reported as such, not as a failure of this service."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/gas/tx?chain=base&hash=0x...'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/gas/tx?chain=base&hash=0x...'   -> 200 with the receipt's status and fee (or 200 found=false with a reason)",
          "note": "Both parameters are in the query string, so a catalogue or a scheduler can call it as a plain GET. The hash is not stored in the delivery log; only the route is recorded."
        },
        "listing_notes": {
          "resource_type": "Plain GET with two required query parameters (chain and hash). The bare path answers 402, so a read-only probe that gets a 402 is enough for a catalogue to list it. GET on purpose: no first settlement is needed to publish the terms.",
          "distinct_from_siblings": "/gas returns the current price per gas unit; /gas/plan estimates the cost of a transaction before it is sent; this route reports what the receipt says after it was mined. It reuses /gas's public RPC list, fallback order and chainId check, stores nothing and does not convert to any fiat currency.",
          "failure_answers": "400 (missing_chain, unknown_chain, missing_hash, invalid_hash) before anything is called; 200 with found=false and reason=not_found or pending when the transaction is not settled (not a 404, not a failure); 503 upstream_unavailable only when no public RPC answered at all.",
          "price": "The 402 response always carries GAS_TX_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "State that fee_wei = gas_used × effective gas price and that fee_eth = fee_wei / 1e18. Say that a pending or not-found transaction is 200 with found=false, and that on OP Stack chains the L1 data fee is outside effectiveGasPrice. Never present a fiat conversion: this route reports wei and ETH only."
        }
      },
      {
        "product_id": "x402-price-benchmark",
        "schema_version": 1,
        "title": "Is this price the going rate? One call compares it against 20k measured x402 prices",
        "why_i_bought": "I bought this because I could not tell whether my own price was sane: I had the same number in front of me (0.01 or 0.05 for one call) and no way to know which side of the market it was on. Reading a catalogue by eye tells you what a handful of neighbours charge; it does not tell you the median, the 25th percentile or how thick the comparison is. One call that answers 'cheap, normal or expensive, and by how much, on how many measured prices' ends that guess before I publish a price or accept one.",
        "what_it_is": "One GET with an amount in USD (and optionally the URL you are pricing) returns where that price sits in the measured distribution of x402 prices: the median, the 25th and 90th percentiles, the whole band histogram, a verdict (cheap / fair / expensive) with the rule that produced it, and the number of measured prices behind the comparison. If you pass a URL, the service matches it to the category its own tags describe and compares against that category as well as the whole market. Every number is a measured price from the public discovery index, carried with the date it was fetched; nothing is estimated or interpolated.",
        "when_to_buy": "Buy one call before you set a price and before you accept one. Typical cases: you are about to list a new x402 endpoint and want your number inside the band buyers actually pay; a seller quoted you a price and you want to know whether it is high for that kind of call; you are comparing two routes that do the same job; or you are writing a budget and need the going rate for a category, not an anecdote. It is also the check to run when someone tells you a price is 'normal' without a number.",
        "subject": {
          "what_is_observed": [
            "the price of every resource in the public x402 discovery index at the stated fetch time (counted: 20380), deduplicated by resource URL",
            "the population statistics of those prices: min, p10, p25, median, p75, p90, max, mean and the band histogram",
            "per-category statistics from the tags the resources declare (15 categories; domain_dns, web_content, monitoring_uptime, crypto_onchain, other, search_data, ai_inference, time_date…)",
            "per-host medians, so a price can be compared against the same seller's other resources",
            "the fetched_at date of the snapshot, so the age of the comparison is visible before you rely on it"
          ],
          "not_included": [
            "no estimate, no interpolation and no model: every figure comes from an amount field of a measured resource",
            "free resources (price 0) and resources with no readable price are counted separately, never folded into the distribution",
            "no live call to the discovery API at request time: the delivery serves the stored snapshot and states its date",
            "no valuation of what a resource is worth, and no promise about what any buyer will pay"
          ],
          "source": "the public x402 discovery index (facilitator discovery resources), read at build time by build-prices.mjs and shipped with this Worker as prices.mjs",
          "live_call_semantics": "This product does not leave the Worker. The comparison is computed from the bundled snapshot, so the response time does not depend on any third party and the answer is reproducible for a given snapshot date."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/price",
            "params": {
              "amount": "required unless url carries it. The price to judge, in USD, e.g. amount=0.02 or amount=0.005. A value that is not a positive number, or is above the sanity ceiling, is refused with 400 before payment.",
              "url": "optional. The x402 resource you are pricing, e.g. url=https://example.com/api/x. Its declared tags choose the category to compare against, and its host is compared against the same host's other measured prices.",
              "category": "optional. Compare against one named category directly, e.g. category=token_data. Unknown names are refused with 400 with the list of known names."
            },
            "body": "none",
            "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. Nothing is computed and no payment is verified until the input is valid."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "answered_at": "ISO-8601 UTC, when this delivery was assembled",
              "query": "{ amount_usd, amount_atomic, category, target_url, target_host } — what was judged",
              "verdict": "{ label: cheap|fair|expensive|free|at_band_floor, plain, rule, one_line }",
              "price_position": "{ amount_usd, percentile, band, multiple_of_median, below_median, comparisons[] }",
              "market": "{ sample_size, priced_resources, free_resources, unknown_price_resources, min, p10, p25, median, p75, p90, max, mean, bands{}, fetched_at, source_url }",
              "category": "null, or the same statistics for the matched category plus how it was matched",
              "host": "null, or { host, sample_size, median, min, max } for the same host",
              "my_price": "{ amount_usd, samples_behind_it, percentile, band, verdict } — where this service's own price for GET /price sits, for comparison",
              "basis": "{ verdict_rule, sample_size, fetched_at, method }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /price — one comparison against the bundled snapshot",
          "note": "Priced at the low end of the observed band for small information calls ($0.005 to $0.02 in the measured categories), because one call returns one comparison that decides a price. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The comparison reports measured prices from the stated snapshot date. It is a description of a market, not advice, and it does not promise that any buyer will pay any price."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/price?amount=0.02'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/price?amount=0.02'   -> 200 with the verdict, the percentiles and the sample size",
          "note": "The amount is in the query string, so a catalogue or a pricing script can call it as a plain GET. Pass url= as well to compare against the category that URL belongs to."
        },
        "listing_notes": {
          "resource_type": "Plain GET with an optional query parameter for the delivery. A catalogue can confirm the payment terms by calling the bare path and reading the 402 PAYMENT-REQUIRED header. GET (not POST) on purpose: a verify-only listing needs no first settlement.",
          "distinct_from_siblings": "The observation products return what this service saw about the x402 catalogue. /check probes one target URL. This one judges a number: 'is this price on the market, and where'. It is the only route that answers with a verdict about a price rather than a description of a resource.",
          "price": "The 402 response always carries PRICE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "State the snapshot date and the sample size with every verdict; do not present the band as a target or a guarantee, and do not claim to know what any resource is worth."
        }
      },
      {
        "product_id": "x402-agent-payment-reality-map",
        "schema_version": 1,
        "title": "Which routes can pay me? Alive, payout, KYC/SMS and fees in one call",
        "why_i_bought": "I bought this because my first question was not 'what does the market look like' but 'which of these routes can I actually use today'. I had a list of agent-payment routes and no way to tell, without opening each one, which are alive right now, which pay out in a currency and on a chain I already hold, and which silently require identity documents or a phone number. One call that answers all three per route ends that search before I register anywhere.",
        "what_it_is": "One GET returns 40 agent-payment routes, each with the state that was measured and the date it was measured, the currency and chain that route pays out in, whether it requires KYC, whether it requires SMS, its fees, the evidence behind the judgement, and the record it came from. Call the path with no parameter for every route, or with name=<one route> for that route alone. Every judgement is a recorded measurement carried with its date; a field that was never measured says 未確認 instead of guessing.",
        "when_to_buy": "Buy one call before you register on anything. Typical cases: you are choosing which agent-payment routes to wire into your agent and want the ones that are alive and pay in a currency you already hold; you want to rule out every route that needs an identity document or a phone number before you spend an afternoon on it; or you are comparing two routes that claim to do the same job and need the receiving currency and the fees side by side.",
        "subject": {
          "what_is_observed": [
            "every agent-payment route judged so far (40 routes), with the state measured and the measurement date",
            "the payout currency and chain each route pays in",
            "whether identity verification (KYC) is required, and whether a phone number (SMS) is required",
            "the fees the route states, and the evidence of any payment that actually settled",
            "the record each judgement came from, so every line can be traced back"
          ],
          "not_included": [
            "no guess: a field that was never measured is reported as 未確認, never filled in",
            "no registration, no payment and no account is created by this call, and no KYC or SMS step is performed",
            "no live call to any route at request time: the delivery serves the stored map and states when each entry was measured"
          ],
          "source": "the seller's own measured route records (research/reality-map.json, checked by the deployment selftest)",
          "live_call_semantics": "This product does not leave the Worker. The map is read from the bundled data, so the response time does not depend on any third party and the answer is reproducible for a given snapshot date."
        },
        "io": {
          "input": {
            "method": "GET",
            "params": {
              "name": "optional. One route to answer, e.g. name=Loopuman or name=Seedstr (case-insensitive; a partial name matches). Unknown names are refused with 400 and the list of known names, before any payment."
            },
            "path": "/reality",
            "body": "none",
            "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. GET with the name in the query string, so one call is enough to decide."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "answered_at": "ISO-8601 UTC, when this delivery was assembled",
              "query": "{ name } — what was asked",
              "match": "{ requested, matched, exact } — how the name resolved to routes",
              "count": "number of routes in this delivery",
              "decision_rule": "the rule behind usable_without_identity_gate",
              "how_to_read": "{ alive, receive_currency_chain, kyc_required, sms_required, paid_evidence } — what each field means",
              "routes": "[ { name, url, alive, alive_measured_at, receive_currency_chain, kyc_required, sms_required, fees, paid_evidence, usable_without_identity_gate, source } ]",
              "summary": "{ total, alive, zero_open, excluded, blocked, unprocessed, unconfirmed_fields }",
              "data": "{ generated_at, schema_version, about }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "50000",
          "asset_decimals": 6,
          "amount_usd": 0.05,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /reality — the full route map, or one named route",
          "note": "Priced so that one call replaces the search across every route. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The map reports what was measured on the stated dates. It is a record of routes, not advice, and it does not promise that any route will pay you."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/reality'   -> 402, read the PAYMENT-REQUIRED header (0.05 USDC)",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/reality?name=Loopuman'   -> 200 with the routes, the payout currency, the KYC/SMS flags and the evidence",
          "note": "The bare path returns every route; name= returns one. The amount and the payTo come from the 402 challenge, so one call tells you where to send and what you get back."
        },
        "listing_notes": {
          "resource_type": "Plain GET with an optional query parameter for the delivery. GET (not POST) on purpose: a verify-only listing needs no first settlement.",
          "distinct_from_siblings": "The observation products report what this service saw about the x402 catalogue, and /check probes one target URL. This one answers 'which routes can pay me, where, and what do they require' from measured route records.",
          "price": "The 402 response always carries REALITY_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "Report each route with its measurement date and its source; a field that was not measured is reported as 未確認."
        }
      },
      {
        "product_id": "x402-article-to-markdown",
        "schema_version": 1,
        "title": "Can I get just the article, as Markdown?",
        "what_it_is": "Send the URL of an article and get its body back as Markdown: headings, paragraphs, lists, code blocks, links, quotes and tables are kept, and the parts that are not the article — navigation, cookie banners, ads, sidebars, share buttons, related links and the footer — are removed. The response is text/markdown itself, so it is already the file or the context you wanted, not a JSON envelope you have to unwrap.",
        "when_to_buy": "Buy it when you want to read or reuse one article without the page around it: putting a source in front of a model, quoting it in a document, archiving it, or building a text corpus. One call replaces the readability-and-converter script you would otherwise write and maintain, and it keeps the structure a plain text dump loses — the links stay links, the code stays fenced, and the list nesting survives.",
        "subject": {
          "what_is_returned": [
            "the article body as Markdown: # to ###### headings, paragraphs, - and 1. lists, fenced code blocks, inline code, [links](url), images, > quotes, --- rules and tables",
            "the title of the page, on the first heading",
            "response headers with the facts about the call: x-markdown-target (the URL after redirects), x-markdown-title, x-markdown-words, x-markdown-source-bytes, x-markdown-cache (hit or miss) and x-markdown-http-status"
          ],
          "source": "one live HTTP GET to the URL you pass, at request time",
          "live_call_semantics": "The page is fetched once, after payment is verified, with a 5 second cutoff, at most 3 redirects, and only to public hosts and the allowed ports. A url that is not http(s), points inside a private or link-local network, uses a blocked port, embeds credentials or is over-long is refused with 400 before payment, and nothing is fetched. The same URL called again within a minute is served from this service's short-lived cache."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/markdown",
            "params": {
              "url": "required for a delivery. The absolute http(s) URL of the article to convert. Validated before payment; a bad url is refused with 400 and nothing is fetched."
            },
            "body": "none",
            "note": "The bare path without a payment header answers 402, so a catalogue can confirm the payment terms by calling it once. Repeated calls are rate limited with 429 before payment."
          },
          "output": {
            "content_type": "text/markdown; charset=utf-8",
            "encoding": "UTF-8",
            "shape": {
              "body": "the article as Markdown, starting with the title as an H1 heading",
              "headers": {
                "x-markdown-title": "the page title",
                "x-markdown-target": "the URL actually read, after redirects",
                "x-markdown-words": "word count of the Markdown body",
                "x-markdown-source-bytes": "bytes read from the target",
                "x-markdown-cache": "hit when served from the short-lived cache, miss when fetched now",
                "x-markdown-http-status": "the status the target answered with"
              }
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "10000",
          "asset_decimals": 6,
          "amount_usd": 0.01,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /markdown — one article converted to Markdown",
          "note": "One payment buys one conversion. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The Markdown is the body text this service read from the URL at that moment."
        },
        "purchase_example": {
          "curl_1": "curl -i 'https://<worker-host>/markdown?url=https://en.wikipedia.org/wiki/HTTP_402'",
          "curl_1_returns": "402 with the PAYMENT-REQUIRED header (x402Version, accepts[], amount, payTo)",
          "curl_2": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/markdown?url=https://en.wikipedia.org/wiki/HTTP_402'",
          "curl_2_returns": "200, content-type text/markdown, the article body itself",
          "response_example": "# The body of the article\n\nClean Markdown, with **bold**, [links](https://example.com) and\n\n- lists\n- kept as they were\n\n## A section heading\n\n```js\nconst kept = true;\n```\n",
          "note": "The URL is in the query string, so a catalogue can call it as a plain GET and read the 402 before buying. The price is 0.01 USDC per call."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter for the delivery. Calling the bare path returns 402 with PAYMENT-REQUIRED, so a verify-only listing needs no first settlement.",
          "distinct_from_siblings": "The observation products return what this service already collected. This one goes out to the URL you name and returns the article's body as Markdown you can use as it arrives.",
          "price": "The 402 response always carries MARKDOWN_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "Describe the delivery as the article body as Markdown, converted from the HTML the target served."
        }
      },
      {
        "product_id": "x402-mutation-watch",
        "schema_version": 1,
        "title": "Did this endpoint's payment terms change since I last checked?",
        "what_it_is": "登録した x402 のURLの支払条件が変わった時だけ差分を返す。変わっていなければ changed:false。壊れる前に気づくための1コール。条件は scheme・network・asset・amount・payTo・maxTimeoutSeconds の6項目。差分は field / from / to の形で、変わった項目だけが返る。",
        "when_to_buy": "自分の連携が壊れる変更があったかを知りたい時に買う。典型例: 依存している資源の価格（amount）や受取先（payTo）が黙って変わった、別チェーン（network）や別資産（asset）へ移った、timeout が縮んだ。当方の実測では、追跡した資源は305観測中192回条件が変わった（観測 102.2時間）。変化するのは資源ごとの条件で、基盤ではない。",
        "why_i_bought": "当方は x402 の買い手として実際に支払い、失敗もした。困ったのは「先週つないだ資源の条件が今日も同じか」を毎回自分で確かめることだった。/check は今の1回を返すが、前回との差は自分の保存が要る。/changes は当方自身の観測履歴であって、買い手が指定した任意のURLは見ない。だから「登録したURLの条件の変化だけ」を返す1コールが要る。条件が6項目に絞ってあれば、差分を自分の設定にそのまま突き合わせられる。壊れてから気づくのでは遅いので、買う前ではなく、つないだ後に繰り返し使う。",
        "subject": {
          "what_is_observed": [
            "the payment conditions the target serves right now: scheme, network, asset, amount (atomic), payTo, maxTimeoutSeconds",
            "the change since the stored baseline: only the fields whose value differs, as { field, from, to }",
            "the fact hash of the conditions (canonical JSON, sha256) and the stored series for that URL",
            "the probe facts behind the answer: HTTP status, latency, redirects, and whether the probe came from the short cache"
          ],
          "not_included": [
            "no payment is made to the target and no payment header is sent: only the free 402 challenge is read",
            "no paid delivery of the target is observed",
            "no new crawler: the extraction is the one /check already uses, and the diff rule is the one observation/recorder.cjs uses"
          ],
          "source": "one live HTTP GET to the registered URL, plus this service's own stored baseline and series for that URL",
          "live_call_semantics": "The target is fetched once per paid call, after payment is verified, with a 5 second cutoff, at most 3 redirects, and only to public hosts and the allowed ports. The same URL within 60 seconds is served from the isolate cache (probe.cached=true), so the target is not hammered."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/watch",
            "params": {
              "url": "register: store the payment conditions of this absolute http(s) URL as the baseline. POST /watch with body {\"url\":\"...\"} does the same.",
              "id": "diff: return only what changed since the stored baseline for this watch_id."
            },
            "body": "POST /watch accepts {\"url\":\"<absolute http(s) URL>\"} (JSON, at most 8192 bytes).",
            "note": "The URL is validated before any payment: a malformed, non-http(s), oversized, internal, blocked-port or credentialed url is answered with 400 and no PAYMENT-REQUIRED header, and nothing is fetched. An unknown id is answered with 404 before payment. The bare path without a payment header answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment. Observed on this deployment: a diff call made within about a minute of the first registration of a URL can miss the baseline (the KV store is eventually consistent, and a missing lookup is cached at the edge for 60 seconds). That call is answered 404 before payment, so it is not charged; the same id works after the window."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "watch_id": "string — sha256 of the normalized target URL; the id to call again",
              "mode": "register | diff",
              "target": "{ url, host, path } — the URL that was watched",
              "registered_at": "ISO-8601 UTC, when the baseline was first stored",
              "checked_at": "ISO-8601 UTC, when this probe ran",
              "baseline": "boolean — true when this call stored the first baseline",
              "changed": "boolean — true only when an observed challenge differs from the stored conditions",
              "observed": "boolean — false when the target did not answer (the baseline is not overwritten)",
              "indeterminate": "boolean — true when nothing could be concluded (timeout, unreachable, no payment challenge)",
              "reason": "null when a challenge was read; timeout | unreachable | too_many_redirects | blocked_redirect | no_payment_challenge otherwise",
              "changes": "[ { field, from, to } ] — only the fields that differ: scheme, network, asset, amount, payTo, maxTimeoutSeconds",
              "conditions": "{ scheme, network, asset, amount, payTo, maxTimeoutSeconds } — the stored baseline after this call",
              "previous_conditions": "the conditions this call compared against",
              "fact_sha256": "sha256 of the canonical conditions (the same role as recorder.cjs fact_hash)",
              "checks": "number of paid calls stored for this watch_id",
              "changes_seen": "number of those calls that saw a change",
              "last_changed_at": "ISO-8601 UTC of the last observed change, or null",
              "series": "[ { watched_at, change_status, changes } ] — the recent stored series for this URL",
              "stored_in_kv": "boolean — whether the baseline was written",
              "probe": "{ method, requests_made, completed, http_status, latency_ms, final_url, redirects[], content_type, max_timeout_ms, max_redirects, cached }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one call — one registration or one change report for one watched URL",
          "note": "0.02 USDC。1回の登録も1回の差分も同じ価格。402 は常に現在の amount を載せる。"
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The report states what was observed at that moment and what differed from the stored baseline."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST -H 'content-type: application/json' -d '{\"url\":\"https://api.example.com/paid\"}' 'https://<worker-host>/watch'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -X POST -H 'PAYMENT-SIGNATURE: <base64 payload>' -H 'content-type: application/json' -d '{\"url\":\"https://api.example.com/paid\"}' 'https://<worker-host>/watch'   -> 200 with the baseline and its watch_id",
          "step_4": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/watch?id=<watch_id>'   -> 200 with changed:true and only the changed fields, or changed:false",
          "note": "GET /watch?url=<URL> registers too, so a client that cannot POST can still use this route."
        },
        "listing_notes": {
          "resource_type": "GET with optional query parameters for the delivery. The bare path answers 402, so a catalogue can confirm the payment terms by calling it once, and the POST form is an alternative for clients that prefer a body.",
          "distinct_from_siblings": "The other routes answer about this service's own observations, or about one resource right now. This one answers about change: it stores the conditions you registered and returns only what differs, per field.",
          "price": "The 402 response always carries WATCH_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "The condition set is exactly the six fields a buyer's integration depends on. A field that could not be read is reported as indeterminate, never as unchanged."
        }
      },
      {
        "product_id": "x402-random-bytes",
        "schema_version": 1,
        "title": "Random bytes as hex, base64 or a UUID, in one paid GET",
        "what_it_is": "One GET returns 32 bytes (or the number you ask for, 1 to 1024) from the Worker runtime's Web Crypto generator, crypto.getRandomValues, called once per paid request. Choose the shape with format= hex, base64, uuid (default hex): a lowercase hex string, a standard base64 string, or a UUID version 4. The response carries the value, the format, the byte count, the bit count, the generation time, the generator's name and the SHA-256 of the value; nothing is stored, cached or served twice.",
        "when_to_buy": "Buy one call when a task needs random bytes that did not come from an LLM or from Math.random(): a nonce, a salt, a test vector, a session identifier, a sampling seed, or placeholder bytes for a fixture. Typical case: an agent must produce a unique value inside a step and cannot generate one locally.",
        "subject": {
          "what_is_delivered": [
            "value: the bytes in the format you asked for — hex (2 characters per byte), base64 (RFC 4648, padded) or a UUID version 4",
            "format, bytes and bits: which shape was returned, how many bytes it holds and how many bits that is",
            "generated_at: when the call generated the value",
            "sha256: the SHA-256 (hex) of value, so the string you received can be checked",
            "source: the generator actually called, crypto.getRandomValues"
          ],
          "not_included": [
            "no prediction, no seed, no entropy measurement and no randomness test is reported",
            "no second sample from the same call: each paid call generates once and returns that one value",
            "no storage or replay: the value is not written to KV and is not served to another caller"
          ],
          "source": "the Worker runtime's Web Crypto API (crypto.getRandomValues), no upstream call and no third party",
          "live_call_semantics": "Nothing leaves the Worker and no external service is called. The bytes are generated after the payment is verified, in the same request that returns them."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/random",
            "params": {
              "bytes": "optional. How many random bytes to return, 1 to 1024; omitted means 32. A value below the minimum, above the maximum or not a whole number is refused with 400 before any payment is verified.",
              "format": "optional. The shape of value: hex, base64, uuid; omitted means hex. format=uuid returns a UUID version 4 string and is always 16 bytes; any other format name is refused with 400 before any payment is verified."
            },
            "body": "none",
            "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "value": "string — the random bytes in the requested format",
              "format": "string — \"hex\" (lowercase, 2 characters per byte), \"base64\" (RFC 4648, padded) or \"uuid\" (version 4)",
              "bytes": "number — how many bytes the value holds",
              "bits": "number — bytes x 8",
              "generated_at": "ISO-8601 UTC, when this call generated the bytes",
              "sha256": "string — SHA-256 (hex) of value, i.e. of the string as it appears here (UTF-8)",
              "sha256_of": "string — always \"value\"",
              "source": "string — always \"crypto.getRandomValues\"",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description (no random bytes are given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /random — one delivery of 32 bytes (or the bytes count you pass) in the format you pass",
          "note": "0.001 USDC — the low end of the measured band for one small call ($0.001 to $0.01). The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The delivery is the value this call generated; it is not regenerated later and cannot be re-fetched. No promise is made about how the value may be used."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/random?bytes=32&format=hex'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/random?bytes=32&format=hex'   -> 200 with one value",
          "response_example": "{\n  \"value\": \"9f2c41ab…(64 hex characters for 32 bytes)\",\n  \"format\": \"hex\",\n  \"bytes\": 32,\n  \"bits\": 256,\n  \"generated_at\": \"2026-10-16T09:20:00.000Z\",\n  \"sha256\": \"41ab…\",\n  \"sha256_of\": \"value\",\n  \"source\": \"crypto.getRandomValues\"\n}",
          "format_examples": {
            "hex": "GET /random?bytes=32&format=hex -> \"9f2c41ab…\" (64 hex characters)",
            "base64": "GET /random?bytes=32&format=base64 -> \"nyxBq…\" (44 characters, padded)",
            "uuid": "GET /random?bytes=16&format=uuid -> \"9f2c41ab-1d3e-4a7b-8c5d-0e1f2a3b4c5d\""
          },
          "note": "The byte count and the format are query parameters, so a scheduler or an agent can call it as a plain GET. Check sha256(value) against the sha256 field to confirm the string was not altered in transit."
        },
        "listing_notes": {
          "resource_type": "Plain GET, no required parameter (bytes and format are optional), so a read-only probe that gets a 402 is enough for a catalogue to list it. There is no free route: /random answers 402 or the paid delivery only.",
          "distinct_from_siblings": "Every other product here returns something this service observed, measured or wrote. This one computes a value at request time from the runtime's Web Crypto generator, with no upstream call.",
          "price": "The 402 response always carries RANDOM_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "State the source (crypto.getRandomValues), the format and the bit count, and nothing more. Do not describe the output as 'true random', 'provably random' or 'secure'."
        }
      },
      {
        "product_id": "x402-unit-convert",
        "schema_version": 1,
        "title": "Unit conversion in one paid GET",
        "what_it_is": "One GET converts one number between units in one category: length, mass, volume, data or time, plus temperature (c, f, k). The response carries the input, the category, the result, the target unit and a one-unit formula. The definitions are fixed in this Worker; no external service, key or account is used.",
        "when_to_buy": "Buy one call when an agent has a number in one unit and needs it in another without writing or trusting a conversion table: a feed in miles and a report in kilometres, a recipe in ounces and a label in grams, a storage figure in GiB and a price in GB.",
        "subject": {
          "what_is_delivered": [
            "result: the converted number (12 significant digits)",
            "unit and category: the target unit and the category both units belong to",
            "formula: what one source unit equals in the target unit",
            "converted_at: when this call computed the answer"
          ],
          "not_included": [
            "no currency conversion: exchange rates need a live rate source and are not part of this product",
            "no unit discovery: from and to must be supported names, listed in the 400 body when they are not",
            "no history or storage: the answer is computed for this request only"
          ],
          "source": "fixed unit definitions in worker.mjs, no upstream call and no third party",
          "live_call_semantics": "Nothing leaves the Worker. The conversion runs after the payment is verified, in the same request that returns it."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/convert",
            "params": {
              "value": "required. The number to convert; must be finite (e.g. 1, -40.5).",
              "from": "required. Source unit: m, km, cm, mm, mi, yd, ft, in, kg, g, mg, t, lb, oz, l, ml, m3, gal, qt, floz, byte, kb, mb, gb, kib, mib, gib, s, ms, min, h, day, week, c, f, k.",
              "to": "required. Target unit in the same category as from."
            },
            "body": "none",
            "note": "An unknown unit, a cross-category pair or a temperature below absolute zero is refused with 400 before any payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "input": "{ value, from, to }",
              "category": "string -length | mass | volume | data | time | temperature",
              "result": "number -the converted value",
              "unit": "string -the target unit",
              "formula": "string -e.g. \"1 km = 1000 m\"",
              "source": "string -always \"fixed unit definitions in this Worker\"",
              "converted_at": "ISO-8601 UTC",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description (no conversion is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /convert -one conversion",
          "note": "0.001 USDC, the low end of the measured band for one small call. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The delivery is the number this call computed; it can be computed again only by paying again."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/convert?value=1&from=km&to=m'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/convert?value=1&from=km&to=m'   -> 200",
          "response_example": "{\n  \"input\": {\"value\": 1, \"from\": \"km\", \"to\": \"m\"},\n  \"category\": \"length\",\n  \"result\": 1000,\n  \"unit\": \"m\",\n  \"formula\": \"1 km = 1000 m\"\n}",
          "note": "from/to are unit names, so a scheduler or an agent can call it as a plain GET."
        },
        "listing_notes": {
          "resource_type": "Plain GET with three query parameters; the bare path answers 402, which is enough for a catalogue to list it.",
          "distinct_from_siblings": "Unlike most products here it measures nothing: it computes a conversion from fixed definitions at request time.",
          "price": "The 402 response always carries CONVERT_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "State the supported categories and the fixed definitions; do not describe the output as certified or authoritative."
        }
      },
      {
        "product_id": "x402-timestamp-convert",
        "schema_version": 1,
        "title": "Timestamp conversion in one paid GET",
        "what_it_is": "One GET converts one instant between epoch seconds, milliseconds, microseconds, nanoseconds, ISO 8601, RFC 2822 and a date string. The response returns every representation at once, so one call is enough for a log line, a JSON field and a human-readable header. The conversion is integer/Date arithmetic in this Worker.",
        "when_to_buy": "Buy one call when an agent has a timestamp in one shape and needs it in another without guessing the unit: an API that returns seconds and a client that expects milliseconds, a log line in nanoseconds, an RFC 2822 Date header, or an ISO string for a JSON schema.",
        "subject": {
          "what_is_delivered": [
            "result: the instant in the requested target shape",
            "iso, date, time_utc, rfc2822: the same instant in four readable forms",
            "unix_seconds, unix_milliseconds, unix_microseconds, unix_nanoseconds: the same instant as epoch values",
            "converted_at: when this call ran"
          ],
          "not_included": [
            "no timezone database: output is UTC; input without an offset is read as UTC",
            "no fetching of 'now': value is required, so the answer is deterministic and testable",
            "no history or storage: the answer is computed for this request only"
          ],
          "source": "JavaScript Date and integer arithmetic in this Worker, no clock service and no third party",
          "live_call_semantics": "Nothing leaves the Worker. The conversion runs after the payment is verified, in the same request that returns it."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/ts",
            "params": {
              "value": "required. An epoch integer or a date string, e.g. 1760000000 or 2025-10-09T08:53:20Z.",
              "from": "optional. auto | s | ms | us | ns | iso | rfc2822; default auto (numeric magnitude picks s/ms/us/ns, anything else is read as ISO).",
              "to": "optional. iso | s | ms | us | ns | rfc2822 | date; default iso."
            },
            "body": "none",
            "note": "An unreadable value or an out-of-range instant is refused with 400 before any payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "input": "{ value, from, to }",
              "result": "the instant in the requested unit (string for iso/rfc2822/date/us/ns, number for s/ms)",
              "unit": "the requested target",
              "iso": "ISO-8601 UTC",
              "date": "YYYY-MM-DD",
              "time_utc": "HH:MM:SS.sss",
              "rfc2822": "e.g. Thu, 09 Oct 2025 08:53:20 GMT",
              "unix_seconds": "number",
              "unix_milliseconds": "number",
              "unix_microseconds": "string (no digit lost)",
              "unix_nanoseconds": "string (no digit lost)",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description (no conversion is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /ts -one conversion",
          "note": "0.001 USDC, the low end of the measured band for one small call. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The delivery is the conversion this call computed; it can be computed again only by paying again."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/ts?value=1760000000&from=s&to=iso'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/ts?value=1760000000&from=s&to=iso'   -> 200",
          "response_example": "{\n  \"input\": {\"value\": \"1760000000\", \"from\": \"s\", \"to\": \"iso\"},\n  \"result\": \"2025-10-09T08:53:20.000Z\",\n  \"iso\": \"2025-10-09T08:53:20.000Z\",\n  \"unix_milliseconds\": 1760000000000\n}",
          "note": "Numeric input without from= is read by magnitude (1e9 seconds, 1e12 milliseconds, 1e15 microseconds, 1e18 nanoseconds)."
        },
        "listing_notes": {
          "resource_type": "Plain GET with three query parameters; the bare path answers 402, which is enough for a catalogue to list it.",
          "distinct_from_siblings": "This one performs no measurement and reads no clock: it rewrites the instant you pass.",
          "price": "The 402 response always carries TS_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "State the accepted shapes and that the output is UTC; do not claim timezone or leap-second correctness beyond the JavaScript Date range."
        }
      },
      {
        "product_id": "x402-alive-402",
        "schema_version": 1,
        "title": "Is this URL returning 402 right now? One URL, one boolean",
        "what_it_is": "One GET answers exactly one question about one URL: is it returning HTTP 402 right now? The body is {answer, reason, checked_at, evidence}. answer is true when the URL answered 402, false when it answered any other HTTP status, and null when the URL could not be fetched — a failed fetch is never reported as false. reason is one line naming the status and latency (or the failure). evidence.status is the HTTP status that was read and evidence.amount is the amount the target's 402 asks for, in atomic USDC. The URL is fetched once per paid call, after payment, with no payment header, a 5-second timeout, at most 3 redirects and a 64 KB body cutoff.",
        "when_to_buy": "Buy one call when a step needs a yes/no about one URL and does not need the full /check report: an agent deciding whether a discovered endpoint is still asking for payment, a monitor that only needs the boolean, a pipeline that must distinguish 402 from 404/500, or a buyer that wants the cheapest possible live probe before spending more. Typical case: you have a URL and one question, and the answer must be true, false or explicitly unknown.",
        "subject": {
          "what_is_delivered": [
            "answer: true when the target answered HTTP 402, false when it answered any other HTTP status, null when it could not be fetched",
            "reason: one line naming the HTTP status and latency, or the fetch failure that produced null",
            "checked_at: ISO-8601 UTC time of the probe",
            "evidence.status: the HTTP status that was read (null when no response was read)",
            "evidence.amount: the amount the target's 402 asks for, in atomic USDC, or null when there is none"
          ],
          "not_included": [
            "no full /check report: no history, no uptime, no changes, no redirect list, no response shape and no delivery evidence",
            "no payment to the target and no payment header: the target sees the same unpaid request a buyer would",
            "no cache or stored observation: every paid call probes once and returns that result"
          ],
          "source": "one live GET to the URL you pass, after the payment is verified",
          "live_call_semantics": "The target is fetched once, after the payment is verified, in the same request that returns the answer. The safety valves are the ones /check already uses: a 5-second timeout, at most 3 redirects with every hop checked, a 64 KB body cutoff, and a refusal before payment of internal, private or link-local hosts, non-web ports, URLs over 2048 characters and URLs that embed credentials."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/alive",
            "params": {
              "url": "required. The absolute http(s) URL to probe once. A missing or invalid url is refused with 400 before any payment is verified and before anything is fetched."
            },
            "body": "none",
            "note": "One GET returns one answer: the 200 response to the request that carries your payment contains {answer, reason, checked_at, evidence} — one boolean about whether the target answers 402, not the full /check report. This is the summary version of /check. url is required: pass the absolute http(s) URL to probe once. The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. A payment header without url is refused with 400 before the facilitator is called."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "answer": "boolean|null — true when the target answered 402, false when it answered another HTTP status, null when it could not be fetched",
              "reason": "string — one line naming the status and latency, or the fetch failure",
              "checked_at": "ISO-8601 UTC, when this call probed the target",
              "evidence": "{ status: number|null — the HTTP status that was read; amount: string|null — the atomic USDC amount the target's 402 asks for }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description (no probe is run and no URL is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /alive — one probe of one URL and one boolean answer",
          "note": "0.005 USDC, the low end of the measured band for one small live call. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The answer describes one probe at the stated time; a later request may see a different status."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/alive?url=https%3A%2F%2Fexample.com%2Fpaid'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/alive?url=https%3A%2F%2Fexample.com%2Fpaid'   -> 200 with one answer",
          "response_example": "{\n  \"answer\": true,\n  \"reason\": \"HTTP 402 in 83 ms; the URL is asking for payment now.\",\n  \"checked_at\": \"2026-10-18T00:00:00.000Z\",\n  \"evidence\": { \"status\": 402, \"amount\": \"10000\" }\n}",
          "note": "answer=null means the URL could not be fetched; it does not mean 402. A URL that answers 200, 404 or 500 returns answer=false with that status in evidence.status."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (url), so a read-only probe that gets a 402 is enough for a catalogue to list it. There is no free route: /alive answers 402 or the paid delivery only.",
          "distinct_from_siblings": "/check answers the full pre-payment question (alive, price, payTo, history, diff). This one answers only 'is it returning 402 right now' and returns one boolean plus one line, at a lower price.",
          "price": "The 402 response always carries ALIVE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "claims": "State the status and the time of the probe, and nothing more. answer=null means the fetch failed; never describe it as false or as a 402."
        }
      },
      {
        "product_id": "x402-watchlist-batch",
        "schema_version": 1,
        "title": "登録した複数URLの支払条件の変化だけを1コールで返す（最大10本・0.05 USDC）",
        "what_it_is": "最大10本の x402 URLを1回で登録し、以後は1コールで全部の変化だけを受け取る。条件は scheme・network・asset・amount・payTo・maxTimeoutSeconds の6項目で、差分は変わった項目の field / from / to だけ。1本1本 /watch を呼ぶと本数分の往復と本数分の支払い（10本で 0.20 USDC）になるが、これは1回 0.05 USDC（10本なら1本あたり 0.005 USD）で済む。",
        "when_to_buy": "複数の x402 資源に依存していて、どれかの支払条件が黙って変わったら自分の連携が壊れる時に買う。典型例: 依存する3〜10本の価格（amount）や受取先（payTo）が変わった、別チェーン（network）へ移った、timeout が縮んだ。当方の実測では追跡した資源は305観測中192回条件が変わった（観測102.2時間）。1本ずつ見るより、まとめて1回で見る方が安く速い。",
        "why_i_bought": "当方は x402 の買い手であり、同時に売り手でもある。自分で監視を回していて分かったのは「見たい資源は1本ではない」ことだった。/watch は1本の変化だけを返すので、監視が2本以上になると本数分だけ呼び、本数分だけ払う。当方の観測では追跡資源は305観測中192回変化しており、変化は稀ではない。稀でないものを複数本見るなら、1回の呼び出しにまとまっている方がよい。だから /watch の保存形式と差分関数をそのまま使い、登録と差分だけを複数本に広げた1コールを用意した。",
        "subject": {
          "what_is_observed": [
            "for each registered URL, the payment conditions it serves right now: scheme, network, asset, amount (atomic), payTo, maxTimeoutSeconds",
            "for each URL, the change since its own stored baseline: only the fields whose value differs, as { field, from, to }",
            "per-URL status: changed | unchanged | indeterminate, plus the probe facts (HTTP status, latency, redirects, cache hit)",
            "the batch summary: how many of the registered URLs changed, did not change, or could not be read"
          ],
          "not_included": [
            "no payment is made to any target and no payment header is sent: only the free 402 challenge of each URL is read",
            "no new diff logic: the extraction, the canonical form, the fact hash and the field-by-field diff are the ones /watch already uses",
            "no notifications: this service does not push. You call it and it answers with what differs since the stored baseline"
          ],
          "source": "one live HTTP GET per registered URL (after payment), plus this service's own stored baseline and series for that URL set",
          "live_call_semantics": "The registered URLs are fetched once per paid call, after payment is verified, with a 5 second cutoff each, at most 3 redirects, and only to public hosts and the allowed ports, at most 4 at a time. A URL seen within 60 seconds is served from the isolate cache (probe.cached=true), so targets are not hammered. A URL that cannot be read is reported as indeterminate with its own reason and its stored baseline is not overwritten."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/watchlist",
            "params": {
              "urls": "register up to 10 absolute http(s) URLs, comma-separated or repeated (or POST /watchlist with body {\"urls\":[...]}), and store each one's payment conditions as its baseline.",
              "id": "diff: return only what changed since the stored baseline for this watchlist id (returned by the registration call)."
            },
            "body": "POST /watchlist accepts {\"urls\":[\"<absolute http(s) URL>\", ...]} (JSON, at most 16384 bytes, at most 10 URLs).",
            "note": "The URL list is checked before any payment: an empty list is refused with 400, more than 10 URLs is refused with 400 (max_urls is reported), and every URL is validated with the same rules /check and /watch use (malformed, non-http(s), oversized, internal, blocked-port or credentialed URLs are refused). None of those answers carries a PAYMENT-REQUIRED header and nothing is fetched. An unknown id is answered 404 before payment. The bare path without a payment header answers 402, so a catalogue can confirm this is an x402 resource by calling it once. Repeated calls are rate limited with 429 before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "schema_version": "number",
              "watchlist_id": "string — sha256 over the sorted normalized URL list; the id to call again (stored under watchlist_<id>)",
              "mode": "register | diff",
              "registered_at": "ISO-8601 UTC, when the URL set was first stored",
              "checked_at": "ISO-8601 UTC, when this batch probe ran",
              "baseline": "boolean — true when this call stored the first baseline for the set",
              "changed": "boolean — true when at least one URL changed",
              "indeterminate": "boolean — true when at least one URL could not be read (never reported as unchanged)",
              "summary": "{ total, changed, unchanged, indeterminate, changed_urls[] }",
              "items": "[ { url, watch_id, status, changed, observed, indeterminate, reason, changes[], conditions, previous_conditions, fact_sha256 } ] — one entry per registered URL, in the stored order",
              "status_values": "changed | unchanged | indeterminate",
              "series": "[ { watched_at, change_status, urls: [ { url, status } ] } ] — the recent stored series for this URL set",
              "stored_in_kv": "boolean — whether the baseline was written",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description plus the newest change events"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time, snapshot_generated_at }"
          }
        },
        "price": {
          "amount_atomic": "50000",
          "asset_decimals": 6,
          "amount_usd": 0.05,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one call — one registration or one change report for the whole set of up to 10 URLs",
          "per_url_usd_at_max": 0.005,
          "max_urls": 10,
          "note": "0.05 USDC。まとめ買いの価格（/watch 0.02 × 複数本・上限10本）。1回の登録も1回の差分も同じ価格で、登録本数が少なくても同じ（1本だけなら /watch の方が安い）。402 は常に現在の amount を載せる。"
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The report states what each URL served at that moment and what differed from its stored baseline."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST -H 'content-type: application/json' -d '{\"urls\":[\"https://api.example.com/a\",\"https://api.example.com/b\"]}' 'https://<worker-host>/watchlist'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -X POST -H 'PAYMENT-SIGNATURE: <base64 payload>' -H 'content-type: application/json' -d '{\"urls\":[\"https://api.example.com/a\",\"https://api.example.com/b\"]}' 'https://<worker-host>/watchlist'   -> 200 with one item per URL and the watchlist_id",
          "step_4": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/watchlist?id=<watchlist_id>'   -> 200 with changed:true and only the differing fields per URL, or changed:false",
          "note": "GET /watchlist?urls=<comma-separated URLs> registers too, so a client that cannot POST can still use this route."
        },
        "listing_notes": {
          "resource_type": "GET with optional query parameters for the delivery, plus a POST form for clients that prefer a body. The bare path answers 402, so a catalogue can confirm the payment terms by calling it once.",
          "distinct_from_siblings": "It is the batch form of /watch: the same six condition fields, the same diff rule and the same stored baseline per URL, answered for a whole set in one call and one payment. It is not a notification service.",
          "price": "50000 atomic (0.05 USDC) for the whole set, up to 10 URLs. Over the limit is refused with 400 before payment, so nobody pays for a request that cannot be served.",
          "claims": "A URL that could not be read is reported as indeterminate with its reason, and its stored baseline is not overwritten. It is never reported as unchanged."
        }
      },
      {
        "product_id": "x402-prepaid-credit",
        "schema_version": 1,
        "title": "5 USDC buys 110 calls — pay once, not per call",
        "what_it_is": "One payment of 5 USDC on Base buys 110 calls on every paid route of this Worker. The Worker verifies the transfer on chain, issues a credit id, and from then on each paid route is charged to that balance instead of asking for a per-call x402 payment: send the header X-CREDIT with the id and the route answers 200. Every call is charged at that route's own price, with a 0.05 USDC minimum per call, so the pack covers 110 calls at the minimum (about 0.045455 USDC per call). Smaller payments are accepted too: exactly 0.01 USDC is delivered as one /digest delivery in the claim response itself (0.01 USDC, no credit id and no second call). Above 0.01 up to just under 5 USDC becomes a pay-as-you-go balance charged at each route's own price with no per-call minimum.",
        "when_to_buy": "Buy the pack when you will call more than one paid route, or the same route more than a few times, and want to stop signing one payment per call: an agent checking many endpoints, a monitor that reads the same routes on a schedule, or a workflow that mixes /check, /gas, /price and /history. One transfer and one claim cover all of them.",
        "subject": {
          "what_is_delivered": [
            "credit_id: one id, returned by POST /credit/claim after the transfer is read on Base",
            "remaining balance in USDC, charged down by each call at that route's price",
            "calls: 110 at the 0.05 USDC minimum per call (when the transfer is 5 USDC or more)",
            "small payments: exactly 0.01 USDC is delivered as one /digest delivery in the claim response; above that up to just under 5 USDC, a pay-as-you-go balance with no per-call minimum",
            "scope: every paid route served by this Worker",
            "balance lookup: GET /credit?id=<credit_id>&format=json (free)"
          ],
          "not_included": [
            "no refund: an unspent balance is not returned, and an exhausted balance is answered with 402",
            "no identity: the record holds the balance, the creation time and the paying address; the IP address is not stored",
            "no transfer of the id: whoever holds the id can spend the balance"
          ],
          "source": "the USDC transfer you make on Base, read through public Base RPC endpoints",
          "live_call_semantics": "The transfer is verified through public Base RPCs when you claim. Spending a credit makes no external call: the balance is read and written in the Worker's KV store, and the route's own delivery runs as usual."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/credit/claim",
            "params": null,
            "body": "{ \"tx\": \"0x…\" } — the 32-byte transaction hash of your USDC transfer on Base (any amount from 0.01 USDC), or the same as a form field.",
            "note": "The product page is GET /credit (free, with an optional ?id= to read a balance). A GET on /credit/claim answers 405. A malformed tx is answered with 400 before any on-chain call."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "ok": "boolean",
              "status": "confirmed",
              "replay": "boolean — true when the same tx was claimed before (the same credit is returned)",
              "credit_kind": "string — \"pack\" (5 USDC or more) or \"micro\" (0.01 USDC up to just under 5)",
              "credit_id": "string — send it back as the X-CREDIT header on any paid route",
              "calls_included": "number — 110 for a pack; null for a micro balance",
              "remaining_usd": "string — the balance in USDC",
              "min_charge_atomic": "string — \"50000\" for a pack (0.05 USDC floor); \"0\" for a micro balance (route price)",
              "min_charge_usd": "string — the per-call floor in USDC; \"0\" means each call is charged at the route's price",
              "next": "{ header, path, price_usd, curl, note } — the exact next call that spends the credit and returns the delivery",
              "scope": "string — which routes accept the credit",
              "payment": "{ payer, amount_atomic, block, network, asset, pay_to, tx }",
              "use": "{ header: \"X-CREDIT: <credit_id>\", example: \"<curl>\" }",
              "balance": "string — the free balance URL for this credit"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/credit",
            "returns": "the price, the call count, the scope and a curl example"
          }
        },
        "price": {
          "amount_atomic": "5000000",
          "asset_decimals": 6,
          "amount_usd": 5,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "direct_transfer",
          "per": "one prepaid pack of 110 calls, or a pay-as-you-go balance for smaller transfers",
          "note": "Charged per call at each route's own price, with a 0.05 USDC minimum for the 5 USDC pack. Exactly 0.01 USDC is delivered as one /digest delivery in the claim response; above that up to just under 5 USDC it becomes a micro balance with no per-call minimum."
        },
        "payment": {
          "protocol": "direct USDC transfer on Base (not x402)",
          "asset_transfer_method": "plain ERC-20 transfer",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "claim": "POST /credit/claim with {\"tx\":\"0x…\"}",
          "spend_header": "X-CREDIT: <credit_id>",
          "verification": "The Worker reads the transaction receipt from public Base RPC endpoints and requires a USDC Transfer to pay_to of at least 0.01 USDC, the same check the other human-facing routes use. A transfer of 5 USDC or more issues the 110-call pack; a smaller accepted transfer issues a micro balance.",
          "terms_of_use": "The credit is spent at the price each route charges at the time of the call. When the balance is below the charge, the route answers 402 with error insufficient_credit instead of delivering."
        },
        "purchase_example": {
          "step_1": "send 5 USDC on Base to 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "step_2": "curl -sS -X POST https://<worker-host>/credit/claim -H 'content-type: application/json' -d '{\"tx\":\"0x<your tx hash>\"}'   -> 200 with credit_id",
          "step_3": "curl -sS 'https://<worker-host>/check?url=https://example.com' -H 'X-CREDIT: cr_…'   -> 200, charged to the balance",
          "paid_already_0_01": "send 0.01 USDC on Base to 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3, POST /credit/claim with {\"tx\":\"0x<your tx hash>\"} -> 200 with the /digest delivery itself (credit_claim.delivery=\"digest_in_claim\", no credit id, no second call)",
          "note": "The claim is idempotent: reporting the same tx again returns the same credit_id and does not issue a second balance. The balance is readable for free at GET /credit?id=<credit_id>&format=json."
        },
        "listing_notes": {
          "keywords": [
            "x402",
            "prepaid credit",
            "pay once",
            "credits",
            "bulk calls",
            "USDC on Base"
          ],
          "differentiator": "One payment covers 110 calls across every paid route, so a buyer stops signing a payment per call.",
          "payment_note": "Plain USDC transfer on Base, then a claim; no x402 client is needed to buy the pack."
        }
      },
      {
        "product_id": "x402-entity-enrichment",
        "schema_version": 1,
        "title": "x402 Entity Enrichment Report — one target, measured, on one page",
        "what_it_is": "One report about one x402 target (an endpoint, a service or a provider), measured at the moment you claim: is it alive, what does it charge and to whom, what response does it promise, has it delivered before, what changed since the previous measurement, and where its price sits in the measured market. It merges what this service already answers in three separate calls (the live check, the observation history and the route record) into one page.",
        "when_to_buy": "Buy it before you wire a third-party x402 resource into an agent, before you pay a seller you have not used, or when you want the price and the promised response shape on one page with the moment of measurement attached.",
        "subject": {
          "what_is_delivered": [
            "the target URL, host and measurement moment, with the limits of the call",
            "liveness: alive, http status, latency, redirects, content type, body size",
            "price: the 402 it serves — scheme, network, asset, amount, receiver, timeout, required fields",
            "response shape: the declared output keys, and whether the seller named them at all",
            "delivery evidence: this service's own paid-delivery record, and what it cannot know about a third party",
            "change since the previous stored check: field-by-field diff plus uptime",
            "market position: the measured price distribution of 2,330 x402 resources",
            "a verdict per check (PASS / INVESTIGATE / FAIL / BASELINE / UNKNOWN) and one next step"
          ],
          "not_included": [
            "no x402 paid route: this product is bought with a plain USDC transfer on Base and a claim, not with an x402 client",
            "no subscription and no automatic renewal: one payment, one report",
            "no refunds: the report is produced and returned in the claim response"
          ],
          "source": "one GET on the target (same safety valves as /check) plus this service's stored checks and delivery log; the market reference is this service's own catalogue observation"
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/enrich/claim",
            "params": null,
            "body": "{ \"tx\": \"0x…\", \"url\": \"https://…\" } — the transaction hash of your 0.3 USDC transfer on Base and the target to measure.",
            "note": "The product page is GET /enrich/buy (free, with the table of contents and a preview). A GET on /enrich/claim answers 405. A malformed tx is answered with 400 before any on-chain call."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "ok": "boolean",
              "status": "confirmed",
              "replay": "boolean — true when the same tx was claimed before (the same report is returned)",
              "payment": "{ payer, amount_usd, block, network, asset, pay_to }",
              "report": "{ title, version, format: markdown, filename, markdown }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/enrich/buy",
            "returns": "the price, the table of contents, the claim steps and a preview of the report"
          }
        },
        "price": {
          "amount_atomic": "300000",
          "asset_decimals": 6,
          "amount_usd": 0.3,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "direct_transfer",
          "per": "one report"
        },
        "payment": {
          "protocol": "direct USDC transfer on Base (not x402)",
          "asset_transfer_method": "plain ERC-20 transfer",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "claim": "POST /enrich/claim with the transaction hash",
          "verification": "The Worker reads the receipt from public Base RPC endpoints and requires a USDC Transfer to pay_to of at least 0.3 USDC, the same received >= required check the other human-facing routes use.",
          "terms_of_use": "The claim is idempotent: reporting the same transaction hash again returns the same report and does not issue a second one."
        },
        "contents": [
          {
            "title": "Target and how it was measured",
            "what": "the URL, the host, the exact moment, one GET with no payment header, and what was refused before any fetch"
          },
          {
            "title": "Liveness (稼働)",
            "what": "did it answer, with what status, in how many ms, after which redirects, with what content type and size"
          },
          {
            "title": "Payment terms and price (価格)",
            "what": "the 402 it serves: scheme, network, asset, amount in atomic units and USDC, receiver, timeout, required fields"
          },
          {
            "title": "The response it promises (返る形)",
            "what": "the declared response schema keys and the required fields, so an agent can decide before paying"
          },
          {
            "title": "Delivery evidence (納品実績)",
            "what": "this service's own paid-delivery record, and an honest statement of what it cannot know about a third party"
          },
          {
            "title": "Change since the previous measurement (前回からの変更)",
            "what": "field-by-field diff against the stored previous check, plus uptime over every stored check of the same URL"
          },
          {
            "title": "Where the price sits in the market (市場での位置)",
            "what": "the measured price distribution of 2,330 x402 resources, so the number has a reference"
          },
          {
            "title": "Verdict and next step (判定)",
            "what": "pass / investigate / fail per check, with the one thing to do next"
          }
        ],
        "purchase_example": {
          "step_1": "send 0.3 USDC on Base to 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "step_2": "curl -sS -X POST https://<worker-host>/enrich/claim -H 'content-type: application/json' -d '{\"tx\":\"0x<your tx hash>\",\"url\":\"https://<target>\"}'   -> 200 with the report in report.markdown",
          "step_3": "read report.markdown, or open the human page /enrich/buy in a browser",
          "note": "The claim is idempotent: reporting the same transaction hash again returns the same report. No x402 client is needed."
        },
        "listing_notes": {
          "keywords": [
            "x402",
            "entity enrichment",
            "endpoint report",
            "liveness",
            "price check",
            "delivery evidence",
            "USDC on Base"
          ],
          "differentiator": "One page that answers liveness, price, promised shape, delivery evidence, change since last time and market position for a single named target, measured at claim time.",
          "payment_note": "Plain USDC transfer on Base, then a claim; no x402 client is needed to buy it."
        },
        "free_preview": {
          "note": "A frozen worked example of the exact format, measured 2026-10-15.",
          "markdown": "# x402 Entity Enrichment Report — worked example\nTarget: https://x402-catalog-history.ai-business-surface.workers.dev/history\nMeasured: 2026-10-15T06:24Z · version 1.0 · this is a frozen sample; the paid report measures your target at the moment you claim.\n\n## 1. Target and how it was measured\n- URL: https://x402-catalog-history.ai-business-surface.workers.dev/history\n- Host: x402-catalog-history.ai-business-surface.workers.dev\n- Method: one GET, no payment header, 5 s timeout, at most 3 redirects, 64 KB of body kept\n- Refused before any fetch: private, internal and link-local hosts, non-web ports, credential-bearing URLs\n\n## 2. Liveness (稼働)\n- alive: true\n- http_status: 402 (this resource answers a payment challenge, which is the expected state for an x402 route)\n- latency_ms: 214\n- final_url: unchanged (no redirect)\n- content_type: application/json\n- body_bytes: 7,762\n\n## 3. Payment terms and price (価格)\n- challenge present: true · source: PAYMENT-REQUIRED header (base64 JSON), 2,804 characters\n- x402_version: 2\n- scheme: exact · network: eip155:8453 · asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (USDC, 6 decimals)\n- amount: 20000 atomic = 0.02 USDC\n- pay_to: 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3\n- max_timeout_seconds: 60\n- extensions: bazaar\n\n## 4. The response it promises (返る形)\n- The 402 body declares the paid response schema. Declared keys this call could read: product_id, schema_version, ok, snapshot, data_period, data_summary, sample, coverage, changes, targets.\n- Required fields in accepts[0]: scheme, network, maxAmountRequired (v1 form), amount, asset, payTo, resource, maxTimeoutSeconds, extra.\n- Note on the field: 87.8% of the 2,433 resources we recovered declare only {type, example} and no field list. This target is one of the few that names its keys.\n\n## 5. Delivery evidence (納品実績)\n- First party: yes (this service operates the target).\n- This service's own paid-delivery record at the measured moment: 3 external deliveries, 2 distinct paying addresses, 0.101 USDC, each with a Base transaction hash and a delivery-log key at status 200.\n- Third party: this service records deliveries only for its own endpoints, so for any other target it reports 0 known deliveries and says so instead of implying more.\n\n## 6. Change since the previous measurement (前回からの変更)\n- Stored checks of this URL before this one: 0 at the sample date — this is the baseline.\n- Baseline note: the next check of the same URL returns the changes since this one.\n- Diff fields watched: alive, http_status, content_type, final_url, challenge.present, challenge.amount_atomic, challenge.asset, challenge.network, challenge.pay_to, challenge.max_timeout_seconds, required fields added/removed, response-shape keys added/removed.\n\n## 7. Where the price sits in the market (市場での位置)\n- Measured distribution of 2,330 priced x402 resources (2026-10-11 → 10-16): median $0.01, p90 $0.01, p99 $0.10, max $5.00.\n- Bands: $0.01–0.05 = 72.9% · <$0.005 = 18.2% · ≥$0.10 = 1.6%.\n- This target: 0.02 USDC, inside the $0.01–0.05 band that holds three quarters of the market.\n\n## 8. Verdict and next step (判定)\n- Liveness: PASS — it answered over HTTP with the expected 402.\n- Price terms: PASS — scheme, network, asset, receiver and timeout are all present and readable by a v2 client.\n- Response schema: INVESTIGATE — the keys are named, but the types and the required/optional split are not; ask for one real response before wiring it in.\n- Delivery evidence: PASS for a first-party target (3 recorded deliveries with transaction hashes).\n- Change tracking: BASELINE — this was the first stored check, so there is no diff yet.\n- Next step: pay once with a small amount and compare the delivered body against the declared keys; then re-run this report to get the first real diff.\n"
        }
      },
      {
        "product_id": "x402-measured-brief",
        "schema_version": 1,
        "title": "What actually sells on x402 — a measured brief",
        "what_it_is": "One measured report answering one question: on x402, what is actually priced, who actually pays, and what shape carries a price above $0.10? The material is this service's own catalogue observation (1,396 raw snapshots, 2,433–2,503 recovered resources, 2026-10-11 to 10-16) and the free tier of x402watch.",
        "when_to_buy": "Buy it before you price an x402 resource of your own, before you decide which category to enter, or when you want the market's price and buyer mix with the source and the limits attached to every number.",
        "subject": {
          "what_is_delivered": [
            "the full brief, version 1.0, measured 2026-10-16 (10763 characters of Markdown)",
            "the price distribution over 2,330 priced resources, with bands",
            "buyer labels and 24-hour activity from the x402watch free tier",
            "a category table: supply, 24h transactions, real-volume share, agent share, median, mean (11 categories)",
            "the types that carry a price above $0.10, and the two shapes behind them",
            "the supply picture: 249 hosts, 64 template families, 87.8% empty schemas",
            "five gaps the data shows, and a pricing decision table",
            "provenance and reproduction: every file, count and script"
          ],
          "not_included": [
            "no x402 paid route: this product is bought with a plain USDC transfer on Base and a claim, not with an x402 client",
            "no subscription and no automatic renewal: one payment, one report",
            "no refunds: the report is produced and returned in the claim response"
          ],
          "source": "this service's own observation recorder plus the x402watch free API; every number carries its source and the limits of the sample"
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/brief/claim",
            "params": null,
            "body": "{ \"tx\": \"0x…\" } — the transaction hash of your 1 USDC transfer on Base.",
            "note": "The product page is GET /brief/buy (free, with the table of contents and a preview). A GET on /brief/claim answers 405. A malformed tx is answered with 400 before any on-chain call."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string",
              "ok": "boolean",
              "status": "confirmed",
              "replay": "boolean — true when the same tx was claimed before (the same report is returned)",
              "payment": "{ payer, amount_usd, block, network, asset, pay_to }",
              "report": "{ title, version, format: markdown, filename, markdown }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/brief/buy",
            "returns": "the price, the table of contents, the claim steps and a preview of the report"
          }
        },
        "price": {
          "amount_atomic": "1000000",
          "asset_decimals": 6,
          "amount_usd": 1,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "direct_transfer",
          "per": "one report"
        },
        "payment": {
          "protocol": "direct USDC transfer on Base (not x402)",
          "asset_transfer_method": "plain ERC-20 transfer",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "claim": "POST /brief/claim with the transaction hash",
          "verification": "The Worker reads the receipt from public Base RPC endpoints and requires a USDC Transfer to pay_to of at least 1 USDC, the same received >= required check the other human-facing routes use.",
          "terms_of_use": "The claim is idempotent: reporting the same transaction hash again returns the same report and does not issue a second one."
        },
        "contents": [
          {
            "title": "Sources, counts and limits"
          },
          {
            "title": "The price distribution (2,330 priced resources)"
          },
          {
            "title": "Who pays: buyer labels and 24h activity"
          },
          {
            "title": "Category by category: supply vs buyer mix"
          },
          {
            "title": "The types that carry a price above $0.10"
          },
          {
            "title": "What you compete with: 249 hosts, 64 template families, empty schemas"
          },
          {
            "title": "The five gaps the data shows"
          },
          {
            "title": "What I would charge, given these numbers"
          },
          {
            "title": "Provenance and reproduction"
          }
        ],
        "purchase_example": {
          "step_1": "send 1 USDC on Base to 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "step_2": "curl -sS -X POST https://<worker-host>/brief/claim -H 'content-type: application/json' -d '{\"tx\":\"0x<your tx hash>\"}'   -> 200 with the brief in report.markdown",
          "step_3": "read report.markdown, or open the human page /brief/buy in a browser",
          "note": "The claim is idempotent: reporting the same transaction hash again returns the same report. No x402 client is needed."
        },
        "listing_notes": {
          "keywords": [
            "x402",
            "market data",
            "price distribution",
            "measured brief",
            "buyer labels",
            "category analysis",
            "USDC"
          ],
          "differentiator": "A frozen, versioned measurement of the x402 market's prices, buyer mix and product shapes, with the bias of the sample stated rather than hidden.",
          "payment_note": "Plain USDC transfer on Base, then a claim; no x402 client is needed to buy it."
        },
        "free_preview": {
          "note": "About a third of the report: the sources and limits and the full price distribution.",
          "markdown": "# What actually sells on x402 — a measured brief — free preview\nMeasured 2026-10-16. Version 1.0. The full brief adds the demand side, the category table, the types that carry a price above $0.10, the supply picture, the five gaps and a pricing decision table.\n\n## 1. Sources, counts and limits\n- Source A — our own recorder: 1,396 raw HTTP snapshots of the facilitator catalogue and discovery APIs, 2026-10-11 → 2026-10-16. 933 parsed completely; 463 recovered resource by resource. 2,433–2,503 unique resources recovered.\n- Source B — x402watch free API (api.x402.printmoneylab.com), 2026-10-16T04:49Z: landing-stats and 33 categories.\n- Limit: the facilitator index holds about 19,080 resources. We recovered 12.8% of it, biased to the largest hosts (rallylive.ca 974, saylorinnovations.com 362). Read every number below as \"of what we could observe\", not \"of the market\".\n- Limit: category-level unique buyer counts are behind a paid API and were not bought. The demand section uses buyer labels, 24h transactions and service counts as a proxy and says so.\n\n## 2. The price distribution (2,330 priced resources)\n- min $0.001 · median $0.01 · p90 $0.01 · p99 $0.10 · max $5.00\n- $0.01–0.05: 1,699 (72.9%) · below $0.005: 424 (18.2%) · $0.005–0.01: 142 · $0.05–0.1: 28 · $0.1–1: 33 · ≥$1: 4 · price unset: 172 (7.1%)\n- $0.01 is the de facto unit price. Everything at $0.10 or above is 37 resources out of 2,330 — 1.6%.\n\n## 3. Who pays (headline)\n140,843 services indexed · 24,555,149 transactions analysed · 12,295 active buyers · real volume 89.1%. In the last 24 hours the 33 categories together did 21 transactions for $0.044, and only two categories traded at all.\n"
        }
      },
      {
        "product_id": "x402-output-contract",
        "schema_version": 1,
        "title": "x402 output contract — what does this 402 return?",
        "what_it_is": "Ask one x402 URL and get the output contract its 402 actually declares, normalised into field names, types and required flags, with the weaknesses (no field names, empty properties, no error shape) stated as flags instead of a guess.",
        "when_to_buy": "Buy one delivery when an agent has to bind to a paid endpoint whose shape you cannot read from the 402 alone, or when you are about to pay an unknown seller and want to know what the 200 will contain first. The measured reason: over 2433 observed x402 resources 100% declare an output schema and 87.8% declare only {type, example}, so 'call it and look at the example' is the only option most sellers leave you.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/contract",
            "params": {
              "url": "absolute http(s) URL of the x402 resource whose output contract to read (required)"
            },
            "note": "The bare path answers 402 as well: a catalogue reads the price from the challenge before buying."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "url": "string — the target that was read",
              "x402Version": "number|null — the x402 version its 402 declared",
              "mime": "string|null — the mimeType the target declared for the delivery",
              "output": {
                "fields": "[{name, type, required, example}] — field by field, from properties or from example (fields_from says which)",
                "fields_from": "\"properties\" | \"example\" | \"none\"",
                "declared": "boolean — an output schema exists at all",
                "declared_keys": "string[] — the keys the declared output schema actually has",
                "schema_only_type_example": "boolean — true means nothing but {type, example} is declared",
                "properties_empty": "boolean — properties is present but names no field",
                "example": "the declared example, or null"
              },
              "error_shape_declared": "boolean — the 402 declares what a failed paid call returns",
              "weakness": "[{code, detail}] — the measured gaps, or no_output_contract when there is nothing to bind to",
              "fetched_at": "ISO-8601 UTC, when the target was read",
              "sha256": "hex — SHA-256 of the normalised output contract block, so a later read can be compared"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/contract/sample",
            "returns": "one real report, free: /contract/sample?url=<any x402 URL>, or /contract/sample with no parameter to read this service's own /history. The sample is the same shape the paid route returns, and says which it read."
          }
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /contract response",
          "note": "Priced with the other pre-payment checks: level with /check (0.02) and /compat-check (0.02), inside the measured $0.01-0.05 band. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The report states what the target served at that moment, as served."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/contract?url=https://api.example.com/paid'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/contract?url=https://api.example.com/paid'   -> 200 with the normalised output contract",
          "note": "Look first: GET https://<worker-host>/contract/sample is free and returns the same shape."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one query parameter for the delivery; the bare path answers 402, so a verify-only listing needs no first settlement. GET (not POST) on purpose.",
          "distinct_from_siblings": "GET /check answers whether the target is alive and what it charges; GET /compat-check answers whether its 402 is readable by v1 or v2 clients. This one answers what the paid 200 will contain, field by field.",
          "failure_answers": "400 (missing_url, invalid_url, blocked_target, credentials_not_allowed) before anything is fetched; 502 (unreachable, timeout, too_many_redirects) when the target could not be read; 200 with declared:false when it answered but serves no readable x402 output contract. A non-x402 route is a finding, not an error.",
          "price": "The 402 response always carries CONTRACT_PRICE_ATOMIC (0.02 USDC). product.json and this catalogue come from the same CONFIG.",
          "claims": "Do not promise a delivery for third-party sellers and do not invent a shape. The report states the fields that were declared or observed, and the flags that are true."
        }
      },
      {
        "product_id": "x402-news-headlines",
        "schema_version": 1,
        "title": "Headlines from public RSS, newest first and inside a stated freshness window",
        "what_it_is": "One GET returns up to 20 headlines (max 50) for one topic — the title, the URL, the time the feed published it, the source and its age in minutes — sorted newest first and filtered to the last 48 hours. 4 topics and 15 public RSS feeds (`markets`, `crypto`, `tech`, `world`) are read in parallel at the moment of the call.",
        "when_to_buy": "Buy one call when a step needs what is being reported right now, in a shape a program can use without parsing HTML: a market summary, a watchlist check, a daily brief, an alert rule, or an agent that has to decide whether something happened today. Typical case: you want the last day or two of headlines for one subject, with the publication time attached, and you do not want to build and maintain an RSS reader for it.",
        "subject": {
          "what_is_delivered": [
            "items: up to 20 headlines (max 50), newest first, each with title, url, published_at (ISO-8601 UTC), source and age_minutes",
            "freshness: the window used (max_age_hours), the newest and oldest published_at actually returned, fetched_at, how many items fell inside the window, and how many were dropped for being older or undated",
            "sources: one row per feed that was read, with its URL, whether the read succeeded, the HTTP status, how many of its items fell inside the window and how long the read took",
            "deduplication: the same headline carried by two feeds appears once"
          ],
          "not_included": [
            "no article bodies and no summaries: this is the headline, the link and the time",
            "no sentiment, no ranking and no recommendation: the order is publication time, newest first",
            "no archive: each call reads the feeds as they are at that moment and stores nothing"
          ],
          "source": "the public RSS feeds listed in the sources[] array of the response; every one of them is free to read and needs no key and no account",
          "live_call_semantics": "The feeds are read after the payment is verified, in the same request that returns them, in parallel, each with a 6 second cutoff and a 512 KiB body limit. A feed that fails or times out is reported in sources[] with ok:false and does not fail the delivery: the headlines from the other feeds are still returned."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/news",
            "params": {
              "topic": "optional. Which feed set to read: markets, crypto, tech, world; omitted means markets. Any other value is refused with 400 before any payment is verified, and the response lists the allowed topics.",
              "limit": "optional. How many headlines to return, 1 to 50; omitted means 20. A value below the minimum, above the maximum or not a whole number is refused with 400 before any payment is verified."
            },
            "body": "none",
            "note": "The bare path answers 402 without a payment header, so a catalogue can confirm this is an x402 resource by calling it once. The 402 is the same whether or not topic and limit are passed."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-news-headlines\"",
              "schema_version": "number",
              "topic": "string — the feed set that was read",
              "requested_limit": "number — the limit that was asked for",
              "count": "number — how many headlines are in items[]",
              "freshness": "{ max_age_hours, fetched_at, newest_published_at, oldest_published_at, items_within_window, dropped_older_than_window, dropped_undated }",
              "items": "[ { title, url, published_at (ISO-8601 UTC), source, age_minutes } ] — newest first",
              "sources": "[ { source, feed_url, ok, http_status, items_in_window, latency_ms } ] — one row per feed that was read",
              "unavailable_sources": "[ { source, feed_url, ok:false, error } ] — only the feeds that could not be read",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and the source list (no headlines are given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /news — one delivery of up to 20 headlines from the topic you name",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The headline, link, source and publication time are the facts the feed published at that moment."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/news?topic=markets&limit=20'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/news?topic=markets&limit=20'   -> 200 with the headlines",
          "response_example": "{\n  \"topic\": \"markets\",\n  \"count\": 20,\n  \"freshness\": { \"max_age_hours\": 48, \"fetched_at\": \"2026-10-16T20:41:07.000Z\",\n      \"newest_published_at\": \"2026-10-16T20:36:00.000Z\", \"oldest_published_at\": \"2026-10-16T02:12:00.000Z\",\n      \"items_within_window\": 94, \"dropped_older_than_window\": 12, \"dropped_undated\": 0 },\n  \"items\": [ { \"title\": \"Stocks close at a record as earnings beat\", \"url\": \"https://…\",\n      \"published_at\": \"2026-10-16T20:30:00.000Z\", \"source\": \"MarketWatch\", \"age_minutes\": 11 } ],\n  \"sources\": [ { \"source\": \"BBC Business\", \"feed_url\": \"https://…\", \"ok\": true, \"http_status\": 200,\n      \"items_in_window\": 28, \"latency_ms\": 180 } ]\n}",
          "note": "The topic and the limit are query parameters, so a scheduler or an agent can call it as a plain GET. Every item carries published_at, so you can filter again on your side without another call."
        },
        "listing_notes": {
          "resource_type": "Plain GET with two optional query parameters, so a read-only probe that gets a 402 is enough for a catalogue to list it. The 402 carries the allowed topics and the freshness window.",
          "distinct_from_siblings": "The other products report what this service observed about the x402 market, or probe one target. This one reads public news feeds at request time and returns what they are publishing now.",
          "price": "The 402 response always carries NEWS_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "news",
            "headlines",
            "rss",
            "market news",
            "crypto news",
            "tech news"
          ],
          "claims": "State the sources, the freshness window and the age of each headline. Do not describe the output as comprehensive, real-time or verified by this service."
        }
      },
      {
        "product_id": "x402-catalog-families",
        "schema_version": 1,
        "title": "Template families in the observed x402 catalog: which descriptions are mass-produced, and along which axis",
        "what_it_is": "One GET returns the 30 template families found in this service's own snapshot of the public x402 catalog (2562 unique resources, 2400 with a description). Each family is a set of resources whose descriptions share a template and whose declared schema matches; the response gives the member count, the axis the family varies along (the variable slot with the most distinct values, with sample values), the template with its slots, the schema fields, the host count, the price band and up to three representative resources.",
        "when_to_buy": "Buy one call when you are deciding how to shape or split your own x402 listing: which axes competitors actually multiply along, how large those families get, what the shared template says, and what the price band of a mass-produced family is. It replaces reading hundreds of catalogue entries by hand.",
        "subject": {
          "what_is_delivered": [
            "families: every family with at least 3 members, largest first, each with family_id, rank, members, axis, axis_values, axis_distinct, template, schema_fields, hosts, host_count, price_usd and representatives",
            "catalog: the snapshot this was computed from — raw snapshot count, unique resources, resources with a description, observation period, host count and top-10 host share",
            "axis_counts: how many families vary along each axis (tld, selector, domain, number, url, literal, token, none)"
          ],
          "not_included": [
            "no live catalogue read: the answer comes from the bundled snapshot named in catalog.observed_from/observed_to",
            "no per-resource full listing: representatives are up to three per family, not every member",
            "no revenue or demand figures: this reports the shape of the supply, not who bought what"
          ],
          "source": "this service's own observation of the public x402 facilitator catalogue (bundled snapshot)",
          "live_call_semantics": "The families are computed by build-families.mjs from the raw snapshots and shipped with the Worker, so the answer is deterministic and identical for the same query."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/catalog/families",
            "params": {
              "min_members": "optional. Only families with at least this many members (integer >= 2); omitted means 3.",
              "axis": "optional. Only families whose axis equals this value (tld, selector, domain, number, url, literal, token, none).",
              "limit": "optional. How many families to return, 1 to 200; omitted means 200."
            },
            "body": "none",
            "note": "Invalid parameters are refused with 400 before any payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-catalog-families\"",
              "schema_version": "number",
              "generated_at": "string — when the bundled snapshot was computed",
              "method": "string — how a family is defined",
              "catalog": "{ source, raw_snapshots, unique_resources, with_description, observed_from, observed_to, hosts, top10_share_pct, max_host_members }",
              "filters": "{ min_members, axis, limit }",
              "count": "number — families returned",
              "total_families": "number — families in the snapshot at the default minimum",
              "max_members": "number — the largest family",
              "axis_counts": "{ axis: number }",
              "families": "[ { family_id, rank, members, axis, axis_values, axis_distinct, variable_slots, template, schema_fields, hosts, host_count, price_usd, representatives } ]",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and the family count (no families are given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "50000",
          "asset_decimals": 6,
          "amount_usd": 0.05,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /catalog/families — the whole family map for the named snapshot",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The family map is an aggregate of descriptions that were public in the observed snapshot."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/catalog/families'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/catalog/families'   -> 200 with the family map",
          "response_example": "{\n  \"count\": 30, \"total_families\": 30, \"max_members\": 80,\n  \"families\": [ { \"family_id\": \"fam-001\", \"rank\": 1, \"members\": 80,\n      \"axis\": \"selector\", \"axis_values\": [\"sendgrid._domainkey.\",\"namecheap._domainkey.\",\"marketo._domainkey.\"],\n      \"template\": \"dkim public key selector <q> domain looks <var> <var> <var> <var> <var> <var> <var> <var> \",\n      \"price_usd\": {\"min\":0.01,\"median\":0.01,\"max\":0.01},\n      \"representatives\": [ { \"resource\": \"https://dns.intel.rallylive.ca/dns/dkim/ionos\",\n          \"description\": \"DKIM public key for selector \\\"ionos\\\" of a domain: looks up ionos._domainkey.<dom\" } ] } ]\n}",
          "note": "min_members, axis and limit are query parameters, so a scheduler or an agent can call it as a plain GET."
        },
        "listing_notes": {
          "resource_type": "Plain GET with three optional query parameters, so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other products report what this service observed about a target or the market's numbers. This one reports the repeated shapes in the catalogue itself: which descriptions are one template, and along which axis they multiply.",
          "price": "The 402 response always carries CATALOG_FAMILIES_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "x402",
            "catalog",
            "families",
            "template",
            "mass-produced",
            "market map"
          ],
          "claims": "State that the map comes from this service's observed snapshot and name the period. Do not describe it as the whole market or as live."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": true
        },
        "limits": {
          "min_members": 3,
          "min_limit": 1,
          "max_limit": 200,
          "default_limit": 200,
          "axes": [
            "selector",
            "token",
            "none",
            "tld",
            "domain"
          ]
        }
      },
      {
        "product_id": "x402-lei-lookup",
        "schema_version": 1,
        "title": "LEI lookup: the official LEI, legal name, registered address and status of a company, from the GLEIF register",
        "what_it_is": "One GET looks a company up in the GLEIF register (Global Legal Entity Identifier Foundation) and returns the official LEI, the legal name, the registered and headquarters addresses, the jurisdiction, the entity status and the registration status, read from the public GLEIF API at the moment of the call. A company name and a 20-character LEI both work, and the response names the exact API URL and the time the values were fetched.",
        "when_to_buy": "Buy one call when you have a company name or an LEI and need the register's own answer — onboarding, counterparty checks, or attaching a stable legal-entity identifier to a record — without integrating GLEIF yourself.",
        "subject": {
          "what_is_delivered": [
            "results[]: one entry per matching record with lei, legal_name, legal_name_language, other_names, entity_status, registration_status, jurisdiction, category, legal_form, entity_creation_date, legal_address, headquarters_address, registration{...} and gleif_record_url",
            "total_matches: how many records the register holds for that name",
            "source: the GLEIF API URL that was read, the time it was fetched, the HTTP status, the latency and the data licence (CC0 1.0)"
          ],
          "not_included": [
            "no financial or credit data: only what the GLEIF register itself returns",
            "no live streaming: one read per paid call",
            "no second source: the values are GLEIF's, not a merge of registries"
          ],
          "source": "GLEIF public API (https://api.gleif.org/api/v1/lei-records), data licence CC0 1.0",
          "live_call_semantics": "The GLEIF API is read once per paid call, with a 6 second cutoff; nothing is stored or cached."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/lei",
            "params": {
              "q": "required. A company name (matched against the legal name) or a 20-character LEI, 2 to 100 characters.",
              "limit": "optional. How many matching records to return, 1 to 20; omitted means 5 (ignored for a direct LEI lookup)."
            },
            "body": "none",
            "note": "A missing or out-of-range q and an invalid limit are refused with 400 before any payment is verified, and GLEIF is not read."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-lei-lookup\"",
              "schema_version": "number",
              "query": "string — what was looked up",
              "query_type": "\"lei\" or \"legal_name\"",
              "count": "number — records returned",
              "total_matches": "number — records the register holds for a name search",
              "source": "{ name, api, request_url, data_license, fetched_at, http_status, ok, latency_ms, error }",
              "results": "[ { lei, legal_name, legal_name_language, other_names, entity_status, registration_status, jurisdiction, category, legal_form, entity_creation_date, legal_address{address_lines,city,region,country,postal_code}, headquarters_address{...}, registration{initial_registration_date,last_update_date,next_renewal_date,managing_lou,corroboration_level}, gleif_record_url } ]",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no register data is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /lei — one lookup, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The register values come from the GLEIF public API and are served with their source and fetch time."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/lei?q=Apple%20Inc'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/lei?q=Apple%20Inc'   -> 200 with the register's answer",
          "response_example": "{\n  \"query\": \"Apple Inc\", \"query_type\": \"legal_name\", \"count\": 1, \"total_matches\": 24,\n  \"results\": [ { \"lei\": \"HWUPKR0MPOU8FGXBT394\", \"legal_name\": \"Apple Inc.\", \"entity_status\": \"ACTIVE\",\n      \"registration_status\": \"ISSUED\", \"jurisdiction\": \"US-CA\",\n      \"legal_address\": { \"city\": \"Glendale\", \"region\": \"US-CA\", \"country\": \"US\", \"postal_code\": \"91203\" } } ],\n  \"source\": { \"name\": \"GLEIF — Global Legal Entity Identifier Foundation\",\n      \"api\": \"https://api.gleif.org/api/v1/lei-records\", \"fetched_at\": \"2026-10-17T00:00:00.000Z\" }\n}",
          "note": "q is a query parameter, so an agent can call it as a plain GET; a 20-character LEI is looked up directly."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter, so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other products report what this service observed or measured. This one reads a public register (GLEIF) and returns its own values for a company, with the source named.",
          "price": "The 402 response always carries LEI_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "lei",
            "gleif",
            "legal-entity",
            "company-lookup",
            "kyc",
            "register"
          ],
          "claims": "Name GLEIF as the source and carry the fetched_at. Do not describe the values as this service's own data."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "min_query_length": 2,
          "max_query_length": 100,
          "min_limit": 1,
          "max_limit": 20,
          "default_limit": 5,
          "timeout_ms": 6000
        }
      },
      {
        "product_id": "x402-holiday-calendar",
        "schema_version": 1,
        "title": "Public holidays for one country and year, with the weekday and the days until each one",
        "what_it_is": "One GET returns the public holidays that Nager.Date publishes for one country and one year: the date, the local-language name, the English name, the holiday types, the weekday and how many days from today each one falls. The response names the exact API URL and the time it was fetched.",
        "when_to_buy": "Buy one call when a scheduler, a settlement calendar or an agent has to know which days are public holidays in a country — to skip non-business days, to place a reminder before a long weekend, or to check whether a date is a holiday — without integrating and maintaining a holiday data source.",
        "subject": {
          "what_is_delivered": [
            "holidays[]: one entry per holiday, sorted by date, with date, local_name, name, types, weekday, global, counties and days_from_today",
            "count, first_date, last_date, and upcoming[]: the next holidays on or after today (up to 5)",
            "source: the Nager.Date API URL that was read, the time it was fetched, the HTTP status, the latency and the data licence (CC0 1.0)"
          ],
          "not_included": [
            "no school holidays, no observances and no regional calendars beyond what the source returns",
            "no live streaming and no archive: one read per paid call, nothing stored or cached",
            "no second source: the values are Nager.Date's, not a merge of calendars"
          ],
          "source": "Nager.Date public API (https://date.nager.at), data licence CC0 1.0",
          "live_call_semantics": "Nager.Date is read once per paid call, with a 6 second cutoff; nothing is stored or cached. A failed read is reported in source.ok with the error, and the delivery still returns the source facts."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/holidays",
            "params": {
              "country": "required. ISO 3166-1 alpha-2 country code, two letters, e.g. JP, US, DE.",
              "year": "optional. Four-digit year, 1990 to 2100; omitted means the current year."
            },
            "body": "none",
            "note": "A missing or malformed country and an out-of-range year are refused with 400 before any payment is verified, and Nager.Date is not read."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-holiday-calendar\"",
              "schema_version": "number",
              "country": "string — uppercase ISO 3166-1 alpha-2 code",
              "year": "number",
              "count": "number — holidays returned",
              "first_date": "string — earliest holiday date (YYYY-MM-DD) or null",
              "last_date": "string — latest holiday date (YYYY-MM-DD) or null",
              "holidays": "[ { date, local_name, name, types, weekday, global, counties, days_from_today } ] — sorted by date",
              "upcoming": "[ ...same shape... ] — the next holidays on or after today, up to 5",
              "source": "{ name, api, request_url, data_license, fetched_at, http_status, ok, latency_ms, error }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no holiday data is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "3000",
          "asset_decimals": 6,
          "amount_usd": 0.003,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /holidays — one country-year, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The holiday values come from the Nager.Date public API and are served with their source and fetch time."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/holidays?country=JP&year=2026'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/holidays?country=JP&year=2026'   -> 200 with the holidays",
          "response_example": "{\n  \"country\": \"JP\", \"year\": 2026, \"count\": 16,\n  \"holidays\": [ { \"date\": \"2026-01-01\", \"local_name\": \"元日\", \"name\": \"New Year's Day\",\n      \"types\": [\"Public\"], \"weekday\": \"Thursday\", \"global\": true, \"days_from_today\": -290 } ],\n  \"source\": { \"name\": \"Nager.Date\", \"api\": \"https://date.nager.at/api/v3/PublicHolidays\",\n      \"fetched_at\": \"2026-10-18T00:00:00.000Z\", \"data_license\": \"CC0 1.0\" }\n}",
          "note": "country and year are query parameters, so an agent can call it as a plain GET; the year defaults to the current year."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (country) and one optional one (year), so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other products report x402 market observations or probe one target. This one reads a public holiday calendar and returns its own values for a country-year, with the source named.",
          "price": "The 402 response always carries HOLIDAYS_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "holidays",
            "public holidays",
            "calendar",
            "business days",
            "bank holidays",
            "country"
          ],
          "claims": "Name Nager.Date as the source and carry the fetched_at. Do not describe the values as this service's own data."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "min_year": 1990,
          "max_year": 2100,
          "timeout_ms": 6000
        }
      },
      {
        "product_id": "x402-mailauth-check",
        "schema_version": 1,
        "title": "SPF, DMARC and MX for one domain — with the records behind each answer",
        "what_it_is": "One GET returns four keys for one domain: spf (boolean), dmarc (boolean), mx_count (number) and evidence. evidence carries the exact SPF TXT record and DMARC TXT record the booleans were decided from, the MX hosts and preferences, null_mx when the domain publishes a null MX (0 .), and the resolution state per query — so an empty answer can be told apart from a failed upstream read. An email authentication check, not a deliverability score.",
        "when_to_buy": "Buy one call when a signup, an onboarding flow, a vendor check or an agent has to know whether a domain publishes SPF and DMARC and how many MX hosts it has — before sending mail as that domain, before trusting it, or while auditing a list of domains. A single request answers it without integrating three DNS lookups and the TXT quoting rules.",
        "subject": {
          "what_is_delivered": [
            "spf: true when the apex TXT set contains a record matching /^v=spf1(\\s|$)/i",
            "dmarc: true when the _dmarc TXT set contains a record matching /^v=DMARC1\\s*;/i",
            "mx_count: number of non-null MX records (a null MX of 0 . yields 0 and evidence.null_mx=true)",
            "evidence: the matching SPF and DMARC records verbatim, the MX hosts with preferences, the resolution state per query (records | none | nxdomain), and the source endpoint and checked_at"
          ],
          "not_included": [
            "no DKIM selector discovery, no BIMI, no MTA-STS and no TLS-RPT",
            "no deliverability, reputation or spam score, and no claim that a domain can or cannot send mail",
            "no bulk export of raw DNS records and no resale of the upstream answer: only the three records behind this one answer are returned",
            "no archive: each paid call returns the records as they are at that moment (a short cache may serve the same answer)"
          ],
          "source": "Cloudflare DNS-over-HTTPS JSON endpoint (https://cloudflare-dns.com/dns-query), queried with Accept: application/dns-json; the endpoint is named in every response under evidence.source",
          "live_call_semantics": "On a cache miss, three queries are sent in one batch after input validation: TXT at the apex, TXT at _dmarc and MX. Each attempt is cut off at 2.5 seconds; a network error is retried once after a 250 ms jitter. HTTP 429/503 from the upstream returns 503 without charging; SERVFAIL or an unreadable answer returns 502. NXDOMAIN is a confirmed zero and is returned as false/false/0 with resolution nxdomain."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/mailauth",
            "params": {
              "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before any query. Domains over 253 characters, labels over 63 characters, empty labels and IP literals (IPv4 or IPv6) are refused with 400 before payment."
            },
            "body": "none",
            "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "spf": "boolean",
              "dmarc": "boolean",
              "mx_count": "number",
              "evidence": "{ domain, checked_at, source: { name, endpoint, format }, resolution: { apex_txt, dmarc_txt, mx }, spf_record, dmarc_record, mx: [ { exchange, preference } ], null_mx? }"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /mailauth — one domain, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The records are read from the public DNS-over-HTTPS JSON endpoint named in the response. No bulk export and no resale of the raw answer: only the records behind this one domain are returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/mailauth?domain=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/mailauth?domain=example.com'   -> 200 with the four keys",
          "response_example": "{\n  \"spf\": true, \"dmarc\": true, \"mx_count\": 0,\n  \"evidence\": { \"domain\": \"example.com\",\n      \"resolution\": { \"apex_txt\": \"records\", \"dmarc_txt\": \"records\", \"mx\": \"records\" },\n      \"spf_record\": \"v=spf1 -all\", \"dmarc_record\": \"v=DMARC1; p=reject;\",\n      \"mx\": [], \"null_mx\": true }\n}",
          "note": "domain is a query parameter, so an agent can call it as a plain GET."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (domain), so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other products inspect x402 resources, prices or market data. This one answers an email authentication question about any domain (SPF check, DMARC check, MX lookup) and returns the records behind the answer.",
          "keywords": [
            "spf check",
            "dmarc check",
            "mx lookup",
            "email authentication",
            "dns"
          ],
          "claims": "Name the DNS-over-HTTPS endpoint as the source in every response. Do not describe the booleans as this service's own data and do not promise an SLA or deliverability."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "max_domain_length": 253,
          "max_label_length": 63,
          "timeout_ms": 2500,
          "cache_ttl_seconds": 300,
          "negative_cache_ttl_seconds": 30,
          "client_requests_per_minute": 10,
          "domain_requests_per_second": 1,
          "concurrency": 4
        }
      },
      {
        "product_id": "x402-cidr-calculator",
        "schema_version": 1,
        "title": "IPv4 CIDR calculator: network, broadcast, netmask and host range in one GET",
        "what_it_is": "One GET takes an IPv4 address with an optional prefix (192.168.1.10/24) and returns the network address, broadcast address, netmask, wildcard mask, first and last usable host, total address count, usable host count and the address-class and scope flags. The answer is computed inside this Worker; nothing is fetched or stored.",
        "when_to_buy": "Buy one call when an agent or a script has to turn a CIDR block into the concrete addresses it needs — to build a firewall rule, to size a subnet, to check whether two addresses share a network, or to expand a range without writing bit arithmetic.",
        "subject": {
          "what_is_delivered": [
            "network, broadcast, netmask, wildcard and the first/last usable host",
            "prefix, total_addresses and usable_hosts",
            "ip_class and scope flags: is_private, is_loopback, is_link_local, is_multicast, is_reserved"
          ],
          "not_included": [
            "IPv4 only: IPv6 prefixes are refused with 400 before payment",
            "no allocation advice and no reachability test: this is address arithmetic, not a network probe",
            "no history or storage: the answer is computed for this request only"
          ],
          "source": "integer arithmetic inside worker.mjs, no upstream call and no third party",
          "live_call_semantics": "Nothing leaves the Worker. The calculation runs after the payment is verified, in the same request that returns it."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/cidr",
            "params": {
              "cidr": "required. An IPv4 address with an optional /0-32 prefix, e.g. 192.168.1.10/24. A bare address means /32."
            },
            "body": "none",
            "note": "A missing, malformed or out-of-range cidr is refused with 400 before any payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-cidr-calculator\"",
              "schema_version": "number",
              "input": "{ cidr }",
              "ip": "string — the address as given (dotted quad)",
              "prefix": "number — 0 to 32",
              "network": "string — network address",
              "broadcast": "string — broadcast address",
              "netmask": "string — dotted-quad netmask",
              "wildcard": "string — dotted-quad wildcard mask",
              "first_host": "string — first usable host",
              "last_host": "string — last usable host",
              "total_addresses": "number — 2^(32-prefix)",
              "usable_hosts": "number — total minus network and broadcast (RFC 3021 for /31 and /32)",
              "ip_class": "string — A, B, C, D or E",
              "is_private": "boolean",
              "is_loopback": "boolean",
              "is_link_local": "boolean",
              "is_multicast": "boolean",
              "is_reserved": "boolean",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no calculation result is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /cidr — one block, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The answer is address arithmetic computed from the input; no third-party data is used."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/cidr?cidr=192.168.1.10/24'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/cidr?cidr=192.168.1.10/24'   -> 200 with the calculation",
          "response_example": "{\n  \"ip\": \"192.168.1.10\", \"prefix\": 24,\n  \"network\": \"192.168.1.0\", \"broadcast\": \"192.168.1.255\",\n  \"netmask\": \"255.255.255.0\", \"first_host\": \"192.168.1.1\", \"last_host\": \"192.168.1.254\",\n  \"total_addresses\": 256, \"usable_hosts\": 254, \"is_private\": true\n}",
          "note": "cidr is a query parameter, so an agent can call it as a plain GET; a bare address is treated as /32."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter, so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other products report x402 market observations or read a public data source. This one computes subnet arithmetic locally and returns its own values for one block.",
          "price": "The 402 response always carries CIDR_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "cidr",
            "subnet",
            "ipv4",
            "netmask",
            "network address",
            "broadcast",
            "ip range"
          ],
          "claims": "Describe only IPv4 arithmetic. Do not claim reachability, allocation or IPv6 support."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        },
        "limits": {
          "prefix_min": 0,
          "prefix_max": 32,
          "ip_version": 4
        }
      },
      {
        "product_id": "x402-failure-declaration",
        "schema_version": 1,
        "title": "If this 402 fails, what comes back — and is there a refund?",
        "what_it_is": "Ask one x402 URL and get the failure behaviour its 402 actually declares: the error shape it names, any timeout and retry declaration, and any refund sentence, each with the path it was read from and the original text. Fields the 402 does not declare are returned as declared:false and listed in missing[] — the response never turns a missing declaration into the claim that no refund exists.",
        "when_to_buy": "Buy one delivery before paying an unknown seller whose 402 does not tell you what a failed paid call returns, or when you need the seller's own refund wording for a dispute record. Measured reason: the output schemas of 2433 observed x402 resources are declared but almost never name an error shape, and the 402 is the only machine-readable place a seller can state it.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/failure",
            "params": {
              "url": "absolute http(s) URL of the x402 resource whose failure declarations to read (required)"
            },
            "note": "The bare path answers 402 as well: a catalogue reads the price from the challenge before buying."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "target": "{url, host, path} — the target that was read",
              "declared": "boolean — the target served a readable x402 402 (false for a non-x402 200, returned as 200)",
              "x402Version": "number|null — the x402 version its 402 declared",
              "error_shape": "{declared, fields[], required[], source} — the error object the output schema names, if any",
              "timeout": "{declared, declarations[{key,path,value}]} — every timeout key the 402 carries, with its path",
              "retry": "{declared, declarations[{key,path,value}]} — every retry key the 402 carries",
              "refund": "{declared, text, declarations[{key,path,text|value}]} — the refund wording and where it was read",
              "missing": "string[] — the fields with declared:false in this 402 (error_shape, timeout, retry, refund)",
              "missing_meaning": "one sentence: a missing field is not a statement that the seller has no such policy",
              "fetched_at": "ISO-8601 UTC, when the target was read",
              "sha256": "hex — SHA-256 of the declarations block, so a later read can be compared"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/failure/sample",
            "returns": "one real report, free: reads this service's own /gas 402 declaration without a subrequest and returns the same shape the paid route returns."
          }
        },
        "price": {
          "amount_atomic": "50000",
          "asset_decimals": 6,
          "amount_usd": 0.05,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /failure response",
          "note": "Priced at 0.05, the top of the measured $0.01-0.05 band for one pre-payment read; /check and /compat-check sit at 0.02. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The report states what the target's 402 declared at that moment, as declared."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/failure?url=https://api.example.com/paid'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/failure?url=https://api.example.com/paid'   -> 200 with the declared failure behaviour",
          "note": "Look first: GET https://<worker-host>/failure/sample is free and returns the same shape."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one query parameter for the delivery; the bare path answers 402, so a verify-only listing needs no first settlement. GET (not POST) on purpose.",
          "distinct_from_siblings": "GET /check answers whether the target is alive and what it charges; GET /compat-check whether a v1/v2 client can read its 402; GET /contract what the paid 200 will contain. This one answers only what the 402 declares about failure, timeout, retry and refund — and says declared:false where it declares nothing.",
          "failure_answers": "400 (missing_url, invalid_url, blocked_target, credentials_not_allowed) before anything is fetched; 502 (unreachable, timeout, too_many_redirects) when the target could not be read; 200 with declared:false when it answered but serves no readable x402 challenge. A non-x402 route is a finding, not an error.",
          "price": "The 402 response always carries FAILURE_PRICE_ATOMIC (0.05 USDC). product.json and this catalogue come from the same CONFIG.",
          "claims": "Do not claim a refund policy the target did not state. missing[] names what this 402 does not declare; it does not say the seller has no such policy."
        }
      },
      {
        "product_id": "x402-dkim-check",
        "schema_version": 1,
        "title": "DKIM record lookup for one domain across common selectors",
        "what_it_is": "One GET checks one domain's DKIM selectors and returns, for each selector that has a key, the selector, key_type, key_bits, flags (testing / revoked) and the raw DKIM TXT record. The default set is 10 common selectors (default, google, selector1, selector2, s1, s2, k1, mail, dkim, smtp); selectors= overrides it with up to 20 comma-separated names. A selector that was checked and had no key is listed separately, and the response says not_found_in_checked_selectors instead of claiming the domain has no DKIM — another selector may exist. An email authentication check, not a deliverability score.",
        "when_to_buy": "Buy one call when an onboarding flow, a vendor check, a migration or an agent has to know whether a domain publishes a DKIM key under the selectors most providers use, how strong the key is, and whether it is still in testing or has been revoked — without issuing up to 20 TXT lookups and parsing the tag list and public key yourself.",
        "subject": {
          "what_is_delivered": [
            "found[]: one entry per selector that has a DKIM key, with selector, key_type (rsa or ed25519), key_bits, flags {testing, revoked} and the raw record verbatim",
            "not_found[]: the selectors that were checked and had no DKIM key (NXDOMAIN, empty answer, or TXT without a p= tag)",
            "conclusion: found, or not_found_in_checked_selectors — a statement about the checked selectors only, never a claim that the domain has no DKIM",
            "present: true when at least one checked selector has a key; null when none did (null means unknown beyond the checked list, not false)",
            "checked_selectors and checked_count: exactly which names were queried, so the answer can be reproduced",
            "evidence: source endpoint, checked_at, per-selector resolution (records | none | nxdomain | records_no_dkim) and absence_scope=checked_selectors_only"
          ],
          "not_included": [
            "no discovery of selectors outside the requested/default list and no claim that DKIM is absent from the domain",
            "no SPF, DMARC, MX, BIMI, MTA-STS or TLS-RPT",
            "no deliverability, reputation or spam score, and no validation that the key is currently used by a mail sender",
            "no bulk export of raw DNS records and no resale of the upstream answer: only the checked selectors are returned"
          ],
          "source": "Cloudflare DNS-over-HTTPS JSON endpoint (https://cloudflare-dns.com/dns-query), queried with Accept: application/dns-json; the endpoint is named in every response under evidence.source",
          "live_call_semantics": "On a cache miss, one TXT query is sent per selector at <selector>._domainkey.<domain> (up to 20), with at most 4 in flight. Each attempt is cut off at 2.5 seconds; a network error is retried once after a 250 ms jitter. HTTP 429/503 from the upstream returns 503 without charging; SERVFAIL or an unreadable answer returns 502. If every checked selector resolves successfully and none has a key, the response is 200 with conclusion=not_found_in_checked_selectors — never a 502, and never a claim of absence."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/dkim",
            "params": {
              "domain": "required. One bare domain name, lowercased, trailing dots removed and IDN labels converted to punycode. Over 253 characters, a label over 63 characters, an empty label and IP literals are refused with 400 before payment.",
              "selectors": "optional. Comma-separated DKIM selector names (1-63 letters, digits or hyphens each), at most 20; omitted means the 10 common selectors (default, google, selector1, selector2, s1, s2, k1, mail, dkim, smtp). An empty or malformed list is refused with 400 before payment."
            },
            "body": "none",
            "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "domain": "string",
              "present": "true | null (null = not found among the checked selectors, not a claim of absence)",
              "conclusion": "found | not_found_in_checked_selectors",
              "checked_count": "number",
              "found_count": "number",
              "checked_selectors": [
                "string"
              ],
              "found": "[ { selector, key_type, key_bits, flags: { testing, revoked }, record } ]",
              "not_found": [
                "string"
              ],
              "evidence": "{ domain, checked_at, source: { name, endpoint, format }, resolution: { <selector>: records | none | nxdomain | records_no_dkim }, absence_scope }"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dkim — one domain and one selector batch, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The records are read from the public DNS-over-HTTPS JSON endpoint named in the response. No bulk export and no resale of the raw answer: only the records behind this one domain and selector batch are returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/dkim?domain=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/dkim?domain=example.com&selectors=google,selector1'   -> 200",
          "response_example": "{\n  \"domain\": \"example.com\", \"present\": true, \"conclusion\": \"found\",\n  \"checked_count\": 2, \"found_count\": 1,\n  \"found\": [ { \"selector\": \"google\", \"key_type\": \"rsa\", \"key_bits\": 2048,\n      \"flags\": { \"testing\": false, \"revoked\": false }, \"record\": \"v=DKIM1; k=rsa; p=MIIB...\" } ],\n  \"not_found\": [\"selector1\"], \"evidence\": { \"resolution\": { \"google\": \"records\", \"selector1\": \"nxdomain\" } }\n}",
          "note": "domain is a query parameter, so an agent can call it as a plain GET."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (domain), so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "This answers the DKIM selector question and returns key strength and flags; /mailauth answers SPF, DMARC and MX. Neither is a deliverability score.",
          "keywords": [
            "dkim check",
            "dkim record lookup",
            "dkim selector",
            "email authentication",
            "dns"
          ],
          "claims": "Name the DNS-over-HTTPS endpoint as the source in every response. Do not present not_found_in_checked_selectors as proof that a domain has no DKIM, and do not promise an SLA or deliverability."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "max_domain_length": 253,
          "max_label_length": 63,
          "default_selectors": [
            "default",
            "google",
            "selector1",
            "selector2",
            "s1",
            "s2",
            "k1",
            "mail",
            "dkim",
            "smtp"
          ],
          "max_selectors": 20,
          "timeout_ms": 2500,
          "cache_ttl_seconds": 300,
          "negative_cache_ttl_seconds": 30,
          "client_requests_per_minute": 10,
          "domain_requests_per_second": 1,
          "concurrency": 4
        }
      },
      {
        "product_id": "x402-dns-lookup",
        "schema_version": 1,
        "title": "DNS record lookup in one GET: A, AAAA, CNAME, MX, NS, TXT, SOA or CAA",
        "what_it_is": "One GET takes a hostname and one record type and returns the records the public DNS publishes for it, with the TTL and the record data. It distinguishes three cases: records found, the name exists but has no record of that type, and the name does not exist (NXDOMAIN). An upstream failure is an error, never an empty answer.",
        "when_to_buy": "Buy one call when an agent or a script needs a single DNS fact, without carrying a resolver library or writing DNS-over-HTTPS plumbing: does the A record point where I expect, which MX hosts receive mail, what TXT or CAA policy is published, or does this name exist at all.",
        "subject": {
          "what_is_delivered": [
            "the requested records with type, TTL and data (TXT character-strings are unquoted and joined)",
            "count and resolution: records, none (name exists, no record of this type), or nxdomain (name does not exist)",
            "the source (public DoH JSON endpoint) and the fetch time"
          ],
          "not_included": [
            "one record type per call: A, NS, CNAME, SOA, MX, TXT, AAAA, CAA",
            "no recursion beyond what the resolver returns, no zone transfer, no history and no storage",
            "no DNSSEC validation claim and no uptime or propagation guarantee"
          ],
          "source": "Cloudflare DNS-over-HTTPS JSON API, one query per paid call",
          "live_call_semantics": "Nothing is fetched until a payment header is present. If the upstream cannot be read, the call is not charged."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/dns",
            "params": {
              "name": "required. A host name, e.g. example.com. Lowercased; IDN becomes punycode; trailing dots are removed.",
              "type": "optional. One of A, NS, CNAME, SOA, MX, TXT, AAAA, CAA. Default A. Invalid values are refused with 400 before payment."
            },
            "body": "none",
            "note": "A missing name or an invalid type is refused with 400 before payment. A bare /dns without a payment header returns 402."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-dns-lookup\"",
              "schema_version": "number",
              "query": "{ name, type }",
              "count": "number of records returned",
              "resolution": "records | none | nxdomain",
              "records": "array of { type, ttl, data }",
              "source": "{ name, endpoint, format, fetched_at }",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no lookup result is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dns — one name, one record type, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The records are returned as the public DNS resolver published them; no availability guarantee."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/dns?name=example.com&type=A'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/dns?name=example.com&type=A'   -> 200 with the records",
          "response_example": "{\n  \"query\": { \"name\": \"example.com\", \"type\": \"A\" },\n  \"count\": 2, \"resolution\": \"records\",\n  \"records\": [ { \"type\": \"A\", \"ttl\": 300, \"data\": \"93.184.216.34\" } ]\n}",
          "note": "type is optional and defaults to A; a missing or invalid type is refused with 400 before payment."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter and one optional type, so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other products answer about x402, email authentication (SPF/DMARC/MX), DKIM selectors or compute locally. This one returns one general DNS record (A, AAAA, CNAME, MX, NS, TXT, SOA, CAA) for any hostname.",
          "price": "The 402 response always carries DNS_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "dns lookup",
            "dns record",
            "a record",
            "mx record",
            "txt record",
            "cname",
            "caa",
            "nameserver"
          ],
          "claims": "Return the resolver's records for one type. Do not claim DNSSEC validation, propagation or completeness of the zone."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "record_types": [
            "A",
            "NS",
            "CNAME",
            "SOA",
            "MX",
            "TXT",
            "AAAA",
            "CAA"
          ],
          "default_type": "A",
          "max_domain_length": 253
        }
      },
      {
        "product_id": "x402-listing-fit",
        "schema_version": 1,
        "title": "Listing fit — does your x402 listing contain the words buyers type?",
        "what_it_is": "Ask one listed x402 resource URL and the words you expect a buyer to type. One GET reads the facilitator's public discovery listing for that URL once and returns only literal, case-insensitive matches against the listing's serviceName, tags and description: matched[], missing[], match_ratio and the description length. It does not predict search ranking and does not invent words the listing does not contain.",
        "when_to_buy": "Buy one call when you are about to list or edit an x402 resource and want to know whether the words a buyer would type are actually present in the one free-text field (and the tags) the discovery index exposes — before spending time on promotion you cannot measure.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/listing-fit",
            "params": {
              "url": "required. Absolute http(s) URL of the listed resource; matched literally against resource in the discovery index.",
              "q": "required. Words separated by spaces or commas; each word is matched case-insensitively as a literal substring."
            },
            "note": "A missing or invalid url and any empty q are refused with 400 before anything is read and before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "resource": "string — the matched discovery resource, or the requested URL when unlisted",
              "listed": "boolean — the discovery index has an item whose resource matches the URL",
              "query": "string — q as received (trimmed)",
              "matched": "string[] — words found in serviceName, tags or description (literal, case-insensitive)",
              "missing": "string[] — words not found",
              "match_ratio": "number — matched.length / words.length (0 to 1)",
              "listing": "{service_name, tags, description_chars} — the listing metadata that was read (listed only)",
              "checked_at": "ISO-8601 UTC, when the discovery index was read",
              "note": "\"literal match only; does not predict ranking\""
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/listing-fit/sample",
            "returns": "one free reading of this service's own /dns listing from the discovery index, with no subrequest to /dns and no payment. Optional q (default \"dns\") and optional url to read another listing, like /contract/sample."
          }
        },
        "price": {
          "amount_atomic": "10000",
          "asset_decimals": 6,
          "amount_usd": 0.01,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /listing-fit response",
          "note": "0.01 USDC, the measured median x402 price. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The answer states literal matches in the listing that was read at that moment; it is not a ranking claim."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/listing-fit?url=https://api.example.com/paid&q=invoice%2Creceipt'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/listing-fit?url=https://api.example.com/paid&q=invoice%2Creceipt'   -> 200",
          "note": "Look first: GET https://<worker-host>/listing-fit/sample is free and returns the same shape for this service's own /dns listing."
        },
        "listing_notes": {
          "resource_type": "Plain GET with two query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "The pre-payment checks (/check, /compat-check, /contract) read another seller's 402. This one reads the discovery index's listing metadata for one resource and matches the buyer's own words against it.",
          "failure_answers": "400 missing_url / invalid_url / missing_query before anything is read and before payment; 502 discovery_unavailable when the public discovery API cannot be read, and nothing is charged. An unlisted URL is 200 with listed:false — not an error and not an invented match.",
          "price": "The 402 response always carries LISTING_FIT_PRICE_ATOMIC (0.01 USDC). product.json and this catalogue come from the same CONFIG.",
          "claims": "Return literal matches only. Never claim a ranking, an impression count or a word the listing does not contain."
        }
      },
      {
        "product_id": "x402-text-hash",
        "schema_version": 1,
        "title": "SHA-256, SHA-512 or HMAC of any text in one paid GET",
        "what_it_is": "One GET hashes one piece of text with SHA-256, SHA-384, SHA-512 or SHA-1 and returns the digest as hex or base64, together with the byte lengths and the mode. Add key= to use HMAC with the same algorithm. The digest is computed once in this Worker with Web Crypto after the payment is verified; the text is not stored, logged or echoed back.",
        "when_to_buy": "Buy one call when an agent has text in memory and needs a stable checksum without shelling out to shasum, loading a crypto library, or trusting an LLM to produce a digest: content deduplication, integrity checks, cache keys and HMAC signatures for webhook payloads.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/hash",
            "params": {
              "text": "required. The text to hash; empty text= is valid and hashes the empty string.",
              "algo": "optional. sha256 (default), sha384, sha512 or sha1.",
              "encoding": "optional. hex (default) or base64.",
              "key": "optional. When present, compute HMAC with this key instead of a plain digest."
            },
            "note": "A missing text, an unsupported algo/encoding and text over 8192 characters are refused with 400 before payment. A key over 4096 characters is also refused before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "algo": "string — sha256 | sha384 | sha512 | sha1",
              "mode": "string — digest | hmac",
              "encoding": "string — hex | base64",
              "value": "string — the digest in the requested encoding",
              "digest_bytes": "number — 32 for sha256, 48 for sha384, 64 for sha512, 20 for sha1",
              "input_bytes": "number — UTF-8 byte length of text",
              "generated_at": "ISO-8601 UTC",
              "text_echoed": "boolean — always false; the input text is not returned"
            }
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /hash response",
          "note": "0.001 USDC, the low end of the measured band for one small call. The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The digest is computed for the text received in this request only; no storage and no verification claim about the text."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/hash?text=hello'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/hash?text=hello'   -> 200",
          "note": "The expected SHA-256 of hello is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824."
        },
        "listing_notes": {
          "resource_type": "Plain GET with query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /random generates new bytes and returns their hash; GET /hash hashes text the buyer already has, with a choice of algorithm, encoding and optional HMAC. No other route returns an HMAC.",
          "failure_answers": "400 missing_text / text_too_long / invalid_algo / invalid_encoding / key_too_long before payment; nothing is charged.",
          "price": "The 402 response always carries HASH_PRICE_ATOMIC (0.001 USDC). product.json and this catalogue come from the same CONFIG.",
          "claims": "Return the digest of the text actually received. Never claim the text is authentic, safe or stored."
        }
      },
      {
        "product_id": "x402-base-usdc-transfer",
        "schema_version": 1,
        "title": "Did this Base transaction move USDC to this address?",
        "what_it_is": "One GET reads a Base transaction receipt from a public RPC and answers whether it contains an ERC-20 Transfer of USDC (the canonical Base USDC contract) to the address you name, for the exact atomic amount you name. It returns the decoded from / to / amount_usdc, the block, the confirmations and the receipt status. On-chain transfer confirmation only; it does not prove delivery. オンチェーンの転送確認まで。納品の証明ではない。",
        "when_to_buy": "Buy one call when an agent or a person has a Base transaction hash and must decide, before releasing a good or a credit, whether that hash really carries the expected USDC transfer: a checkout that was paid out of band, a refund claim, a deposit the buyer says they sent, or a payment receipt someone pasted into a ticket.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/paid",
            "params": {
              "tx": "required. Base transaction hash: 0x followed by 64 hex characters.",
              "to": "optional. Recipient address to require (0x + 40 hex). Omit to accept any recipient.",
              "amount": "optional. Exact amount in atomic units (USDC has 6 decimals: 5000 = 0.005 USDC). Omit to accept any amount."
            },
            "note": "tx, to and amount are validated before any payment: a malformed value is 400 and nothing is read or charged. A bare GET /paid is 402 so catalogues can probe the price without reading the chain."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "answer": "true | false | null — null only when the chain was read but the transfer could not be decoded",
              "reason": "string — usdc_transfer_confirmed | tx_not_found | tx_reverted | no_usdc_transfer | recipient_mismatch | amount_mismatch | transfer_unreadable | logs_unreadable",
              "tx": "string — the normalised transaction hash",
              "status": "string | null — the receipt status (0x1 success, 0x0 reverted); null when the tx is not found",
              "block": "number | null — block number of the receipt",
              "confirmations": "number | null — head block minus the receipt block plus one at read time",
              "transfer": "{from, to, amount_usdc} | null — the USDC Transfer that was checked (or the closest one on a mismatch)",
              "checked_at": "ISO-8601 UTC",
              "note": "on-chain USDC transfer only; does not prove delivery"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /paid response",
          "note": "0.005 USDC: two public RPC reads and one exact on-chain match. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker reads the public Base RPC first (eth_getTransactionReceipt once, eth_blockNumber once). Only if both answers are readable does it POST the payment payload to the facilitator /verify and /settle.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The answer describes one USDC Transfer log in one Base transaction at read time. It is not a delivery receipt, not an invoice, and not a statement about anything the seller did off-chain."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/paid?tx=<Base tx hash>&to=<address>&amount=5000'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/paid?tx=<Base tx hash>&to=<address>&amount=5000'   -> 200",
          "free_sample": "curl -i 'https://<worker-host>/paid/sample'   -> 200 with one fixed, known confirmed transfer and no RPC call",
          "note": "The sample is a fixed real transaction measured once; it is not a live answer."
        },
        "listing_notes": {
          "resource_type": "Plain GET with query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /gas reads live gas prices. GET /paid reads one transaction's receipt and matches one USDC Transfer to your recipient and amount. No other route answers 'did this tx move USDC to me?'.",
          "failure_answers": "400 missing_tx / invalid_tx / invalid_to / invalid_amount before anything is read or charged; 502 rpc_unreadable when the public RPC cannot be read, before payment verification (nothing is charged).",
          "price": "The 402 response always carries PAID_PRICE_ATOMIC (0.005 USDC). product.json and this catalogue share the same CONFIG.",
          "claims": "Report only the decoded Transfer and the receipt fields. Never claim the goods were delivered, the payment was for a particular invoice, or that other logs in the same transaction are absent."
        }
      },
      {
        "product_id": "x402-wikipedia-summary",
        "schema_version": 1,
        "title": "Wikipedia summary of one article, with its source and licence, in one paid GET",
        "what_it_is": "One GET reads the public Wikipedia summary API once and returns the article's title, short description, plain-text extract, article type, Wikidata item, page URL and thumbnail URL for the language you name. The response also carries the exact API URL that was read, the HTTP status, the fetch time and the text licence (CC BY-SA 4.0), so the summary can be attributed. If no article matches the exact title, the answer is found:false and no text is invented.",
        "when_to_buy": "Buy one call when an agent needs a short, attributable introduction to a person, company, place or term without scraping a wiki page, parsing HTML, or trusting a model to recall facts: grounding a research answer, adding context to an entity mentioned in a ticket, or checking what a name refers to before acting on it.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/wiki",
            "params": {
              "q": "required. An article title, e.g. Apple Inc. or 東京 (at most 300 characters).",
              "lang": "optional. Wikipedia language: en, ja, de, fr, es, it, pt, ru, zh, ko (default en)."
            },
            "note": "q and lang are validated before anything is read. The Wikipedia summary API is read once; if it cannot be read, the answer is 502 before payment is verified, so nothing is charged. A 404 from Wikipedia is delivered as found:false."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "found": "boolean — false when Wikipedia has no article with that exact title",
              "query": "string — the q you sent",
              "lang": "string — the Wikipedia language used",
              "title": "string | null — the article title Wikipedia returned",
              "description": "string | null — Wikipedia's one-line description",
              "extract": "string | null — the plain-text summary (CC BY-SA 4.0)",
              "extract_chars": "number — length of extract",
              "article_type": "string | null — standard | disambiguation | …",
              "wikibase_item": "string | null — Wikidata item id",
              "url": "string | null — the article page URL to attribute",
              "thumbnail_url": "string | null",
              "checked_at": "ISO-8601 UTC",
              "source": "{name, api, page_url, license, license_url, fetched_at, http_status, ok, latency_ms}",
              "note": "string — attribution or not-found explanation"
            }
          }
        },
        "price": {
          "amount_atomic": "2000",
          "asset_decimals": 6,
          "amount_usd": 0.002,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /wiki response",
          "note": "0.002 USDC: one public Wikipedia read and one attributed summary. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker reads the Wikipedia summary API once first. Only if that read succeeds (or returns 404) does it POST the payment payload and the requirements to the facilitator /verify and /settle.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The extract is Wikipedia text under CC BY-SA 4.0; attribute the page URL returned in url and preserve the licence. The response is a summary at read time, not a statement that the article is correct or current."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/wiki?q=Apple%20Inc.&lang=en'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/wiki?q=Apple%20Inc.&lang=en'   -> 200",
          "note": "found:false with HTTP 200 means Wikipedia has no article with that exact title; it is still a delivered answer."
        },
        "listing_notes": {
          "resource_type": "Plain GET with query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /lei reads a company registry (GLEIF); GET /news reads headlines from RSS. GET /wiki reads one Wikipedia article summary and returns its page URL and CC BY-SA licence for attribution. No other route returns wiki text.",
          "failure_answers": "400 missing_q / query_too_long / invalid_lang before anything is read; 502 upstream_unreadable before payment verification, so nothing is charged. 404 from Wikipedia is 200 found:false after payment.",
          "price": "The 402 response always carries WIKI_PRICE_ATOMIC (0.002 USDC). product.json and this catalogue share the same CONFIG.",
          "claims": "Return only what Wikipedia returned. Never claim the article is correct, current or complete, and never invent text for a title that was not found."
        }
      },
      {
        "product_id": "x402-example-fit",
        "schema_version": 1,
        "title": "Is this 402's example consistent with the schema it declares?",
        "what_it_is": "One GET reads the 402 a target actually serves, once, and compares the example in that 402 with the output schema in the same 402: whether the example's JSON type matches schema.type, which required keys the example is missing, which example keys the schema never declares, and whether example.serviceName still matches the serviceName the target declares today. The answer is declared:true/false, fit:true/false/null, the four checks, example_keys, declared_fields and stale_signals[]. It is a literal, internal-consistency check only: no semantic validation, no inference about what the seller meant, and no claim that the service itself is broken.",
        "when_to_buy": "Buy one call before binding a client to a paid endpoint whose 402 carries an example that may predate the current service: a stale example costs a paid call to discover, and a schema that never names the example's fields makes the promised shape unreadable before paying. The call separates 'declared nothing' (declared:false) from 'declared something that disagrees with itself' (fit:false), and leaves fit:null when it cannot judge.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/example-fit",
            "params": {
              "url": "required. Absolute http(s) URL of the x402 resource whose 402 declares the example and the schema."
            },
            "note": "The url is validated before anything is fetched: missing, malformed, credential-bearing, loopback/private/internal or non-web ports are 400. The target is read exactly once with no payment header. If it cannot be read, the answer is 502 before verify/settle, so nothing is charged. If the target does not answer 402, or its 402 declares no output schema/example, the answer is 200 with declared:false and nothing is charged."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "target": "{url, host, path} — the target that was read",
              "declared": "boolean — the target's 402 carries a readable output declaration",
              "fit": "true | false | null — all comparable checks pass, one fails, or there is not enough to judge",
              "checks": {
                "example_type_matches": "boolean | null — the example's JSON type against schema.type",
                "missing_required": "string[] — required keys absent from the example (max 20)",
                "undeclared_keys": "string[] — top-level example keys absent from properties (max 20)",
                "service_name_matches": "boolean | null — example.serviceName (or example.product_id) against the target's serviceName"
              },
              "example_keys": "string[] — sorted top-level keys of the example",
              "declared_fields": "string[] — sorted property names the schema declares",
              "stale_signals": "string[] — service_name_mismatch, example_type_mismatch, missing_required, undeclared_keys",
              "source": "{http_status, latency_ms} — the target's answer as measured",
              "fetched_at": "ISO-8601 UTC",
              "sha256": "hex — SHA-256 of the normalised report (latency excluded)"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /example-fit response",
          "note": "0.005 USDC: one target read and one literal example-vs-schema report. Nothing is charged when the target is unreadable or declares no output contract. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker reads the target's 402 once first (no payment header to the target). Only when that 402 carries a readable output declaration does it POST the payment payload and requirements to the facilitator /verify and /settle. An unreadable target is 502 before those calls, so nothing is charged.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The report is a literal comparison of the example and the schema in the 402 as served. It is not a judgement that the service is correct, current or safe; re-read the target to compare later."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/example-fit?url=https%3A%2F%2Fexample.com%2Fpaid'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/example-fit?url=https%3A%2F%2Fexample.com%2Fpaid'   -> 200",
          "note": "Look first: GET https://<worker-host>/example-fit/sample is free and reads this service's own /hash declaration with no subrequest."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "GET /contract normalises what the 402 declares (field names, types, required flags). GET /example-fit only tests whether the example and the schema inside that same 402 agree with each other; it does not replace /contract and does not judge semantics.",
          "failure_answers": "400 missing_url / invalid_url / credentials_not_allowed / blocked_target before anything is fetched. 502 target_unreadable before verify/settle, so nothing is charged. 200 declared:false when the target is not a 402 or declares no output contract; 200 fit:null when there is not enough to judge.",
          "price": "The 402 response always carries EXAMPLE_FIT_PRICE_ATOMIC (0.005 USDC). product.json and this catalogue share the same CONFIG.",
          "claims": "Never claim the target is broken. Report only the literal comparison and name missing pieces as undeclared. fit:null means the comparison could not be made, not that the example is wrong."
        }
      },
      {
        "product_id": "x402-barcode-check",
        "schema_version": 1,
        "title": "Barcode check digit validator: EAN-13, UPC-A, EAN-8, ISBN-10, ISBN-13 in one GET",
        "what_it_is": "One GET takes a product or book number (spaces and hyphens are ignored) and returns its symbology, the check digit it carries, the check digit it should carry, and whether it is valid. EAN-13, UPC-A, EAN-8, ISBN-10 and ISBN-13 are recognised by length and prefix. The answer is computed inside this Worker; nothing is fetched or stored.",
        "when_to_buy": "Buy one call when an agent or a script has to accept a barcode or ISBN from a user, a spreadsheet or a scan, and needs to know whether the number is well formed before using it as a key — without embedding the weighting rules and the ISBN-10 X rule in every caller.",
        "subject": {
          "what_is_delivered": [
            "symbology, normalized code, length and the check digit the input carries",
            "expected_check_digit and valid (true/false) for that symbology",
            "isbn prefix (978/979) and format for ISBN-10 and ISBN-13",
            "gs1_prefix (the first three digits) for EAN/UPC numbers"
          ],
          "not_included": [
            "no registry lookup: this validates the number's arithmetic, not whether the product or book exists",
            "no image decoding and no scan: the number is supplied as text",
            "no history or storage: the answer is computed for this request only"
          ],
          "source": "integer arithmetic inside worker.mjs, no upstream call and no third party",
          "live_call_semantics": "Nothing leaves the Worker. The calculation runs after the payment is verified, in the same request that returns it."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/barcode",
            "params": {
              "code": "required. A numeric EAN-8 (8 digits), UPC-A (12), EAN-13 (13) or ISBN-13 (13 digits starting 978/979), or an ISBN-10 (9 digits plus a digit or X). Spaces and hyphens are ignored."
            },
            "body": "none",
            "note": "A missing, empty, over-32-character or non-numeric (except a trailing X on ISBN-10) code is refused with 400 before any payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-barcode-check\"",
              "schema_version": "number",
              "input": "{ code }",
              "normalized": "string — the digits (or ISBN-10 with X) after removing spaces and hyphens",
              "symbology": "string — ean-13, upc-a, ean-8, isbn-10, isbn-13 or unknown",
              "length": "number — characters in normalized",
              "check_digit": "string — the last character of the input",
              "expected_check_digit": "string — what the weighting rule requires",
              "valid": "boolean — check_digit === expected_check_digit",
              "gs1_prefix": "string or null — first three digits for EAN/UPC",
              "isbn": "object or null — { format, prefix } when the number is an ISBN",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no validation result is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /barcode — one number, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The answer is check-digit arithmetic computed from the input; no third-party data is used."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/barcode?code=9780306406157'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/barcode?code=9780306406157'   -> 200 with the validation",
          "response_example": "{\n  \"normalized\": \"9780306406157\", \"symbology\": \"isbn-13\", \"length\": 13,\n  \"check_digit\": \"7\", \"expected_check_digit\": \"7\", \"valid\": true,\n  \"gs1_prefix\": \"978\", \"isbn\": { \"format\": \"isbn-13\", \"prefix\": \"978\" }\n}",
          "note": "code is a query parameter, so an agent can call it as a plain GET. Spaces and hyphens are removed before validation."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter, so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other products report x402 market observations, read a public source or hash text. This one validates barcode and ISBN check digits locally and returns its own verdict for one number.",
          "price": "The 402 response always carries BARCODE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "barcode",
            "ean-13",
            "upc",
            "isbn",
            "check digit",
            "product code",
            "validation"
          ],
          "claims": "Describe only check-digit arithmetic. Do not claim that a valid code identifies a real product or book."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-payer-leak-scan",
        "schema_version": 1,
        "title": "Does this public page expose buyer identifiers?",
        "what_it_is": "One GET reads a public page once and returns counts{addresses, tx_hashes, basescan_links, ua_strings} and findings[{type, offset}] for four literal patterns: a 0x-prefixed 40-hex EVM address, a 0x-prefixed 64-hex transaction hash, a Basescan tx/address link, and a known user-agent prefix (Mozilla/, curl/, python-requests/, Wget/, Go-http-client/, okhttp/, axios/, node-fetch/, PostmanRuntime/, libwww-perl/, HTTPie/, GuzzleHttp/). It returns no identifier value and no page body, and stores no HTML. It is a literal scan, not proof that a person or payment was identified.",
        "when_to_buy": "Buy one call before publishing a page that may show a payer address, a transaction hash, a block-explorer link or a user-agent string (a dashboard, a 'recent buyers' list, a delivery log). The same leak is cheap to find before publishing and awkward after. The counts and offsets let you find and fix the spot without sending the identifier to a third party.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/payer-leak",
            "params": {
              "url": "required. Absolute http(s) URL of the public page to scan. The page is read once with no payment header."
            },
            "note": "The url is validated before anything is fetched: missing, malformed, credential-bearing, loopback/private/internal or non-web ports are 400 with no payment requested. A target that cannot be read, or whose body exceeds the body limit and is cut off, is 502 before verify/settle, so nothing is charged."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "target": "{url, host, path} — the page that was read",
              "counts": "{addresses, tx_hashes, basescan_links, ua_strings} — number of findings per type",
              "findings": "[{type, offset}] — the type and the character offset in the decoded body; no value",
              "total": "number — findings.length",
              "scanner_version": "number — the literal scanner version",
              "checked_at": "ISO-8601 UTC",
              "source": "{status, bytes, content_type} — the target's answer as measured",
              "note": "string — offsets are character offsets; a Basescan link is counted once as a link, not again as its inner hash or address; nothing is stored",
              "delivery": "{delivered_at, delivered, payer, payment:{transaction, network, scheme, amount_atomic, asset, pay_to}}"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /payer-leak response",
          "note": "0.005 USDC: one target read and one literal scan. Nothing is charged when the target is unreadable. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker reads the target page once first (no payment header to the target). Only if that read succeeds (and the body was not cut off) does it POST the payment payload and requirements to the facilitator /verify and /settle. An unreadable target is 502 before those calls, so nothing is charged.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The report is a literal pattern count on the page as served at that moment. It does not prove who a buyer is, does not see client-side rendering, and is not a security or privacy guarantee."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/payer-leak?url=https%3A%2F%2Fexample.com%2F'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/payer-leak?url=https%3A%2F%2Fexample.com%2F'   -> 200",
          "response_example": "{\n  \"target\": {\"url\": \"https://example.com/\", \"host\": \"example.com\", \"path\": \"/\"},\n  \"counts\": {\"addresses\": 0, \"tx_hashes\": 0, \"basescan_links\": 0, \"ua_strings\": 1},\n  \"findings\": [{\"type\": \"ua_strings\", \"offset\": 1234}],\n  \"total\": 1\n}"
        },
        "listing_notes": {
          "resource_type": "Plain GET with one query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "GET /check reads liveness, the 402 and the stored diff of an x402 endpoint; GET /example-fit compares the example and schema inside a 402; GET /contract normalises that declared output contract; GET /status.json reports this service's own delivery records. This route scans a public page body for buyer identifiers and no sibling does that.",
          "failure_answers": "400 missing_url / invalid_url / credentials_not_allowed / blocked_target before anything is fetched. 502 target_unreadable or target_body_too_large before verify/settle, so nothing is charged.",
          "price": "The 402 response always carries PAYER_LEAK_PRICE_ATOMIC (0.005 USDC). product.json and this catalogue share the same CONFIG.",
          "claims": "Report only counts and character offsets. Never return or store the identifier value or the page body. Do not claim that a page is private, that a detected 0x string is a person, or that JavaScript-rendered content was seen."
        }
      },
      {
        "product_id": "x402-dice-roll",
        "schema_version": 1,
        "title": "Uniform dice rolls in one GET: 2d6, 3d20, 100d2 — crypto random, no modulo bias",
        "what_it_is": "One GET rolls count dice with sides faces and returns every roll, the total, the possible range and the notation (2d6). The faces are drawn with crypto.getRandomValues and rejection sampling, so every face is equally likely. The rolls are computed inside this Worker; nothing is fetched, stored or logged.",
        "when_to_buy": "Buy one call when an agent or a script needs an unpredictable, evenly distributed die roll (a game turn, a random assignment, a fair draw) and does not want to carry its own rejection-sampling code or trust Math.random().",
        "subject": {
          "what_is_delivered": [
            "rolls[] — one integer per die, each between 1 and sides",
            "total, min_possible, max_possible and average for this roll",
            "notation (e.g. 2d6), the count and sides actually used, and a timestamp"
          ],
          "not_included": [
            "no seed, no signed randomness beacon and no on-chain proof: this is a local CSPRNG draw",
            "no history, no storage and no reproducibility: the same call returns different rolls",
            "no game rules, modifiers or re-rolls: arithmetic on the rolls is left to the caller"
          ],
          "source": "crypto.getRandomValues inside this Worker, with rejection sampling to remove modulo bias",
          "live_call_semantics": "Nothing leaves the Worker. The rolls are drawn after payment is verified, in the same request."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/dice",
            "params": {
              "count": "optional. Number of dice, 1..100; default 1.",
              "sides": "optional. Faces per die, 2..1000; default 6."
            },
            "body": "none",
            "note": "count and sides are validated before any payment: a non-integer or out-of-range value is 400 and no payment is requested. A bare GET /dice uses 1d6 and is 402 so a catalogue can probe the price."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-dice-roll\"",
              "schema_version": "number",
              "input": "{ count, sides }",
              "notation": "string — e.g. 2d6",
              "rolls": "number[] — count integers, each 1..sides",
              "total": "number — sum of rolls",
              "min_possible": "number — count (all ones)",
              "max_possible": "number — count × sides",
              "average": "number — total / count, rounded to 3 decimals",
              "uniform": "boolean — true; rejection sampling removes modulo bias",
              "source": "string — the RNG used",
              "generated_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no roll result is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dice — one roll of count dice",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The rolls are a local CSPRNG draw for this request; no seed or signed beacon is provided or implied."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/dice?count=2&sides=6'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/dice?count=2&sides=6'   -> 200 with the rolls",
          "response_example": "{\n  \"notation\": \"2d6\", \"input\": { \"count\": 2, \"sides\": 6 },\n  \"rolls\": [4, 2], \"total\": 6, \"min_possible\": 2, \"max_possible\": 12, \"average\": 3,\n  \"uniform\": true, \"source\": \"crypto.getRandomValues with rejection sampling (no modulo bias)\"\n}",
          "note": "count and sides are query parameters, so an agent can call it as a plain GET. The sample above is illustrative; each paid call returns fresh rolls."
        },
        "listing_notes": {
          "resource_type": "Plain GET with optional query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /random returns raw random bytes, hex/base64/UUID. This one returns dice results in a fixed range with the total and notation. No other route rolls dice or strips modulo bias for the caller.",
          "price": "The 402 response always carries DICE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "random",
            "dice",
            "d6",
            "d20",
            "roll",
            "uniform",
            "crypto"
          ],
          "claims": "Describe only the CSPRNG draw and its uniformity. Do not claim a seed, provable fairness or a signed beacon."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-domain-age",
        "schema_version": 1,
        "title": "Domain registration, expiration and age from RDAP",
        "what_it_is": "One GET returns the registration date, expiration date, status, registrar handle and nameserver count for one domain, read from the authoritative RDAP registry. registered is true when a registration event is present, false when the registry answers RDAP 404, and null when the registry returns a domain object without a registration event. age_days is computed only from the registration event, never from last changed. No registrant or contact data is returned or cached.",
        "when_to_buy": "Buy one call when a signup, a vendor check, an auction, an onboarding flow or an agent has to know how old a domain is and when it expires, without parsing raw whois text or integrating IANA bootstrap and RDAP by hand. One request answers it and names the registry base URL it came from.",
        "subject": {
          "what_is_delivered": [
            "registered: true when the RDAP domain object carries a registration event; false on RDAP 404; null when the object has no registration event",
            "age_days: whole days between the registration event and the response, computed only from the registration event (null when no registration event or a future date)",
            "registration: the registration event date as the registry states it (earliest if the registry lists more than one)",
            "expiration: the expiration event date as the registry states it (latest if more than one)",
            "last_changed: the 'last changed' event date, reported separately so it is never used as the registration date",
            "status: the registry's status strings (for example client transfer prohibited), up to 20",
            "registrar: { handle } only — the registrar entity's handle, never its vCard, name, address, email or phone",
            "nameservers_count: the number of nameservers in the RDAP answer (names are not returned)",
            "checked_at and source: the time of the answer, the IANA bootstrap URL and the registry RDAP base URL"
          ],
          "not_included": [
            "no registrant, administrative, technical or billing contact data: no name, address, email, phone or vCard is returned or cached",
            "no nameserver hostnames, no DNS records, no mail authentication records (use /mailauth or /dkim for those)",
            "no reputation, phishing, safety or trust score, and no claim that a domain is safe or malicious",
            "no history of past registrations and no archive: each paid call reads the registry at that moment"
          ],
          "source": "The domain's authoritative RDAP service. The base URL is looked up by TLD in the IANA bootstrap registry (https://data.iana.org/rdap/dns.json), which is cached in the Worker for about one day; the RDAP base URL used for the answer is named in every response under source.base.",
          "live_call_semantics": "On a paid call, one RDAP GET is sent to <base>domain/<name> with Accept: application/rdap+json and a 5 second cutoff. RDAP 404 is a confirmed not-registered answer (200 with registered:false). HTTP 429 or 503 returns 503, other 5xx, a 4xx other than 404, an unreadable body or a timeout returns 502/503; none of those is charged and none is reported as registered:false. The IANA bootstrap is read once per cache lifetime, not once per call."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/domain-age",
            "params": {
              "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before the lookup. Domains over 253 characters, labels over 63 characters, empty labels and IP literals are refused with 400 before payment. Private, local and documentation TLDs return 400 internal_tld; a TLD with no IANA RDAP bootstrap entry returns 400 unsupported_tld. Neither is charged."
            },
            "body": "none",
            "note": "Invalid input, an internal TLD and an unsupported TLD are refused with 400 before payment is verified. A request with no payment header answers 402 after the TLD check and before the RDAP lookup."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "domain": "string",
              "tld": "string",
              "registered": "true | false | null",
              "age_days": "number | null",
              "registration": "ISO 8601 string | null",
              "expiration": "ISO 8601 string | null",
              "last_changed": "ISO 8601 string | null",
              "status": "string[] | null",
              "registrar": "{ handle } | null",
              "nameservers_count": "number | null",
              "checked_at": "ISO 8601 string",
              "source": "{ name, bootstrap, base }",
              "evidence": "{ http_status, registration_event, bootstrap_cache, bootstrap_age_ms, sanitized, privacy }"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /domain-age — one domain, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "Only dates, status, the registrar handle and the nameserver count are returned from the public RDAP answer. No registrant or contact data is returned or cached, and there is no bulk export."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/domain-age?domain=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/domain-age?domain=example.com'   -> 200 with the domain-age answer",
          "response_example": "{\n  \"domain\": \"example.com\", \"tld\": \"com\", \"registered\": true, \"age_days\": 11388,\n  \"registration\": \"1995-08-14T04:00:00Z\", \"expiration\": \"2027-08-13T04:00:00Z\",\n  \"last_changed\": \"2026-08-14T08:01:43Z\", \"status\": [\"client delete prohibited\"],\n  \"registrar\": { \"handle\": \"376\" }, \"nameservers_count\": 2,\n  \"source\": { \"name\": \"RDAP (registry authoritative)\", \"base\": \"https://rdap.verisign.com/com/v1/\" }\n}",
          "note": "domain is a query parameter, so an agent can call it as a plain GET."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (domain), so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "The other domain products answer SPF/DMARC/MX, DKIM or DNS records. This one answers the registration date, expiration date and registration status of one domain, which none of them return.",
          "keywords": [
            "domain age",
            "domain registration",
            "whois",
            "rdap",
            "domain expiration"
          ],
          "claims": "Name the RDAP base URL as the source in every response. Do not describe the dates as this service's own data and do not promise an SLA. Never return or cache registrant/contact data."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "max_domain_length": 253,
          "max_label_length": 63,
          "timeout_ms": 5000,
          "client_requests_per_minute": 10,
          "concurrency": 4,
          "bootstrap_cache_ttl_seconds": 86400
        }
      },
      {
        "product_id": "x402-color-contrast",
        "schema_version": 1,
        "title": "Hex colour to RGB/HSL and WCAG contrast in one GET",
        "what_it_is": "One GET takes a text colour and a background colour as #rgb or #rrggbb, and returns each as RGB and HSL, the WCAG 2.x relative luminance, and the contrast ratio between them. It also returns the four WCAG threshold verdicts: AA and AAA for normal text and for large text. The answer is computed inside this Worker; nothing is fetched, stored or logged.",
        "when_to_buy": "Buy one call when an agent or a script is generating or checking a UI and has to know whether a text colour is readable on a background, or needs the RGB/HSL form of a hex colour, without carrying its own sRGB linearisation and WCAG threshold code.",
        "subject": {
          "what_is_delivered": [
            "foreground and background: normalized #rrggbb, {r,g,b} 0-255 and {h,s,l} (h 0-360, s/l 0-100, 1 decimal)",
            "relative_luminance for each colour (WCAG 2.x sRGB definition)",
            "contrast_ratio (lighter + 0.05) / (darker + 0.05), rounded to 2 decimals",
            "wcag: pass/fail for AA normal (4.5), AA large (3), AAA normal (7), AAA large (4.5)",
            "the thresholds used, so the verdict can be checked without guessing"
          ],
          "not_included": [
            "no alpha channel: #rgba and #rrggbbaa are refused with 400 rather than composited silently",
            "no colour names, palettes, images, OCR or design suggestions",
            "no history and no storage: the answer is computed for this request only"
          ],
          "source": "integer and floating-point arithmetic inside worker.mjs; no upstream call and no third party",
          "live_call_semantics": "Nothing leaves the Worker. The calculation runs after the payment is verified, in the same request that returns it."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/color",
            "params": {
              "hex": "required. Text colour as 3 or 6 hex digits, with or without a leading #.",
              "against": "optional. Background colour in the same form; default #ffffff."
            },
            "body": "none",
            "note": "A missing hex, a non-hex value, an alpha hex (#rgba/#rrggbbaa) or an over-9-character value is refused with 400 before payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-color-contrast\"",
              "schema_version": "number",
              "input": "{ hex, against }",
              "foreground": "{ hex, rgb: {r,g,b}, hsl: {h,s,l}, relative_luminance }",
              "background": "same shape as foreground",
              "contrast_ratio": "number — 1.00 to 21.00",
              "wcag": "{ aa_normal, aa_large, aaa_normal, aaa_large } — booleans",
              "thresholds": "{ aa_normal: 4.5, aa_large: 3, aaa_normal: 7, aaa_large: 4.5 }",
              "computed_at": "ISO 8601 string",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no calculation result is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /color — one foreground/background pair, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The answer is colour arithmetic computed from the input; no third-party data is used."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/color?hex=1a2b3c&against=ffffff'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/color?hex=1a2b3c&against=ffffff'   -> 200 with the colour answer",
          "response_example": "{\n  \"foreground\": { \"hex\": \"#1a2b3c\", \"rgb\": { \"r\": 26, \"g\": 43, \"b\": 60 }, \"hsl\": { \"h\": 210, \"s\": 39.5, \"l\": 16.9 }, \"relative_luminance\": 0.024 },\n  \"background\": { \"hex\": \"#ffffff\", \"rgb\": { \"r\": 255, \"g\": 255, \"b\": 255 }, \"hsl\": { \"h\": 0, \"s\": 0, \"l\": 100 }, \"relative_luminance\": 1 },\n  \"contrast_ratio\": 14.69, \"wcag\": { \"aa_normal\": true, \"aa_large\": true, \"aaa_normal\": true, \"aaa_large\": true }\n}",
          "note": "hex and against are query parameters, so an agent can call it as a plain GET."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter, so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "No other route converts colours or returns a WCAG contrast ratio. This one answers one colour pair locally and names the thresholds behind its verdict.",
          "price": "The 402 response always carries COLOR_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "color contrast",
            "wcag contrast",
            "hex to rgb",
            "hex to hsl",
            "accessibility",
            "readable text"
          ],
          "claims": "Describe only the sRGB and WCAG 2.x arithmetic. Do not claim that passing AA makes a design accessible."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-spf-depth",
        "schema_version": 1,
        "title": "SPF lookup depth: does one domain exceed RFC 7208's 10-DNS-lookup limit?",
        "what_it_is": "One GET answers one question: does this domain's SPF record exceed the 10 DNS lookups that RFC 7208 §4.6.4 allows before the record is a permerror? It returns spf (true/false/null), lookups (the number of include, a, mx, ptr, exists and redirect terms counted across the include/redirect chain), limit (10), over_limit, chain (each SPF record visited, with its own lookup count) and evidence (the root SPF record, the source endpoint and checked_at). The initial TXT fetch is not counted, exactly as the RFC counts terms. When the record cannot be counted (a macro that depends on the sender, more than 20 records or depth 10, multiple SPF records, an unreadable term) lookups and over_limit are null — never 0.",
        "when_to_buy": "Buy one call right after publishing or changing an SPF record, before sending mail as a domain, or while auditing a list of domains — when the question is not 'is there an SPF record?' but 'will this record survive the include count?'. A record with 11 or more counted terms is a permerror even though every include looks fine on its own. Counting it by hand means digging each include and adding them up; this returns the total, the per-record chain and the record it was read from in one machine-readable response.",
        "subject": {
          "what_is_delivered": [
            "spf: true when exactly one SPF record exists at the apex, false when none exists (including NXDOMAIN), null when more than one exists and the record is ambiguous",
            "lookups: sum of the include, a, mx, ptr, exists and redirect terms across every SPF record visited; the initial TXT fetch is not counted; null when the record cannot be counted",
            "limit: 10 (RFC 7208 §4.6.4)",
            "over_limit: lookups > 10; null when lookups is null",
            "chain: up to 20 SPF records reached through include/redirect, each as { domain, record, lookups } where lookups is that record's own counted terms; a domain is visited at most once",
            "evidence: the root SPF record verbatim, the DoH source endpoint and the checked_at time"
          ],
          "not_included": [
            "no DMARC, DKIM, MX count, BIMI, MTA-STS or TLS-RPT answer — /mailauth, /dkim and /dns answer those",
            "no other TXT records: verification tokens and unrelated strings are filtered out and never returned",
            "no deliverability, reputation or spam score, and no claim that a domain can or cannot send mail",
            "no evaluation for a particular sender IP: include/redirect targets that use %{i}, %{s} or another sender-dependent macro are reported as lookups:null rather than guessed",
            "no bulk export or archive: one paid call returns the chain as it is at that moment (a short cache may serve the same answer)"
          ],
          "source": "Cloudflare DNS-over-HTTPS JSON endpoint (https://cloudflare-dns.com/dns-query), queried with Accept: application/dns-json; the endpoint is named in every response under evidence.source",
          "live_call_semantics": "After input validation, one TXT query reads the apex, then one TXT query per include/redirect target, up to 20 records and depth 10. Each attempt is cut off at 2.5 seconds; a network error is retried once after a 250 ms jitter. HTTP 429/503 from the upstream returns 503 without charging; SERVFAIL, an unreadable answer or a timeout returns 502 without charging. NXDOMAIN and a domain with no SPF record are confirmed zeros (false / 0 / false)."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/spf-depth",
            "params": {
              "domain": "required. One domain name. Lowercased, trailing dots removed and IDN labels converted to punycode before any query. Domains over 253 characters, labels over 63 characters, empty labels, single-label names, private or documentation TLDs and IP literals (IPv4 or IPv6) are refused with 400 before payment."
            },
            "body": "none",
            "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "domain": "string",
              "spf": "boolean | null",
              "lookups": "number | null",
              "limit": "number (10)",
              "over_limit": "boolean | null",
              "chain": "[ { domain, record: string | null, lookups: number } ] (max 20)",
              "evidence": "{ record: string | null, source: { name, endpoint, format }, checked_at }"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /spf-depth — one domain, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The records are read from the public DNS-over-HTTPS JSON endpoint named in the response. No bulk export and no resale of the raw answer: only the SPF records behind this one domain are returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/spf-depth?domain=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/spf-depth?domain=example.com'   -> 200 with the seven keys",
          "response_example": "{\n  \"domain\": \"example.com\", \"spf\": true, \"lookups\": 11, \"limit\": 10, \"over_limit\": true,\n  \"chain\": [\n    { \"domain\": \"example.com\", \"record\": \"v=spf1 include:_spf.example.net include:mail.example.org a mx -all\", \"lookups\": 4 },\n    { \"domain\": \"_spf.example.net\", \"record\": \"v=spf1 include:_spf2.example.net mx ptr exists:%{d}._spf.example.net -all\", \"lookups\": 4 },\n    { \"domain\": \"_spf2.example.net\", \"record\": \"v=spf1 a mx ptr -all\", \"lookups\": 3 },\n    { \"domain\": \"mail.example.org\", \"record\": \"v=spf1 -all\", \"lookups\": 0 }\n  ],\n  \"evidence\": { \"record\": \"v=spf1 include:_spf.example.net include:mail.example.org a mx -all\",\n      \"source\": { \"name\": \"Cloudflare DNS-over-HTTPS JSON API\", \"endpoint\": \"https://cloudflare-dns.com/dns-query\", \"format\": \"application/dns-json\" },\n      \"checked_at\": \"2026-10-19T00:00:00.000Z\" }\n}",
          "note": "domain is a query parameter, so an agent can call it as a plain GET. The example is illustrative: lookups is the actual count returned for that domain."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (domain), so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "/mailauth answers whether SPF and DMARC exist and returns those records; /spf-depth answers whether the SPF include/redirect chain exceeds the RFC 7208 lookup limit and returns the counted chain. Neither returns the other's answer.",
          "keywords": [
            "spf lookup count",
            "spf 10 lookup limit",
            "spf include check",
            "spf permerror",
            "email authentication"
          ],
          "claims": "Name the DNS-over-HTTPS endpoint as the source in every response. Do not describe the count as this service's own data and do not promise deliverability or an SLA."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "lookup_limit": 10,
          "max_chain_records": 20,
          "max_depth": 10,
          "max_record_chars": 4096,
          "timeout_ms": 2500,
          "cache_ttl_seconds": 300,
          "negative_cache_ttl_seconds": 30,
          "client_requests_per_minute": 10,
          "domain_requests_per_second": 1,
          "concurrency": 4
        }
      },
      {
        "product_id": "x402-dmarc-policy",
        "schema_version": 1,
        "title": "DMARC enforcement: is this domain's policy actually enforced (reject/quarantine) or only p=none?",
        "what_it_is": "One GET answers one question: is this domain's DMARC record merely present, or actually enforcing? It reads the single TXT record at _dmarc.<domain> and returns p, sp, pct, adkim, aspf, fo, rua_count, ruf_count and enforcing (\"full\", \"partial\", \"none\" or null), with the defaults pct=100, adkim=r, aspf=r and fo=0 applied. record:null with record_status:\"none\" means the record was confirmed absent; a 503 with record_status:\"unknown\" means the source could not be read and is never reported as p=none. Only the host's own _dmarc is read: subdomain inheritance from an organizational domain (sp, Public Suffix List) is not evaluated.",
        "when_to_buy": "Buy one call before trusting a sender domain, after publishing a DMARC record, or while auditing a list of domains — when the question is not 'is there a DMARC record?' but 'does it reject or quarantine, and at what percentage?'. A record that says p=none looks configured but enforces nothing; a p=reject record with pct=20 only rejects a fifth. This returns the effective answer and the exact record without reading raw DNS by hand.",
        "subject": {
          "what_is_delivered": [
            "record: the DMARC TXT record verbatim when exactly one valid v=DMARC1 record exists, otherwise null",
            "record_status: \"found\", \"none\" (confirmed absent), \"invalid\" (a record exists but is not a usable DMARC record), \"multiple_records\" (per the specification more than one record means none is used) or \"unknown\" (only on 503)",
            "p / sp: the requested policy (none, quarantine, reject); sp is null when the tag is absent",
            "pct: 0-100, default 100; adkim / aspf: r or s, default r; fo: failure-report options, default \"0\"",
            "rua_count / ruf_count: the number of aggregate and forensic report URIs in the public record",
            "enforcing: \"full\" when p=reject and pct=100; \"partial\" when p=quarantine, or p=reject with pct<100; \"none\" when p=none or pct=0; null when there is no usable record",
            "scope / organization_domain_inheritance: states that only the queried host's own _dmarc was read and that organizational-domain inheritance was not evaluated",
            "evidence: the source endpoint and checked_at"
          ],
          "not_included": [
            "no SPF, DKIM, MX, BIMI, MTA-STS or TLS-RPT answer — /mailauth, /dkim, /spf-depth and /dns answer those",
            "no subdomain or organizational-domain policy inheritance: _dmarc.<domain> only, so a subdomain with no record is reported as record:null even if its organizational domain enforces a policy",
            "no report-address analysis beyond counting: rua_count / ruf_count count the URIs; the record string is public DNS and is returned verbatim when found",
            "no deliverability, reputation or spam score and no claim that a message was accepted or rejected",
            "no inference from DMARCbis drafts: this follows the published DMARC tag defaults"
          ],
          "source": "Cloudflare DNS-over-HTTPS JSON endpoint (https://cloudflare-dns.com/dns-query), queried once with Accept: application/dns-json for TXT at _dmarc.<domain>; the endpoint is named in every response under source.",
          "live_call_semantics": "After input validation, exactly one TXT query is sent for _dmarc.<domain>. Each attempt is cut off at 2.5 seconds; a network error is retried once after a 250 ms jitter. HTTP 429/503 from the upstream returns 503 without charging; SERVFAIL, an unreadable answer or a timeout returns 502 without charging. NXDOMAIN and an empty TXT answer are a confirmed record:null with record_status:\"none\"."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/dmarc-policy",
            "params": {
              "domain": "required. One bare host name. Lowercased, trailing dots removed and IDN labels converted to punycode before the query. Missing, over 253 characters, a label over 63 characters, an empty label, a private or documentation TLD and IP literals (IPv4 or IPv6) are refused with 400 before payment."
            },
            "body": "none",
            "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "domain": "string",
              "record": "string | null",
              "record_status": "found | none | invalid | multiple_records | unknown",
              "p": "none | quarantine | reject | null",
              "sp": "none | quarantine | reject | null",
              "pct": "number (0-100) | null",
              "adkim": "r | s | null",
              "aspf": "r | s | null",
              "fo": "string | null",
              "rua_count": "number | null",
              "ruf_count": "number | null",
              "enforcing": "full | partial | none | null",
              "scope": "\"host_only\"",
              "organization_domain_inheritance": "false",
              "note": "string (the inheritance limitation)",
              "source": "{ name, endpoint, format }",
              "checked_at": "ISO 8601 string"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dmarc-policy — one domain, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The record is read from the public DNS-over-HTTPS JSON endpoint named in the response. No bulk export and no resale of the raw answer: only the DMARC record and its effective policy for this one domain are returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/dmarc-policy?domain=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/dmarc-policy?domain=example.com'   -> 200 with the effective policy",
          "response_example": "{\n  \"domain\": \"example.com\", \"record\": \"v=DMARC1; p=reject; sp=quarantine; pct=100; adkim=s; aspf=s; fo=1; rua=mailto:dmarc@example.com\",\n  \"record_status\": \"found\", \"p\": \"reject\", \"sp\": \"quarantine\", \"pct\": 100, \"adkim\": \"s\", \"aspf\": \"s\", \"fo\": \"1\",\n  \"rua_count\": 1, \"ruf_count\": 0, \"enforcing\": \"full\", \"scope\": \"host_only\", \"organization_domain_inheritance\": false,\n  \"note\": \"Only _dmarc.<domain> was read; subdomain organizational-domain inheritance is not evaluated.\",\n  \"source\": { \"name\": \"Cloudflare DNS-over-HTTPS JSON API\", \"endpoint\": \"https://cloudflare-dns.com/dns-query\", \"format\": \"application/dns-json\" },\n  \"checked_at\": \"2026-10-19T00:00:00.000Z\" }\n}",
          "note": "domain is a query parameter, so an agent can call it as a plain GET. A record with no p tag is returned as record:null / record_status:\"invalid\", never as an enforcing policy."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (domain), so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "/mailauth answers whether a DMARC record exists and returns it; /dmarc-policy answers whether that record actually rejects or quarantines, with defaults applied, and distinguishes an absent record from an unreadable source. Neither returns the other's answer.",
          "keywords": [
            "dmarc enforcement",
            "dmarc policy check",
            "p=none",
            "dmarc reject",
            "dmarc pct",
            "email authentication"
          ],
          "claims": "Name the DNS-over-HTTPS endpoint as the source in every response. Do not describe the record as this service's own data and do not promise deliverability or an SLA. State that subdomain inheritance is not evaluated."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "timeout_ms": 2500,
          "queries_per_call": 1,
          "cache_ttl_seconds": 300,
          "negative_cache_ttl_seconds": 30,
          "client_requests_per_minute": 10,
          "concurrency": 4
        }
      },
      {
        "product_id": "x402-jwt-inspector",
        "schema_version": 1,
        "title": "JWT decoder and expiry check in one GET — header, claims, is it expired?",
        "what_it_is": "One GET takes a JSON Web Token and returns its decoded header and payload, whether the exp claim has passed, the seconds until or since expiry, and the iat / nbf / iss / sub / aud / jti claims as ISO times where possible. The signature is NOT verified and the token itself is not echoed back. The answer is computed inside this Worker; nothing is fetched, stored or logged.",
        "when_to_buy": "Buy one call when an agent or a script receives a JWT and has to read its claims or decide whether it is still valid for the next request, without pulling in a JWT library or writing base64url padding code.",
        "subject": {
          "what_is_delivered": [
            "header and payload as decoded JSON objects",
            "signature_present and signature_bytes (the signature is not checked)",
            "expired (true/false/null), expires_at, seconds_until_expiry",
            "issued_at, not_before, issuer, subject, audience, jwt_id where the claims are present",
            "warnings[]: signature not verified, alg=none, a non-numeric exp, or an already-expired token"
          ],
          "not_included": [
            "no signature verification, no key lookup, no JWKS fetch: alg and kid are reported, not trusted",
            "no token storage or logging: the raw token is never returned in the response",
            "no OAuth flow, no token issuance and no scope decisions"
          ],
          "source": "base64url and JSON decoding inside worker.mjs; no upstream call and no third party",
          "live_call_semantics": "Nothing leaves the Worker. The decode runs after the payment is verified, in the same request that returns it."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/jwt",
            "params": {
              "token": "required. A three-part JWT (header.payload.signature), at most 8192 characters."
            },
            "body": "none",
            "note": "A missing token, a value that is not three dot-separated parts, an invalid base64url/JSON segment or an over-8192-character token is refused with 400 before payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-jwt-inspector\"",
              "schema_version": "number",
              "input": "{ token_length }",
              "header": "object — decoded JWT header",
              "payload": "object — decoded JWT claims",
              "signature_present": "boolean",
              "signature_bytes": "number",
              "algorithm": "string|null — header.alg, reported not trusted",
              "expired": "boolean|null",
              "expires_at": "ISO 8601 string|null",
              "seconds_until_expiry": "number|null — negative once expired",
              "issued_at": "ISO 8601 string|null",
              "not_before": "ISO 8601 string|null",
              "issuer": "string|null",
              "subject": "string|null",
              "audience": "string|string[]|null",
              "jwt_id": "string|null",
              "warnings": "string[]",
              "note": "string — the signature was not verified",
              "computed_at": "ISO 8601 string",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no decoded token is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /jwt — one token, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The answer is base64url and JSON decoding of the token you pass; no third-party data is used."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/jwt?token=<JWT>'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/jwt?token=<JWT>'   -> 200 with the decoded token",
          "response_example": "{\n  \"header\": { \"alg\": \"HS256\", \"typ\": \"JWT\" },\n  \"payload\": { \"sub\": \"1234567890\", \"name\": \"John Doe\", \"iat\": 1516239022 },\n  \"signature_present\": true, \"algorithm\": \"HS256\", \"expired\": null,\n  \"warnings\": [\"signature_not_verified\"]\n}",
          "note": "token is a query parameter, so an agent can call it as a plain GET. The token is not echoed in the response."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter, so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "No other route decodes a JWT or reports exp/nbf/iat. /hash computes digests and /random makes values; neither reads a token's claims.",
          "price": "The 402 response always carries JWT_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "jwt decode",
            "jwt expiry",
            "jwt claims",
            "json web token",
            "token expired",
            "base64url"
          ],
          "claims": "Describe only decoding and the exp/nbf/iat arithmetic. Never claim the token is valid or that its signature was checked."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-cron-next",
        "schema_version": 1,
        "title": "Cron expression to the next run times in UTC, in one GET",
        "what_it_is": "One GET takes a standard 5-field cron expression (minute hour day-of-month month day-of-week) and returns the next count run times in UTC, newest calculations included: each run_at timestamp, its unix seconds, the weekday and the number of seconds from the from time. It also returns the parsed value list for every field and which day rule was applied. The next time is computed inside this Worker by scanning minute by minute; nothing is fetched or stored.",
        "when_to_buy": "Buy one call when an agent or a script has to answer \"when does this cron expression run next?\" or check a schedule before installing it, and does not want to carry a cron parser, the day-of-month/day-of-week OR rule and the UTC arithmetic itself. It is a read-only calculation, not a scheduler: nothing is registered and nothing will run later.",
        "subject": {
          "what_is_delivered": [
            "next[] — up to 10 matching times after from, each with run_at (ISO 8601 UTC), unix, weekday and in_seconds",
            "fields — the parsed minute, hour, day-of-month, month and day-of-week value lists",
            "day_rule and complete/found — which day rule was applied and whether the requested count was reached"
          ],
          "not_included": [
            "no job is created, stored or triggered: this is a calculation only",
            "no timezone conversion or DST handling: all times are UTC, as stated in the response",
            "no seconds field, no @reboot/@daily macros and no cron daemon extensions"
          ],
          "source": "a 5-field cron parser inside this Worker; no upstream call, no bundled calendar and no third party",
          "live_call_semantics": "Nothing leaves the Worker. The next times are computed after payment is verified, in the same request."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/cron",
            "params": {
              "expr": "required. A 5-field cron expression: minute hour day-of-month month day-of-week. Supports *, a, a-b, */step, a-b/step, lists, jan-dec month names and sun-sat day names. Max 120 characters.",
              "count": "optional. How many next run times to return, 1..10; default 3.",
              "from": "optional. ISO 8601 timestamp to search after; default now. Must be between 2000-01-01 and 2101-01-01 UTC."
            },
            "body": "none",
            "note": "expr, count and from are validated before any payment: an invalid value is 400 and no payment is requested. A bare GET /cron is 402 so a catalogue can probe the price; with a payment header and no expr it is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-cron-next\"",
              "schema_version": "number",
              "expr": "string — the expression as received (trimmed)",
              "input": "{ count, from }",
              "timezone": "string — always \"UTC\"",
              "fields": "{ minute[], hour[], day_of_month[], month[], day_of_week[] }",
              "day_rule": "string — which day rule applies when day-of-month and day-of-week are both restricted",
              "count": "number — requested number of run times",
              "found": "number — run times actually returned (can be less for an impossible date such as 30 February)",
              "complete": "boolean — found === count",
              "next": "[ { run_at, unix, weekday, in_seconds } ] — strictly after from, ascending",
              "next_run_at": "string | null — next[0].run_at",
              "scanned_minutes": "number — how many minutes were inspected (transparency for impossible expressions)",
              "note": "string",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no computed run time is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /cron — one expression, one count",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The run times are a calculation for this request. No job is scheduled and no timezone conversion is included."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/cron?expr=0+9+*+*+1-5&count=3'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/cron?expr=0+9+*+*+1-5&count=3'   -> 200 with the next UTC run times",
          "response_example": "{\n  \"expr\": \"0 9 * * 1-5\", \"timezone\": \"UTC\", \"count\": 3, \"found\": 3, \"complete\": true,\n  \"next\": [\n    { \"run_at\": \"2026-10-19T09:00:00.000Z\", \"unix\": 1792390800, \"weekday\": \"Mon\", \"in_seconds\": 43200 },\n    { \"run_at\": \"2026-10-20T09:00:00.000Z\", \"unix\": 1792477200, \"weekday\": \"Tue\", \"in_seconds\": 129600 }\n  ]\n}",
          "note": "The timestamps above are illustrative; the response is computed from expr, count and from at the moment of the paid call."
        },
        "listing_notes": {
          "resource_type": "Plain GET with query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /ts converts one timestamp. This one parses a cron expression and returns the next matching times, including the day-of-month/day-of-week OR rule. No other route accepts a cron expression.",
          "price": "The 402 response always carries CRON_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "cron",
            "crontab",
            "schedule",
            "next run",
            "utc",
            "expression"
          ],
          "claims": "Describe only the UTC calculation. Do not claim timezone/DST support, job scheduling or cron daemon compatibility."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-json-strict",
        "schema_version": 1,
        "title": "Which parts of this JSON will break a stricter parser? Duplicate keys, case collisions, BOM, comments, trailing commas, single quotes, NaN, Infinity — paths and key names only, never the values",
        "what_it_is": "One GET reads one JSON document and returns only the places where parsers disagree. It reports duplicate object keys (exact repeats that JSON.parse silently collapses), case collisions (keys that differ only by letter case, which break case-insensitive parsers such as .NET and PowerShell ConvertFrom-Json), and the nonstandard constructs BOM, comment, trailing_comma, single_quote, NaN and Infinity. It also returns parses (JSON.parse succeeded or not), strict_ok (parses and no duplicate key, case collision or nonstandard construct), max_depth, content_type, bytes, sha256 and checked_at. Values are never returned: only JSONPath-like locations and key names. Duplicate keys are not invalid under RFC 8259 §4 (object names SHOULD be unique, not MUST), and case collisions matter only to implementations that compare names case-insensitively, so both are reported as interoperability risks rather than as syntax errors. strict_ok:false with parses:true is that distinction: the document is valid JSON but not safe for every parser.",
        "when_to_buy": "Buy one call before handing a JSON payload to another parser, another language or another platform, or before trusting a JSON response you did not produce. The failure this catches is real and quiet: a document that JSON.parse accepts can still be rejected by PowerShell's ConvertFrom-Json or silently lose data in a case-insensitive map. The exact case that prompted this product was this service's own /product.json: Node's JSON.parse returned 200 while ConvertFrom-Json refused it, because two keys under $.sample.change_log_preview.newest[2].from/.to differed only by letter case. A strict validator that only says 'valid JSON' does not see either hazard; this call names the path, the key and the count.",
        "subject": {
          "what_is_delivered": [
            "parses: whether JSON.parse accepted the document after UTF-8 decoding",
            "strict_ok: true only when parses is true and there is no duplicate key, no case collision and no nonstandard construct",
            "duplicate_keys[]: one {path, key, count} for every object key that appears more than once verbatim",
            "case_collisions[]: one {path, keys[]} for every object whose keys collide when lowercased",
            "nonstandard: {bom, comment, trailing_comma, single_quote, NaN, Infinity} booleans",
            "max_depth: the deepest object/array nesting, counted outside strings and comments",
            "content_type, bytes and sha256: the target's Content-Type, the raw body byte count and the SHA-256 of those bytes",
            "checked_at: when the target was read"
          ],
          "not_included": [
            "no values: object values, string contents and array elements are never returned; only paths and key names",
            "no JSON Schema validation and no semantic judgment about whether the values are correct",
            "no Unicode normalisation collisions (NFC/NFD) and no duplicate detection inside strings",
            "no repair, no rewriting and no normalised copy of the document",
            "no security claim: duplicate keys or a BOM are not proof that a document is malicious"
          ],
          "source": "One GET of the absolute http(s) URL you pass, with no payment header sent to the target. The scan runs in this Worker; JSON.parse is used only for the parses flag, never to find duplicate keys because it silently keeps one value.",
          "live_call_semantics": "The URL is validated before anything is fetched: missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are 400 with no fetch and no payment request. The body is read once with a 5-second timeout, at most 3 redirects and a 1 MiB cap. A target that cannot be read, or whose body is cut off at the cap, is 502 before verify/settle, so nothing is charged."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/json-strict",
            "params": {
              "url": "required. Absolute http(s) URL of the JSON document to scan. Missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are refused with 400 before anything is fetched."
            },
            "body": "none",
            "note": "A bare GET /json-strict answers 402 for catalogues. With a payment header and no url it is 400, before any payment is verified and before any fetch."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "strict_ok": "boolean",
              "parses": "boolean",
              "duplicate_keys": "[{path: string, key: string, count: number}]",
              "case_collisions": "[{path: string, keys: string[]}]",
              "nonstandard": "{bom, comment, trailing_comma, single_quote, NaN, Infinity} — booleans",
              "max_depth": "number",
              "content_type": "string | null — the target's Content-Type",
              "bytes": "number — raw body bytes",
              "sha256": "string — SHA-256 of the raw body bytes",
              "checked_at": "ISO 8601 string"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /json-strict — one URL, one scan",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The document is read once from the URL you name. Only paths and key names are returned; values are not stored, logged or resold."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/json-strict?url=https%3A%2F%2Fexample.com%2Fdata.json'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/json-strict?url=https%3A%2F%2Fexample.com%2Fdata.json'   -> 200 with the locations",
          "response_example": "{\n  \"strict_ok\": false, \"parses\": true,\n  \"duplicate_keys\": [{ \"path\": \"$\", \"key\": \"id\", \"count\": 2 }],\n  \"case_collisions\": [{ \"path\": \"$.sample\", \"keys\": [\"0xAbC\", \"0xabc\"] }],\n  \"nonstandard\": { \"bom\": false, \"comment\": false, \"trailing_comma\": false, \"single_quote\": false, \"NaN\": false, \"Infinity\": false },\n  \"max_depth\": 5, \"content_type\": \"application/json\", \"bytes\": 4821, \"sha256\": \"…\", \"checked_at\": \"2026-10-19T00:00:00.000Z\"\n}",
          "note": "url is a query parameter, so an agent can call it as a plain GET. strict_ok:true with a non-empty duplicate_keys or case_collisions is the intended answer: the document is valid JSON but a parser can still disagree about it."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (url); no POST, no body, no account.",
          "distinct_from_siblings": "GET /check probes an x402 endpoint and reads response_shape keys with JSON.parse; POST /compat validates one posted value against one JSON Schema; GET /contract normalises the output contract declared in a 402; GET /example-fit compares an example with its schema. None of them tokenizes the raw body for duplicate keys, case collisions, BOM, comments, trailing commas, single quotes, NaN or Infinity.",
          "keywords": [
            "duplicate keys",
            "case insensitive json",
            "json strict",
            "trailing comma",
            "bom json",
            "json parser"
          ],
          "claims": "Call duplicate keys an interoperability risk, not invalid JSON (RFC 8259 §4 says SHOULD be unique). Say that case collisions matter only to case-insensitive parsers. Never return or store the document values. Do not claim to validate a schema, repair the document or prove it is safe."
        },
        "limits": {
          "max_body_bytes": 1048576,
          "timeout_ms": 5000,
          "max_redirects": 3,
          "max_scan_depth": 1000
        }
      },
      {
        "product_id": "x402-ip-inspector",
        "schema_version": 1,
        "title": "IPv4 and IPv6 address inspector: canonical form, integer, reverse DNS and what kind of address it is",
        "what_it_is": "One GET takes one IPv4 or IPv6 address and returns its canonical and fully expanded form, its decimal integer and hex value, its reverse-DNS name (in-addr.arpa or ip6.arpa), and the special-purpose ranges it belongs to — private, loopback, link-local, multicast, documentation, carrier-grade NAT, unique-local, NAT64, 6to4, Teredo — with a boolean per flag. An IPv4-mapped IPv6 address also returns the embedded IPv4 address. The address is parsed inside this Worker with integer arithmetic; nothing is looked up, fetched or stored.",
        "when_to_buy": "Buy one call when an agent or a script has an address as text and must decide what it is before acting: an SSRF guard that must reject loopback/private/link-local targets, a log normaliser that must compare IPv6 addresses written two different ways, or a check that an address is documentation-only before putting it in an example. The work it saves is the IPv6 parser, the :: compression rule, the 128-bit integer and the reverse-DNS nibble order, which are easy to get subtly wrong.",
        "subject": {
          "what_is_delivered": [
            "version (4 or 6), canonical (IPv6 compressed with the longest zero run, IPv4 dotted) and expanded (eight zero-padded IPv6 groups)",
            "integer and hex: the whole address as an unsigned decimal string and as 0x-prefixed hex (no floating-point rounding)",
            "reverse_dns: octets reversed + in-addr.arpa for IPv4, 32 nibbles reversed + ip6.arpa for IPv6",
            "scope, flags {private, loopback, link_local, multicast, unspecified, documentation, reserved, global} and special_ranges[]",
            "ipv4_mapped: the embedded IPv4 address for ::ffff:0:0/96, else null"
          ],
          "not_included": [
            "no reachability, geolocation, ASN, ownership or reputation lookup: this is a pure parse and classification",
            "no DNS query: reverse_dns is the name to query, not its answer",
            "no IPv6 zone identifiers (%eth0) and no non-canonical IPv4 forms such as 010.0.0.1 or 127.1",
            "no subnet/CIDR arithmetic: use /cidr for an IPv4 network"
          ],
          "source": "integer parsing and RFC 4291 / RFC 5952 formatting inside this Worker; no upstream call and no bundled table",
          "live_call_semantics": "Nothing leaves the Worker. The address is parsed after payment is verified, in the same request."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/ip",
            "params": {
              "addr": "required. One IPv4 address (four decimal octets, no leading zeros) or one IPv6 address (optional :: compression, up to eight hex groups, optional embedded IPv4). Max 64 characters."
            },
            "body": "none",
            "note": "addr is validated before any payment: a missing addr with a payment header, an invalid address, a zone id or an over-long value is 400 and no payment is requested. A bare GET /ip is 402 so a catalogue can probe the price."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-ip-inspector\"",
              "schema_version": "number",
              "input": "{ addr }",
              "valid": "boolean — true on a 200",
              "version": "number — 4 or 6",
              "canonical": "string — compressed IPv6 or dotted IPv4",
              "expanded": "string | null — eight zero-padded IPv6 groups; null for IPv4",
              "integer": "string — unsigned decimal (a string because a 128-bit value exceeds JS number precision)",
              "hex": "string — 0x-prefixed, zero-padded to 8 (IPv4) or 32 (IPv6) hex digits",
              "reverse_dns": "string — the in-addr.arpa / ip6.arpa name to query",
              "scope": "string — loopback, private, link_local, multicast, documentation, reserved, shared, ipv4_mapped, nat64, tunnel, broadcast, unspecified or global",
              "flags": "{ private, loopback, link_local, multicast, unspecified, documentation, reserved, global } — booleans",
              "special_ranges": "string[] — every special-purpose range that matched",
              "ipv4_mapped": "string | null — embedded IPv4 for ::ffff:0:0/96",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no parsed address is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /ip — one address",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The address you pass is parsed for this one response and is not stored or logged. No lookup of the address is made."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/ip?addr=2001%3Adb8%3A%3A1'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/ip?addr=2001%3Adb8%3A%3A1'   -> 200 with the parsed address",
          "response_example": "{\n  \"version\": 6, \"canonical\": \"2001:db8::1\",\n  \"expanded\": \"2001:0db8:0000:0000:0000:0000:0000:0001\",\n  \"integer\": \"42540766411282592856903984951653826561\",\n  \"hex\": \"0x20010db8000000000000000000000001\",\n  \"reverse_dns\": \"1.0.0.0.…8.b.d.0.1.0.0.2.ip6.arpa\",\n  \"scope\": \"documentation\", \"flags\": { \"documentation\": true, \"global\": false },\n  \"special_ranges\": [\"documentation\"], \"ipv4_mapped\": null\n}",
          "note": "addr is a query parameter, so an agent can call it as a plain GET. IPv6 contains colons, so percent-encode it or send it as a query value. The sample values above are illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (addr); no POST, no body, no account.",
          "distinct_from_siblings": "GET /cidr computes an IPv4 network from an address and prefix (network, broadcast, host range). This product parses one IPv4 or IPv6 address itself: IPv6 canonical/expanded form, the 128-bit integer, reverse DNS and the special-purpose classification. /dns looks up DNS records; this one never queries DNS.",
          "price": "The 402 response always carries IP_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "ipv4",
            "ipv6",
            "ip address",
            "reverse dns",
            "private ip",
            "ssrf",
            "ip parser"
          ],
          "claims": "Describe only the parse and the special-purpose ranges checked. Say that global means outside those ranges, not reachable or reputable. Do not claim geolocation, ASN, ownership or a DNS answer."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-ai-access",
        "schema_version": 1,
        "title": "Which AI crawlers may read this site? robots.txt interpreted per fixed AI user agent, with the exact rule and line — GPTBot, ClaudeBot, CCBot, Google-Extended, PerplexityBot, Amazonbot, Applebot-Extended, Bytespider and *",
        "what_it_is": "One GET reads the target's /robots.txt once and returns, for each fixed AI user agent and for the wildcard *, allowed:true (no matching Disallow wins), allowed:false (a Disallow wins) or allowed:null (robots.txt could not be read). Each answer carries matched_rule with the 1-based line number and only the matching line's original text, never the whole robots.txt body. A 404/410 response is no_file:true and allowed:true for every agent; a 5xx, timeout or 403 is unreachable:true and allowed:null. The response also returns sitemap_count (the number of Sitemap lines) and llms_txt (presence only, checked with one HEAD). The parser follows RFC 9309: case-insensitive user-agent matching, merging of every group that matches the same token, fallback to the * group only when no exact group exists, case-sensitive path matching, the longest matching pattern, Allow winning when Allow and Disallow are equivalent, * as zero or more characters and a trailing $ as the end anchor. RFC 9309 §2.3.1.4 specifies that a 5xx robots.txt is treated as complete disallow; this service reports allowed:null (unreadable) instead of claiming false, and does not charge for that call. This is an interpretation of robots.txt, not a legal permission or licence to use the content. これは robots.txt の解釈であり、法的な利用許諾ではありません。",
        "when_to_buy": "Buy one call before a crawl, a RAG fetch or a monitoring job, when you need to know whether a named AI crawler is allowed to read a URL without parsing robots.txt yourself. It is also useful when you run a site and want to see how the fixed AI user agents are treated, or when a robots.txt returns 403/5xx and you need to distinguish 'no file' (allowed) from 'could not read' (null). The answer is machine-readable and names the exact line, so an agent can log why it skipped or fetched a URL.",
        "subject": {
          "what_is_delivered": [
            "bots: one entry for each fixed token (GPTBot, ClaudeBot, CCBot, Google-Extended, PerplexityBot, Amazonbot, Applebot-Extended, Bytespider) and for *, with allowed true/false/null and matched_rule",
            "matched_rule: {line, text} where line is the 1-based line number and text is only that rule line (no comments, no whole body)",
            "robots: {status, bytes, no_file, unreachable, reason, requests_made, final_url, content_type, truncated}",
            "sitemap_count: the number of non-empty Sitemap lines in robots.txt",
            "llms_txt: {present: true/false/null, status} — presence only, no content",
            "checked_at, robots_url, host, basis and the disclaimer (interpretation, not a legal permission)"
          ],
          "not_included": [
            "no robots.txt body: only the matching rule line is returned",
            "no legal advice or licence: robots.txt is a crawler instruction, not a copyright, contract or ToS permission",
            "no X-Robots-Tag, no noai/noimageai meta tags, no Terms of Service analysis, no content fetch",
            "no sitemap content and no llms.txt content; only the count and presence",
            "no cache: each paid call reads the live robots.txt once (RFC 9309 permits caching, this service does not use it)"
          ],
          "source": "One GET of https://<target-host>/robots.txt (same scheme, host and port as the validated URL), with no payment header sent to the target, plus one HEAD of /llms.txt. Parsing and matching run in this Worker.",
          "live_call_semantics": "The URL is validated before anything is fetched: missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are 400 with no fetch and no payment request. robots.txt is read once with a 5-second timeout, at most 5 redirects (each hop validated with the same SSRF rules) and a 512 KiB cap. 404/410 is a successful no_file answer. A timeout, 403 or 5xx is 502 before verify/settle, so nothing is charged and every bot is null. A robots.txt larger than the cap is also 502 before verify/settle."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/ai-access",
            "params": {
              "url": "required. Absolute http(s) URL whose origin's /robots.txt should be interpreted. Missing, malformed, credential-bearing, loopback/private/internal or non-web-port URLs are refused with 400 before anything is fetched."
            },
            "body": "none",
            "note": "A bare GET /ai-access answers 402 for catalogues. With a payment header and no url it is 400, before any payment is verified and before any fetch."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "bots": "{<token>: {user_agent, allowed: boolean|null, matched_rule: {line: number, text: string}|null}}",
              "robots": "{status: number|null, bytes: number|null, no_file: boolean, unreachable: boolean, reason: string|null, requests_made: number, final_url: string, content_type: string|null, truncated: boolean}",
              "sitemap_count": "number",
              "llms_txt": "{present: boolean|null, status: number|null}",
              "checked_at": "ISO 8601 string",
              "robots_url": "string",
              "basis": "RFC 9309",
              "disclaimer": "string",
              "disclaimer_ja": "string"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /ai-access — one URL, one robots.txt read",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The robots.txt file is read once from the origin you name. Only the matching rule line is returned; the rest of the file is not stored, logged or resold. The answer is an interpretation, not a legal permission."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/ai-access?url=https%3A%2F%2Fexample.com%2Fpage'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/ai-access?url=https%3A%2F%2Fexample.com%2Fpage'   -> 200 with the per-agent interpretation",
          "response_example": "{\n  \"bots\": {\n    \"gptbot\": { \"user_agent\": \"GPTBot\", \"allowed\": false, \"matched_rule\": { \"line\": 12, \"text\": \"Disallow: /private\" } },\n    \"ccbot\": { \"user_agent\": \"CCBot\", \"allowed\": true, \"matched_rule\": { \"line\": 4, \"text\": \"Allow: /\" } },\n    \"*\": { \"user_agent\": \"*\", \"allowed\": true, \"matched_rule\": null }\n  },\n  \"robots\": { \"status\": 200, \"bytes\": 365, \"no_file\": false, \"unreachable\": false },\n  \"sitemap_count\": 1,\n  \"llms_txt\": { \"present\": false, \"status\": 404 },\n  \"checked_at\": \"2026-10-19T00:00:00.000Z\",\n  \"disclaimer\": \"This is an interpretation of robots.txt, not a legal permission or licence to use the content.\"\n}",
          "note": "url is a query parameter, so an agent can call it as a plain GET. allowed:null is not a refusal: it means robots.txt could not be read, and the 502 response is not charged."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (url); no POST, no body, no account.",
          "distinct_from_siblings": "GET /check probes whether one x402 endpoint answers 402; GET /markdown converts an article; GET /contract normalises the output contract declared in a 402; GET /failure reads what a target's 402 says about failure. None of them reads or interprets the target's robots.txt, so this endpoint does not duplicate them.",
          "keywords": [
            "robots.txt",
            "ai crawlers",
            "gptbot",
            "claudebot",
            "ccbot",
            "perplexitybot",
            "llms.txt",
            "sitemap"
          ],
          "claims": "Say 'interpretation of robots.txt', never 'permission' or 'legal approval'. State that 404/410 is no file, 5xx/timeout/403 is unreadable and null, and that the robots.txt body is never returned. Do not claim to read X-Robots-Tag, noai/noimageai meta tags or Terms of Service, and do not promise that a crawler will obey."
        },
        "limits": {
          "max_body_bytes": 524288,
          "timeout_ms": 5000,
          "max_redirects": 5,
          "bots": [
            "GPTBot",
            "ClaudeBot",
            "CCBot",
            "Google-Extended",
            "PerplexityBot",
            "Amazonbot",
            "Applebot-Extended",
            "Bytespider"
          ],
          "wildcard": "*",
          "llms_txt": "HEAD only, presence only",
          "sitemap": "line count only"
        }
      },
      {
        "product_id": "x402-url-inspector",
        "schema_version": 1,
        "title": "URL inspector: scheme, host, port, path, query parameters and the normalized form in one GET",
        "what_it_is": "One GET takes one absolute http(s) URL and returns its parsed parts: scheme, host (lowercased and IDN-normalized by the WHATWG parser), port and whether it is the default, origin, path and path segments, every query parameter as name/value pairs with duplicates preserved, the fragment, and the normalized href. It also reports whether the URL carries credentials, the username, and password_present, but never returns the password. Everything is parsed inside this Worker with the standard URL parser; nothing is fetched, DNS-resolved or stored.",
        "when_to_buy": "Buy one call when an agent receives a URL as text and must compare, log or rewrite it safely: checking whether a link carries user:password, listing the query parameters before signing or forwarding, normalizing the form for a cache key, or separating the origin from the path before an allow-list decision. The work it saves is the percent-decoding, duplicate-parameter handling, default-port and IDN normalization that hand-written string splitting usually gets wrong.",
        "subject": {
          "what_is_delivered": [
            "scheme, is_http, is_https and origin",
            "host (WHATWG-normalized), port (null when absent) and is_default_port",
            "path, path_segments[], query_param_count and query_params[] as {name, value} pairs with duplicates preserved",
            "fragment (null when absent) and normalized href",
            "username, has_credentials and password_present — the password itself is never returned"
          ],
          "not_included": [
            "no fetch, no DNS resolution, no redirect following and no HTTP status: this is a parse, not a visit",
            "no reputation, safety or phishing judgement and no claim that a URL is safe to open",
            "no non-http(s) schemes: mailto, file, data, ftp and custom schemes are 400 before payment",
            "no public-suffix or registrable-domain calculation: host is the parser's hostname, not an eTLD+1"
          ],
          "source": "the standard WHATWG URL parser inside this Worker; no upstream call and no bundled table",
          "live_call_semantics": "Nothing leaves the Worker. The URL is parsed after payment is verified, in the same request."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/url",
            "params": {
              "url": "required. One absolute http(s) URL, at most 2048 characters. Missing, malformed, over-long and non-http(s) values are 400 before payment. Percent-encode the value when it contains its own query string."
            },
            "body": "none",
            "note": "A bare GET /url answers 402 for catalogues. With a payment header and no url it is 400, before any payment is verified."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-url-inspector\"",
              "schema_version": "number",
              "input": "{ url }",
              "scheme": "string — http or https",
              "host": "string — WHATWG-normalized hostname",
              "port": "string | null — the explicit port, null when absent",
              "default_port": "string — 443 for https, 80 for http",
              "is_default_port": "boolean",
              "origin": "string",
              "path": "string",
              "path_segments": "string[]",
              "query_param_count": "number",
              "query_params": "[{name, value}] — duplicates preserved, percent-decoded",
              "fragment": "string | null",
              "normalized": "string — the parser's href",
              "username": "string | null",
              "has_credentials": "boolean",
              "password_present": "boolean — the password itself is never returned",
              "computed_at": "ISO 8601 string",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no parsed URL is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /url — one URL",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The URL you pass is parsed for this one response and is not stored or logged. Nothing is fetched and the password is never returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/url?url=https%3A%2F%2Fexample.com%2Fa%2Fb%3Fx%3D1%26x%3D2%23top'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/url?url=https%3A%2F%2Fexample.com%2Fa%2Fb%3Fx%3D1%26x%3D2%23top'   -> 200 with the parsed URL",
          "response_example": "{\n  \"scheme\": \"https\", \"host\": \"example.com\", \"port\": null, \"default_port\": \"443\",\n  \"origin\": \"https://example.com\", \"path\": \"/a/b\", \"path_segments\": [\"a\", \"b\"],\n  \"query_param_count\": 2, \"query_params\": [{ \"name\": \"x\", \"value\": \"1\" }, { \"name\": \"x\", \"value\": \"2\" }],\n  \"fragment\": \"top\", \"normalized\": \"https://example.com/a/b?x=1&x=2#top\",\n  \"has_credentials\": false, \"password_present\": false\n}",
          "note": "url is a query parameter, so an agent can call it as a plain GET. The URL's own & and # must be percent-encoded inside the url value. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (url); no POST, no body, no account.",
          "distinct_from_siblings": "GET /ip parses an IP address; GET /cidr computes an IPv4 network; GET /dns looks up DNS records. This product parses one absolute URL: scheme, host, port, path, query pairs, fragment and normalized form. It never fetches the URL and never queries DNS.",
          "price": "The 402 response always carries URL_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "url parser",
            "query parameters",
            "url normalize",
            "percent decode",
            "url credentials",
            "utility"
          ],
          "claims": "Describe only the WHATWG parse and the fields returned. Never call a URL safe or malicious. Say that a password is never returned and that nothing is fetched."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-dns-propagation",
        "schema_version": 1,
        "title": "DNS propagation check: compare the same DNS question across Cloudflare, Google and Quad9 in one GET",
        "what_it_is": "One GET takes a DNS name and one record type (A, AAAA, MX, TXT or CNAME) and asks several public DNS-over-HTTPS resolvers the same question once each, in parallel. For every resolver it returns {resolver, status: ok|timeout|error, rcode, answers[], ttl_min, elapsed_ms, ad} and compares the rcode and the set of answers with order ignored. agreement is all (every reachable resolver is identical), partial (some agree and some do not), none (no two reachable resolvers agree) or null (fewer than two resolvers returned a DNS response). disagreeing[] names the resolvers outside the majority, and unreachable[] names the resolvers that timed out or failed. NODATA (rcode 0 with no answers) is kept separate from a failure to obtain an answer: a timeout or error has status timeout/error, rcode null and answers []. TTL is not used in the comparison; ttl_min is reported per resolver only. ad is each resolver's DNSSEC Authenticated Data flag and is not a statement that the domain is secure. This is a snapshot of what those resolvers returned at that moment, not a propagation guarantee.",
        "when_to_buy": "Buy one call right after a DNS change, a nameserver move or a CNAME/MX/TXT edit, when a name resolves for one person and not another. Instead of opening several resolver web pages, an agent gets one machine-readable comparison: which resolvers answered, which did not, where the answers differ, and whether an empty result was a real NODATA or a resolver that could not be read. It is also useful before a mail or domain migration when you need the current TXT, MX or CNAME view from more than one resolver.",
        "subject": {
          "what_is_delivered": [
            "one entry per resolver: {resolver, status: ok|timeout|error, rcode, rcode_name, answers[], ttl_min, ad, nodata, nxdomain, elapsed_ms}",
            "answers[] is the answer set with order ignored and TTL removed; each entry is {type, value}",
            "agreement: all|partial|none|null, disagreeing[] and unreachable[]",
            "the comparison basis (rcode + answer set; TTL and AD are not compared) and the total elapsed_ms"
          ],
          "not_included": [
            "no cache-busting, no repeated query and no retry: one request per resolver, so this is one moment, not a trend",
            "no propagation guarantee, no uptime claim and no authoritative-nameserver query",
            "no DNSSEC validation claim: ad is the resolver's flag, not a safety or trust verdict",
            "no TTL comparison: TTL is reduced by each resolver's cache and is returned only as ttl_min",
            "no other record types and no zone transfer: A, AAAA, MX, TXT, CNAME only"
          ],
          "source": "public DNS-over-HTTPS endpoints (cloudflare, google, quad9), asked once each in parallel; no account, key or paid upstream",
          "live_call_semantics": "The resolvers are queried once each only after the input passes validation and a payment header is present. If every resolver times out or fails, the call returns 502 and is not charged. If at least one resolver answers, the call is charged and the failures are reported in unreachable[]."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/dns-propagation",
            "params": {
              "name": "required. A DNS name such as example.com. Lowercased, trailing dots removed, IDN labels converted to punycode. Underscore labels such as _dmarc.example.com are accepted.",
              "type": "optional. One of A, AAAA, MX, TXT, CNAME. Default A. Any other value is refused with 400 before payment."
            },
            "body": "none",
            "note": "A bare GET /dns-propagation answers 402 for catalogues. Missing, malformed, over-long, IP-literal and wildcard names, and types outside A, AAAA, MX, TXT, CNAME, are 400 before payment. A payment header with no name is also 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-dns-propagation\"",
              "schema_version": "number",
              "query": "{ name, type }",
              "resolver_count": "number — resolvers asked (at most 4)",
              "reachable_count": "number — resolvers with status ok",
              "agreement": "string — \"all\" | \"partial\" | \"none\" | null",
              "disagreeing": "string[] — reachable resolvers outside the majority; all reachable resolvers when agreement is none",
              "unreachable": "string[] — resolvers whose status is timeout or error",
              "comparison": "{ basis, note? } — what was compared and what was not",
              "resolvers": "[{ resolver, protocol, endpoint, status, rcode, rcode_name, answers, ttl_min, ad, nodata, nxdomain, elapsed_ms, error? }]",
              "elapsed_ms": "number — wall time for the parallel resolver queries",
              "checked_at": "ISO 8601 string",
              "source": "{ protocols, query_mode, timeout_ms }",
              "note": "string — the NODATA/timeout distinction and the TTL/AD caveats",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no resolver result is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dns-propagation — one name, one type, one parallel resolver comparison",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The comparison is a snapshot of public resolver answers for the name you supplied. It is not a propagation guarantee, an uptime claim or a DNSSEC safety verdict."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/dns-propagation?name=example.com&type=A'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/dns-propagation?name=example.com&type=A'   -> 200 with the comparison",
          "response_example": "{\n  \"query\": { \"name\": \"example.com\", \"type\": \"A\" },\n  \"resolver_count\": 3, \"reachable_count\": 2,\n  \"agreement\": \"all\", \"disagreeing\": [], \"unreachable\": [\"quad9\"],\n  \"resolvers\": [\n    { \"resolver\": \"cloudflare\", \"status\": \"ok\", \"rcode\": 0, \"answers\": [{ \"type\": \"A\", \"value\": \"93.184.216.34\" }], \"ttl_min\": 300, \"ad\": true, \"nodata\": false, \"nxdomain\": false, \"elapsed_ms\": 120 },\n    { \"resolver\": \"google\", \"status\": \"ok\", \"rcode\": 0, \"answers\": [{ \"type\": \"A\", \"value\": \"93.184.216.34\" }], \"ttl_min\": 300, \"ad\": true, \"nodata\": false, \"nxdomain\": false, \"elapsed_ms\": 80 }\n  ]\n}",
          "note": "The example is illustrative. A NODATA answer has status ok, rcode 0 and answers []. A timeout or error has status timeout or error, rcode null and answers [], and is listed in unreachable[]."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter and one optional type, so a read-only 402 probe is enough for a catalogue to list it.",
          "distinct_from_siblings": "GET /dns reads one record from one resolver; /mailauth, /dkim, /spf-depth and /dmarc-policy each read one resolver too. This product asks several public resolvers the same question and compares their rcode and answer sets, so it answers a different question: do they agree, and which of them failed to answer?",
          "price": "The 402 response always carries DNS_PROPAGATION_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "dns propagation",
            "dns propagation check",
            "resolver comparison",
            "dns consistency",
            "nameserver propagation"
          ],
          "claims": "Describe only the returned snapshot and the comparison rules. Do not claim that a domain has propagated, that a resolver is authoritative, that DNSSEC is safe, or that TTL differences are configuration errors."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "record_types": [
            "A",
            "AAAA",
            "MX",
            "TXT",
            "CNAME"
          ],
          "default_type": "A",
          "max_resolvers": 4,
          "timeout_ms": 5000,
          "max_domain_length": 253
        }
      },
      {
        "product_id": "x402-dnssec-status",
        "schema_version": 1,
        "title": "DNSSEC status for one domain: secure, insecure, bogus or indeterminate in one GET",
        "what_it_is": "One GET asks for the domain's DS record once (Cloudflare DoH, type=DS) and asks two validating resolvers (Cloudflare and Google) for the A record once each with do=1. It then returns one of four states: secure (a DS exists and both resolvers return rcode 0 with AD true), insecure (the DS query returns rcode 0 with no DS and both resolvers return rcode 0 with AD false), bogus (a DS exists, both resolvers return SERVFAIL and neither claims AD true), or indeterminate (anything else). ds_count, ds_algorithms and ds_digests are the DS numbers exactly as published. resolvers[] carries each A query's status, rcode, AD flag and answer_count. A DS record lives in the parent zone, so its presence is not proof that the child zone validated; AD is each resolver's claim, not a safety verdict. SERVFAIL can have causes other than DNSSEC, so bogus never asserts an attack or that DNSSEC failed.",
        "when_to_buy": "Buy one call before a DNS cutover, when a domain resolves for one resolver but not another, or when an agent needs a machine-readable DNSSEC status for a payment or citation target instead of opening a DNSSEC debugger page. It separates 'no signature' from 'signature present but validation failed' and keeps unreadable upstreams separate from both.",
        "subject": {
          "what_is_delivered": [
            "status: secure | insecure | bogus | indeterminate, with reason",
            "ds_present (true | false | null), ds_count, ds_algorithms[] and ds_digests[] as numbers",
            "resolvers[]: one entry per validating resolver with {resolver, status, rcode, ad, answer_count}",
            "the DS query result and the checked_at time"
          ],
          "not_included": [
            "no zone audit: NSEC/NSEC3 completeness, RRSIG expiry, algorithm rollover and CNAME chains are not evaluated",
            "no proof that a SERVFAIL was caused by DNSSEC",
            "no assertion that a domain is safe, dangerous or under attack",
            "no record types other than A; the DS query is only used to establish ds_present"
          ],
          "source": "public DNS-over-HTTPS JSON endpoints (Cloudflare for DS and A, Google for A), one request each, no retry",
          "live_call_semantics": "Three queries run in parallel after the input passes validation and a payment header is present. If all three time out or fail, the call returns 502 and is not charged. If at least one DNS response is received, the call is charged and the unreadable queries are reported in the breakdown."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/dnssec",
            "params": {
              "domain": "required. A domain such as example.com. Lowercased, trailing dots removed, IDN labels converted to punycode.",
              "type": "optional. Only A is accepted. Any other value is refused with 400 before payment."
            },
            "body": "none",
            "note": "A bare GET /dnssec answers 402 for catalogues. Missing, malformed, over-253-character, empty-label, wildcard and IP-literal domains, and types other than A, are 400 before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-dnssec-status\"",
              "schema_version": "number",
              "domain": "string — the normalized domain that was queried",
              "status": "string — secure | insecure | bogus | indeterminate",
              "reason": "string — which rule produced the status",
              "ds_present": "boolean | null — true: DS returned; false: rcode 0 with no DS; null: not established",
              "ds_count": "number | null — number of DS records returned by the DS query",
              "ds_algorithms": "number[] — DS algorithm numbers, deduplicated and sorted",
              "ds_digests": "number[] — DS digest type numbers, deduplicated and sorted",
              "resolvers": "[{ resolver, status: ok|servfail|timeout|error, rcode, ad, answer_count }]",
              "ds_lookup": "{ resolver, status, rcode, ad, answer_count } — the DS query itself",
              "checked_at": "ISO 8601 string",
              "source": "{ ds_query, validation_queries, query_mode, timeout_ms }",
              "note": "string — what is and is not proven by the four states",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no resolver result is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /dnssec — one domain, one DS query and two A queries, one four-state verdict",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The result is a snapshot of what two public validating resolvers returned for one domain at one moment. It is not a zone audit, a security rating, or proof that a SERVFAIL was caused by DNSSEC."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/dnssec?domain=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/dnssec?domain=example.com'   -> 200 with the four-state verdict",
          "response_example": "{\n  \"domain\": \"example.com\", \"status\": \"secure\", \"reason\": \"ds_and_validated\",\n  \"ds_present\": true, \"ds_count\": 2, \"ds_algorithms\": [13], \"ds_digests\": [2],\n  \"resolvers\": [\n    { \"resolver\": \"cloudflare\", \"status\": \"ok\", \"rcode\": 0, \"ad\": true, \"answer_count\": 3 },\n    { \"resolver\": \"google\", \"status\": \"ok\", \"rcode\": 0, \"ad\": true, \"answer_count\": 3 }\n  ]\n}",
          "note": "The example is illustrative. bogus means only that both resolvers returned SERVFAIL and neither claimed AD true; it does not identify DNSSEC as the cause."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter, so a read-only 402 probe is enough for a catalogue to list it.",
          "distinct_from_siblings": "GET /dns returns records from one resolver; /mailauth and /mta-sts evaluate mail records; /dns-propagation compares answers but explicitly makes no DNSSEC verdict. This product returns the four RFC 4033 states by combining the DS lookup with the rcode and AD of two validating resolvers.",
          "price": "The 402 response always carries DNSSEC_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "dnssec",
            "dnssec check",
            "dnssec validation",
            "ds record",
            "dns security"
          ],
          "claims": "Describe only what the DS lookup and the two resolvers returned. Do not call a domain dangerous, attacked or insecure-by-failure, and do not claim that SERVFAIL proves a DNSSEC problem."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "record_type": "A",
          "ds_query_type": "DS",
          "max_resolvers": 2,
          "timeout_ms": 5000,
          "max_domain_length": 253,
          "max_label_length": 63,
          "do_bit": true,
          "cd_bit": false
        }
      },
      {
        "product_id": "x402-random-pick",
        "schema_version": 1,
        "title": "Pick random items from a list in one GET: uniform, without replacement, crypto random",
        "what_it_is": "One GET takes a list of items and returns count items chosen at random, plus the 0-based index of each pick. By default it draws without replacement (no item appears twice); set replace=true to draw with replacement. The draw uses crypto.getRandomValues with rejection sampling, and the without-replacement path is a partial Fisher-Yates shuffle, so each item is equally likely. The list and the result are computed inside this Worker; nothing is fetched, stored or logged.",
        "when_to_buy": "Buy one call when an agent or a script has to choose a random winner, assign jobs to workers, pick a subset for a spot check or shuffle a short list, and does not want to carry its own unbiased sampling code, handle the 'count larger than the list' case or trust Math.random().",
        "subject": {
          "what_is_delivered": [
            "picked[] — count values taken from the items you passed, in draw order",
            "indices[] — the 0-based position of each pick in your original list (duplicates possible only with replace=true)",
            "input, unique (whether replacement was used) and a timestamp"
          ],
          "not_included": [
            "no seed, no signed randomness beacon and no on-chain proof: this is a local CSPRNG draw",
            "no history, no storage and no reproducibility: the same call returns different picks",
            "no weighting or exclusions: every item is equally likely; filter the list before the call if you need that",
            "no item values are stored or logged after the response"
          ],
          "source": "crypto.getRandomValues inside this Worker, with rejection sampling; Fisher-Yates for without-replacement draws",
          "live_call_semantics": "Nothing leaves the Worker. The picks are drawn after payment is verified, in the same request."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/pick",
            "params": {
              "items": "required. 1..100 values separated by commas or newlines, at most 2000 characters in total. An empty value, an over-long item or too many items is 400 before payment.",
              "count": "optional. How many items to pick, 1..100; default 1. With replace=false it must not exceed the number of items.",
              "replace": "optional. true to draw with replacement (an item can repeat), false or omitted to draw without replacement."
            },
            "body": "none",
            "note": "items, count and replace are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /pick is 402 so a catalogue can probe the price; with a payment header and no items it is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-random-pick\"",
              "schema_version": "number",
              "input": "{ item_count, count, replace }",
              "picked": "string[] — count values from items, in draw order",
              "indices": "number[] — 0-based positions of the picks in the items list",
              "unique": "boolean — true when drawn without replacement",
              "source": "string — the RNG and sampling method used",
              "generated_at": "string — ISO 8601 timestamp",
              "note": "string — the 0-based index convention and the no-storage note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no pick is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /pick — one list, one set of picks",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The picks are a local CSPRNG draw for this request; no seed or signed beacon is provided or implied."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/pick?items=alice,bob,carol,dave&count=2'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/pick?items=alice,bob,carol,dave&count=2'   -> 200 with the picks",
          "response_example": "{\n  \"input\": { \"item_count\": 4, \"count\": 2, \"replace\": false },\n  \"picked\": [\"carol\", \"alice\"], \"indices\": [2, 0], \"unique\": true,\n  \"source\": \"crypto.getRandomValues with rejection sampling (Fisher-Yates, without replacement)\"\n}",
          "note": "items, count and replace are query parameters, so an agent can call it as a plain GET. The sample above is illustrative; each paid call returns fresh picks."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (items) and two optional ones; no POST, no body, no account.",
          "distinct_from_siblings": "GET /random returns raw random bytes, hex/base64/UUID. GET /dice rolls dice with a fixed number of faces. This one chooses from a list the caller supplies and returns the picked values and their positions. No other route samples a caller-supplied list without replacement.",
          "price": "The 402 response always carries PICK_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "random pick",
            "shuffle",
            "sample",
            "choose",
            "lottery",
            "random",
            "uniform"
          ],
          "claims": "Describe only the CSPRNG draw, the replacement rule and the uniformity. Do not claim a seed, provable fairness or a signed beacon."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-fx-reference-rate",
        "schema_version": 1,
        "title": "Reference FX rate, converted amount, rate date and age in one GET — with the date it actually used",
        "what_it_is": "One GET takes a base currency, a quote currency and an amount, and returns the reference rate, the converted amount, inverse_rate (computed as 1/rate), the rate date the source actually used, how many days old that date is, whether a requested date was adjusted, and whether the rate is stale. The rate comes from Frankfurter's ECB reference-rate feed (providers=ecb), read once per request and cached briefly by pair and requested date. kind is always \"reference\": this is not a settlement or execution rate. Crypto assets (USDC, USDT, BTC, ETH, ...) are not covered, and no USDC≈USD proxy conversion is performed. The underlying ECB reference rates may be obtained free of charge from the European Central Bank at https://www.ecb.europa.eu/stats/eurofxref/ ; the converted amount and inverse_rate are this service's own calculations, not ECB publications.",
        "when_to_buy": "Buy one call when you must show a fiat amount in another currency and need to disclose the rate and the date behind it: converting a USD API price for a Japanese buyer, writing an invoice note, or checking whether \"latest\" is actually three days old. The response makes the date explicit instead of silently substituting an older business day, and separates \"no such currency\" (400) from \"the source could not be read\" (502, not charged).",
        "subject": {
          "what_is_delivered": [
            "from, to and amount as normalized and received",
            "rate from the ECB reference feed and converted = amount × rate",
            "inverse_rate computed as 1/rate (it may differ from a separately published inverse quote because of rounding)",
            "requested_date (\"latest\" or the date you asked for), rate_date actually used and rate_age_days",
            "date_adjusted (true when the source used a different date) and stale (older than the configured threshold)",
            "source and kind — kind is always \"reference\""
          ],
          "not_included": [
            "no settlement, execution, bid/ask or tradable rate: this is a published reference rate",
            "no crypto assets (USDC, USDT, BTC, ETH, ...) and no USDC≈USD or other proxy conversion",
            "no historical series, no time series and no multiple dates in one call",
            "no forward filling or guessing: if the source cannot be read, the answer is 502 and nothing is charged"
          ],
          "source": "Frankfurter v2 /rate/{from}/{to}?providers=ecb — European Central Bank reference rates",
          "live_call_semantics": "The source is read at most once per request, after the input is validated and before payment is verified. A source failure returns 502 without calling the facilitator, so nothing is charged. A successful read is cached in KV by pair and requested date for a short TTL; a repeat within that TTL reuses it."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/fx",
            "params": {
              "from": "required. Three-letter ISO 4217 code in the ECB reference set, e.g. USD. Crypto codes are refused with 400.",
              "to": "required. Three-letter ISO 4217 code in the ECB reference set, e.g. JPY. Must differ from from.",
              "amount": "required. Finite number greater than 0 and at most 1000000000, e.g. 100.",
              "date": "optional. YYYY-MM-DD; omit or use latest for the most recent published rate. A date the source adjusts is reported with date_adjusted=true."
            },
            "body": "none",
            "note": "A bare GET /fx answers 402 for catalogues. Any supplied parameter is validated before payment: missing, malformed, unsupported, same-currency and out-of-range values are 400 and no payment is requested."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "from": "string — ISO 4217 code",
              "to": "string — ISO 4217 code",
              "amount": "number",
              "rate": "number — ECB reference rate for 1 from = rate to",
              "converted": "number — amount × rate, rounded to 6 decimal places",
              "inverse_rate": "number — 1/rate, rounded to 8 decimal places",
              "requested_date": "string — \"latest\" or YYYY-MM-DD",
              "rate_date": "string — YYYY-MM-DD actually used by the source",
              "rate_age_days": "number | null — whole days from rate_date to today (UTC)",
              "date_adjusted": "boolean — requested date differs from rate_date",
              "stale": "boolean — rate_age_days exceeds the configured threshold",
              "source": "string — \"ECB reference rates via Frankfurter\"",
              "kind": "string — always \"reference\"",
              "note": "string — reference-only disclaimer and crypto exclusion",
              "cached": "boolean — whether this response reused the short-lived KV entry",
              "computed_at": "ISO 8601 string",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no rate is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "asset_decimals": 6,
          "amount_usd": 0.002,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /fx — one pair, one amount, one rate date",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The pair, amount and optional date are used for this one response. The rate is cached in KV for a short TTL without the payer identity. The source is public data under the ECB's terms and Frankfurter's MIT-licensed API."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/fx?from=USD&to=JPY&amount=100'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/fx?from=USD&to=JPY&amount=100'   -> 200 with the rate, converted amount and rate date",
          "response_example": "{\n  \"from\": \"USD\", \"to\": \"JPY\", \"amount\": 100, \"rate\": 158.02, \"converted\": 15802,\n  \"inverse_rate\": 0.00632831, \"requested_date\": \"latest\", \"rate_date\": \"2026-10-16\",\n  \"rate_age_days\": 3, \"date_adjusted\": false, \"stale\": false,\n  \"source\": \"ECB reference rates via Frankfurter\", \"kind\": \"reference\"\n}",
          "note": "from, to and amount are query parameters, so an agent can call it as a plain GET. The example is illustrative; the live rate and rate date come from the source at request time."
        },
        "listing_notes": {
          "resource_type": "Plain GET with three required query parameters (from, to, amount) and one optional date; no POST, no body, no account.",
          "distinct_from_siblings": "GET /convert converts units and deliberately excludes currencies; GET /ts converts timestamps; GET /price benchmarks x402 prices; GET /gas reports gas prices. This product returns a fiat reference rate, the converted amount, the rate date and its age. It is not a unit converter and not a settlement quote.",
          "price": "The 402 response always carries FX_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "fx",
            "exchange rate",
            "currency conversion",
            "ecb",
            "reference rate",
            "usd to jpy"
          ],
          "claims": "Say reference rate, never settlement or execution rate. Say that crypto assets are excluded and that no USDC≈USD proxy is used. Cite the ECB as the source and state that the underlying rates are free from the ECB website (ECB copyright condition 2); state that conversions are this service's calculations. Say that an unsupported currency is 400 before payment and a source failure is 502 without charge. Do not claim the rate is live, real-time or tradable."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false,
          "cache_ttl_seconds": 3600
        }
      },
      {
        "product_id": "x402-base64",
        "schema_version": 1,
        "title": "Base64 encode or decode text in one GET, URL-safe optional, with byte counts and SHA-256",
        "what_it_is": "One GET takes one text string and either encodes it to Base64 or decodes a Base64 string back to text. Encoding uses the UTF-8 bytes of data and returns the standard alphabet with padding, or the URL-safe alphabet without padding when urlsafe=true. Decoding accepts both alphabets, with or without padding, and returns the decoded UTF-8 text; input that is not valid Base64 or not valid UTF-8 is refused with 400 before payment. The response also gives the byte count and the SHA-256 of the result. Conversion runs inside this Worker; nothing is fetched, stored or logged.",
        "when_to_buy": "Buy one call when an agent has a Base64 string from a header, a token payload or a log line and needs the original text, or must produce a Base64 value for an API field, without carrying its own charset and padding handling. It also separates 'this is not Base64' from 'this decodes to bytes that are not UTF-8', which a bare atob() call does not.",
        "subject": {
          "what_is_delivered": [
            "result: the Base64 string (encode) or the decoded text (decode)",
            "bytes: the UTF-8 byte length of data when encoding, or the decoded byte length when decoding",
            "result_chars, result_encoding and the SHA-256 of result, plus input metadata and a timestamp"
          ],
          "not_included": [
            "no binary payload and no file: the result is a string and a non-UTF-8 decode is 400",
            "no encryption, compression, MIME headers or data-URI wrapping",
            "no streaming and no history: one request, one conversion, nothing stored",
            "no validation that the decoded content is meaningful; only that it is UTF-8 text"
          ],
          "source": "TextEncoder/TextDecoder and btoa/atob inside this Worker; no upstream call",
          "live_call_semantics": "The conversion and all input validation happen before payment verification. Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/base64",
            "params": {
              "data": "required. The text to encode or the Base64 string to decode, at most 16384 characters.",
              "action": "optional. encode (default) or decode.",
              "urlsafe": "optional. true emits the URL-safe alphabet without padding when encoding; false or omitted emits standard Base64 with padding."
            },
            "body": "none",
            "note": "data, action and urlsafe are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /base64 is 402 so a catalogue can probe the price; with a payment header and no data it is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-base64\"",
              "schema_version": "number",
              "input": "{ action, urlsafe, input_chars }",
              "action": "string — \"encode\" or \"decode\"",
              "result": "string — the Base64 string or the decoded text",
              "result_encoding": "string — the alphabet used, or UTF-8 text when decoding",
              "bytes": "number — UTF-8 bytes of data (encode) or decoded bytes (decode)",
              "result_chars": "number — length of result in characters",
              "sha256": "string — SHA-256 (hex) of result",
              "source": "string — the conversion functions used",
              "converted_at": "string — ISO 8601 timestamp",
              "note": "string — decoding rules and the no-storage note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no conversion is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /base64 — one string, one conversion",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The string you pass is converted for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/base64?data=hello&action=encode'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/base64?data=hello&action=encode'   -> 200 with the Base64 string",
          "response_example": "{\n  \"input\": { \"action\": \"encode\", \"urlsafe\": false, \"input_chars\": 5 },\n  \"action\": \"encode\", \"result\": \"aGVsbG8=\", \"result_encoding\": \"base64 (RFC 4648 §4, with padding)\",\n  \"bytes\": 5, \"result_chars\": 8, \"sha256\": \"…\"\n}",
          "note": "data, action and urlsafe are query parameters, so an agent can call it as a plain GET. Percent-encode data (including + and /) or use the URL-safe output to avoid escaping."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (data) and two optional ones; no POST, no body, no account.",
          "distinct_from_siblings": "GET /random can return random bytes as Base64, but it does not encode caller text. GET /hash hashes text and GET /jwt inspects a token; neither converts Base64. No other route encodes or decodes a caller-supplied string.",
          "price": "The 402 response always carries BASE64_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "base64",
            "base64 encode",
            "base64 decode",
            "base64url",
            "atob",
            "btoa",
            "encoding"
          ],
          "claims": "Describe only the conversion, the accepted alphabets and the UTF-8-only decode. Do not claim encryption, compression, binary delivery or that the decoded content is safe."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-mta-sts",
        "schema_version": 1,
        "title": "MTA-STS: is it only a TXT record, or actually enforced? Testing vs enforce, and are the real MX covered?",
        "what_it_is": "One GET answers one question: does this domain merely publish an MTA-STS TXT record, or does it actually enforce a policy? It reads the TXT at _mta-sts.<domain>, fetches the HTTPS policy at https://mta-sts.<domain>/.well-known/mta-sts.txt exactly once (redirects are not followed, per RFC 8461), reads the domain's real MX records, and returns record_status, id, policy_status, mode, mx, max_age, mx_covered, uncovered_mx and enforced. A TXT record alone is never reported as protected: enforced is true only when one valid v=STSv1 record exists, the policy was fetched as HTTP 200 and parsed, and mode is enforce.",
        "when_to_buy": "Buy one call before sending mail to a domain, when auditing a list of counterparties, or while rolling out MTA-STS on your own domain. A domain can have a TXT record but serve no policy, serve a policy in testing mode, or enforce a policy whose mx patterns do not cover its real MX hosts — three different states that a TXT-only lookup collapses into 'configured'. This returns the policy body's mode/mx/max_age and the MX coverage that decides whether enforcement actually protects delivery.",
        "subject": {
          "what_is_delivered": [
            "record_status: \"found\" (one v=STSv1 TXT record), \"none\" (confirmed absent), \"multiple_records\" (more than one v=STSv1 record, so none is used) or \"unknown\" (the DNS source could not be read)",
            "record: the TXT record verbatim when found, otherwise null; id: the TXT id (1-32 letters/digits), otherwise null",
            "record_valid / record_problems: whether the TXT record is syntactically usable; a record with a missing or invalid id is still reported as found, never as none",
            "policy_status: \"ok\" (HTTP 200, text/plain, parsed), \"none\" (HTTP 404/410), \"unreachable\" (3xx not followed, 5xx, timeout, TLS/network failure) or \"invalid\" (200 but not a usable policy)",
            "mode: enforce / testing / none (only when policy_status is ok; otherwise null)",
            "mx: the policy's MX patterns; max_age: the policy lifetime in seconds (0-31557600)",
            "mx_hosts: the real MX hosts read from DNS; mx_covered: true only when there is at least one MX and every MX matches the policy; false when one or more do not; null when there is no MX or no usable policy",
            "uncovered_mx: the real MX hosts that no mx pattern matches (empty when all are covered or coverage is null)",
            "enforced: true only when a valid TXT record, a parsed policy, and mode=enforce are all present",
            "source (DoH endpoint and policy URL, with HTTP status), wildcard_semantics, id_policy_binding and checked_at"
          ],
          "not_included": [
            "no claim that 'a TXT record exists' means protected: the response separates absent TXT, unreadable policy and testing mode",
            "no TLS handshake with the MX hosts, no certificate validation of the MX and no STARTTLS probe; only the policy's mx patterns are matched against the MX names",
            "no BIMI, TLSA, DANE or TLS-RPT answer; /mailauth, /dkim, /spf-depth and /dmarc-policy answer other email records",
            "no subdomain or organizational-domain inheritance: only the queried domain's own _mta-sts TXT and mta-sts host are read",
            "no deliverability, reputation or spam score and no claim that a message was accepted or rejected",
            "no cache of the policy and no policy_age: max_age is the publisher's cache lifetime, not the age of the policy"
          ],
          "source": "Cloudflare DNS-over-HTTPS JSON endpoint (https://cloudflare-dns.com/dns-query) for the _mta-sts TXT and the domain's MX, plus one HTTPS GET of https://mta-sts.<domain>/.well-known/mta-sts.txt. The endpoint and URL are named in every response under source.",
          "live_call_semantics": "After input validation, exactly one TXT query, one MX query and one HTTPS policy fetch are sent. Each DNS attempt is cut off at 2.5 seconds and a network error is retried once after a 250 ms jitter; the HTTPS fetch is cut off at 5 seconds and redirects are not followed. If both the TXT query and the policy fetch fail, the response is 502 before verify/settle and nothing is charged. If either one succeeds, the response is 200 with the readable part and the failure status for the other part, and the call is charged."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/mta-sts",
            "params": {
              "domain": "required. One bare host name. Lowercased, trailing dots removed and IDN labels converted to punycode before the query. Missing, over 253 characters, a label over 63 characters, an empty label and IP literals (IPv4 or IPv6) are refused with 400 before payment."
            },
            "body": "none",
            "note": "Invalid input is refused with 400 before any payment is verified and before the upstream is read. A request with no payment header answers 402 without touching the upstream."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "\"x402-mta-sts\"",
              "schema_version": "1",
              "domain": "string",
              "record_status": "found | none | multiple_records | unknown",
              "record": "string | null",
              "id": "string | null",
              "record_valid": "boolean | null",
              "record_problems": "string[] (only when a found record has problems)",
              "record_count": "number (only for multiple_records)",
              "policy_status": "ok | none | unreachable | invalid",
              "mode": "enforce | testing | none | null",
              "mx": "string[] (policy patterns; empty when policy_status is not ok)",
              "max_age": "number (0-31557600) | null",
              "policy_problems": "string[] (only when policy_status is invalid)",
              "policy_reason": "string | null (only when policy_status is unreachable)",
              "policy_http_status": "number | null",
              "mx_hosts": "string[] (real MX hosts)",
              "mx_covered": "true | false | null",
              "uncovered_mx": "string[]",
              "enforced": "boolean",
              "wildcard_semantics": "\"rfc8461_leftmost_single_label\"",
              "id_policy_binding": "\"none\"",
              "note": "string (what enforced does and does not mean)",
              "source": "{ dns, mx, policy }",
              "checked_at": "ISO 8601 string"
            }
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /mta-sts — one domain, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The TXT, MX and policy are read from public sources named in the response. No bulk export and no resale of a raw DNS answer: only the MTA-STS record, policy fields and MX coverage for this one domain are returned."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/mta-sts?domain=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/mta-sts?domain=example.com'   -> 200 with the TXT, policy and MX coverage",
          "response_example": "{\n  \"domain\": \"example.com\", \"record_status\": \"found\", \"record\": \"v=STSv1; id=20261019T000000Z;\", \"id\": \"20261019T000000Z\",\n  \"record_valid\": true, \"policy_status\": \"ok\", \"mode\": \"enforce\",\n  \"mx\": [\"mail.example.com\", \"*.example.net\"], \"max_age\": 604800,\n  \"mx_hosts\": [\"mail.example.com\", \"mx1.example.net\"], \"mx_covered\": true, \"uncovered_mx\": [],\n  \"enforced\": true, \"wildcard_semantics\": \"rfc8461_leftmost_single_label\", \"id_policy_binding\": \"none\",\n  \"note\": \"enforced is true only when exactly one valid v=STSv1 TXT record exists, the HTTPS policy was fetched as HTTP 200 and parsed, and its mode is enforce.\",\n  \"source\": { \"dns\": { \"endpoint\": \"https://cloudflare-dns.com/dns-query\" }, \"policy\": { \"url\": \"https://mta-sts.example.com/.well-known/mta-sts.txt\", \"http_status\": 200 } },\n  \"checked_at\": \"2026-10-19T00:00:00.000Z\" }",
          "note": "domain is a query parameter, so an agent can call it as a plain GET. A TXT record without a readable policy, a testing policy and a policy that does not cover the real MX are returned as three different states, never collapsed into 'protected'."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (domain), so a read-only probe that gets a 402 is enough for a catalogue to list it.",
          "distinct_from_siblings": "/mailauth answers whether SPF/DMARC records exist and returns the MX list; /dmarc-policy evaluates DMARC; /dns is a generic lookup. None fetches the MTA-STS HTTPS policy. This product is the only route that returns the policy's mode/mx/max_age and checks the real MX against those mx patterns.",
          "keywords": [
            "mta-sts",
            "mta sts check",
            "mta-sts policy",
            "smtp tls",
            "email authentication",
            "mx coverage"
          ],
          "claims": "Name the DNS-over-HTTPS endpoint and the policy URL as the sources in every response. Do not describe the record or policy as this service's own data and do not promise deliverability or an SLA. State that a TXT record alone is not protection, that the wildcard follows RFC 8461's single leftmost label, and that the TXT id is not present in the policy body."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "timeout_ms": 5000,
          "txt_queries_per_call": 1,
          "mx_queries_per_call": 1,
          "https_policy_fetches_per_call": 1,
          "redirects_followed": 0,
          "max_policy_bytes": 65536,
          "client_requests_per_minute": 10,
          "concurrency": 4
        }
      },
      {
        "product_id": "x402-text-stats",
        "schema_version": 1,
        "title": "Text stats in one GET: code points, words, lines, paragraphs and UTF-8 bytes, with a max-length check",
        "what_it_is": "One GET takes one text string and returns its size and shape: Unicode code points, code points without whitespace, whitespace-separated words, lines, non-empty lines, paragraphs, the longest line, UTF-8 bytes, and whether it fits an optional max_chars limit. Everything is counted inside this Worker; the text is not fetched, stored or logged. words is explicitly a whitespace-token count, so text without spaces (such as Japanese) counts as one token and characters is the reliable length measure.",
        "when_to_buy": "Buy one call when an agent must check a draft against a length limit before sending it to an API or a marketplace, report how large a text is, or decide whether it fits a field, a tweet, a description or a column. It saves carrying separate code for code points, UTF-8 bytes, line endings and blank-line paragraphs, and it makes the whitespace-word caveat explicit instead of silently returning the wrong count.",
        "subject": {
          "what_is_delivered": [
            "characters (Unicode code points) and characters_no_whitespace",
            "words (whitespace-separated tokens), lines and non_empty_lines",
            "paragraphs (separated by two or more line breaks), longest_line_chars and bytes_utf8",
            "max_chars, fits_max_chars and the counting basis, plus a timestamp"
          ],
          "not_included": [
            "no dictionary or morphological word count: words is split on whitespace only",
            "no reading time, readability score or language detection",
            "no storage, no history and no return of the input text",
            "no file upload: text is passed as one query parameter, at most 16384 characters"
          ],
          "source": "Unicode code point iteration and TextEncoder inside this Worker; no upstream call",
          "live_call_semantics": "All parsing and counting happen before payment verification; a missing text, an over-long text or an invalid max_chars is 400 and no payment is requested. Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/text-stats",
            "params": {
              "text": "required. The text to measure, at most 16384 characters. Percent-encode it.",
              "max_chars": "optional. A positive integer (1-1000000). When present, fits_max_chars reports whether the code point count is at most this value."
            },
            "body": "none",
            "note": "text and max_chars are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /text-stats is 402 so a catalogue can probe the price; with a payment header and no text it is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-text-stats\"",
              "schema_version": "number",
              "input": "{ input_chars_utf16, max_chars }",
              "characters": "number — Unicode code points",
              "characters_no_whitespace": "number — code points after removing whitespace and BOM",
              "words": "number — whitespace-separated tokens",
              "lines": "number — lines split on CRLF, CR or LF",
              "non_empty_lines": "number — lines whose trim() is not empty",
              "paragraphs": "number — blocks separated by two or more line breaks",
              "longest_line_chars": "number — code points in the longest line",
              "bytes_utf8": "number — UTF-8 byte length",
              "max_chars": "number | null — the limit you passed",
              "fits_max_chars": "boolean | null — characters <= max_chars, null when no limit was passed",
              "word_semantics": "string — the whitespace-token caveat",
              "source": "string — counted in this Worker",
              "computed_at": "string — ISO 8601 timestamp",
              "note": "string — counting basis and the no-storage note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no text is processed)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /text-stats — one text, one measurement",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The text you pass is measured for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/text-stats?text=Hello%20world&max_chars=280'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/text-stats?text=Hello%20world&max_chars=280'   -> 200 with the counts",
          "response_example": "{\n  \"characters\": 11, \"characters_no_whitespace\": 10, \"words\": 2,\n  \"lines\": 1, \"non_empty_lines\": 1, \"paragraphs\": 1, \"longest_line_chars\": 11,\n  \"bytes_utf8\": 11, \"max_chars\": 280, \"fits_max_chars\": true\n}",
          "note": "text and max_chars are query parameters, so an agent can call it as a plain GET. Percent-encode the text (including &, # and line breaks). The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (text) and one optional one; no POST, no body, no account.",
          "distinct_from_siblings": "GET /hash hashes text and GET /base64 encodes it; GET /random generates bytes. None of them reports length, words, lines, paragraphs or a max-length fit. This product measures the text you already have and never transforms it.",
          "price": "The 402 response always carries TEXT_STATS_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "text stats",
            "word count",
            "character count",
            "line count",
            "byte count",
            "length check",
            "utility"
          ],
          "claims": "Describe only the counts and the whitespace-token definition of words. Do not claim a linguistic word count, reading time, language detection or readability. State that the text is not stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-slug",
        "schema_version": 1,
        "title": "Slugify text in one GET: lowercase, accents removed, a separator and an optional max length",
        "what_it_is": "One GET turns one text string into a slug: NFKD normalisation, combining accents removed, lowercased, every run of characters other than Unicode letters or numbers replaced by one separator, and leading/trailing separators dropped. An optional max_length truncates the result in Unicode code points and removes a trailing separator. Non-Latin letters such as Japanese are kept as letters; no transliteration is done. Everything is computed inside this Worker and the input is not stored or logged.",
        "when_to_buy": "Buy one call when an agent needs a URL path, an anchor, a file name or a stable key from a title and does not want to carry its own Unicode normalisation, accent handling and separator collapsing. It makes the non-Latin rule explicit: Japanese text produces a Japanese slug rather than an empty string or a silent transliteration, and punctuation-only input is refused before payment instead of returning an empty slug.",
        "subject": {
          "what_is_delivered": [
            "slug — the normalised string, with the separator you chose",
            "slug_chars (Unicode code points), truncated and the input size",
            "the separator and max_length that were applied, plus a timestamp"
          ],
          "not_included": [
            "no transliteration: Japanese, Cyrillic, Greek and other non-Latin letters stay in their script",
            "no uniqueness check, no database and no reserved-word handling: this is one deterministic string transform",
            "no custom character set, regex or stop-word removal",
            "no storage, no history and no return of the input text"
          ],
          "source": "Unicode NFKD, combining-mark removal and Unicode property escapes inside this Worker; no upstream call",
          "live_call_semantics": "The slug is computed before payment verification; missing text, text over the input limit, an invalid separator or max_length, and text with no letters or numbers are 400 and no payment is requested. Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/slug",
            "params": {
              "text": "required. The text to slugify, at most 512 characters. Percent-encode it.",
              "separator": "optional. One of \"-\", \"_\" or \".\"; default \"-\".",
              "max_length": "optional. A positive integer (1-512). When present the slug is truncated to this many code points and a trailing separator is removed."
            },
            "body": "none",
            "note": "text, separator and max_length are validated before any payment: a bad value is 400 and no payment is requested. A bare GET /slug is 402 so a catalogue can probe the price; with a payment header and no text it is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-slug\"",
              "schema_version": "number",
              "input": "{ input_chars, separator, max_length }",
              "slug": "string — the normalised slug",
              "slug_chars": "number — Unicode code points in the slug",
              "truncated": "boolean — whether max_length cut the slug",
              "lowercased": "boolean — always true",
              "transliterated": "boolean — always false (non-Latin letters are kept)",
              "source": "string — the transform used, computed in this Worker",
              "computed_at": "string — ISO 8601 timestamp",
              "note": "string — the accent/non-Latin/separator rules and the no-storage note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no text is processed)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /slug — one text, one slug",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The text you pass is converted for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/slug?text=Cr%C3%A8me%20br%C3%BBl%C3%A9e&max_length=24'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/slug?text=Cr%C3%A8me%20br%C3%BBl%C3%A9e&max_length=24'   -> 200 with the slug",
          "response_example": "{\n  \"input\": { \"input_chars\": 12, \"separator\": \"-\", \"max_length\": 24 },\n  \"slug\": \"creme-brulee\", \"slug_chars\": 12, \"truncated\": false\n}",
          "note": "text, separator and max_length are query parameters, so an agent can call it as a plain GET. Percent-encode the text (including &, # and spaces). The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (text) and two optional ones; no POST, no body, no account.",
          "distinct_from_siblings": "GET /base64 encodes or decodes text, GET /hash hashes it, GET /text-stats measures it, and GET /url parses a URL. None of them produces a lowercase, accent-stripped, separator-joined key from arbitrary text. This product transforms text into a slug and explicitly does not transliterate non-Latin scripts.",
          "price": "The 402 response always carries SLUG_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "slug",
            "slugify",
            "url slug",
            "permalink",
            "text to slug",
            "unicode",
            "utility"
          ],
          "claims": "Describe only the transform: NFKD, accents removed, lowercase, runs of non-letter/non-number characters replaced by the separator. Do not claim transliteration, uniqueness, SEO ranking or language detection, and state that the text is not stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-charset",
        "schema_version": 1,
        "title": "What encoding is this page really in? BOM, HTTP charset, meta charset and which decoder reads the bytes without error, in one GET",
        "what_it_is": "One GET reads one absolute http(s) URL once and returns only charset facts about the bytes it saw: the BOM (if any), the charset declared in the HTTP Content-Type, the charset declared by a meta tag in the first 4 KiB, which of those declarations wins (declared + declared_source), and which of the fixed candidate decoders (UTF-8, Shift_JIS, EUC-JP) decodes every checked byte without error (detected + detection_basis). It also returns match (declared equals detected, only when both are non-null), utf8_valid, the number of U+FFFD replacement characters a non-fatal UTF-8 decode produces, checked_bytes, truncated, the first 200 characters decoded with the detected decoder, checked_at and source. It does not convert the page to Markdown, return the body, or store anything.",
        "when_to_buy": "Buy one call before feeding a page to a RAG pipeline, a scraper, a translation step or a Markdown converter, or before publishing text that must not be mojibake. The failure this catches is quiet: a page can declare Shift_JIS in a meta tag while the HTTP header says nothing, so a client that always decodes UTF-8 gets replacement characters and only notices after the text is already stored. The call answers three questions in one place: what did the page declare, what do the bytes actually support, and how many characters break if you read them as UTF-8 anyway. It is a diagnosis, not a conversion.",
        "subject": {
          "what_is_delivered": [
            "url and final_url: the validated URL you passed and the URL after up to 3 redirects",
            "http_status and content_type: the target's status and media type (the charset parameter is reported separately)",
            "http_charset, meta_charset and bom: the three declarations, normalized to one label (null when absent)",
            "declared and declared_source: the winning declaration in the fixed order BOM > HTTP charset > meta, and which one it was",
            "detected and detection_basis: the first candidate (BOM, UTF-8, Shift_JIS, EUC-JP) that decodes all checked bytes with fatal decoding, or null",
            "match: true/false only when both declared and detected are non-null; otherwise null",
            "utf8_valid and utf8_replacement_chars: whether fatal UTF-8 decoding succeeds, and how many U+FFFD a non-fatal UTF-8 decode produces",
            "checked_bytes, truncated and sample: how many bytes were inspected, whether the 512 KiB cap cut the body, and the first 200 characters from the detected decoder",
            "checked_at and source: when the target was read and how (one GET from this Worker; nothing stored)",
            "meta_note: when no meta charset is in the first 4 KiB, says so explicitly instead of claiming the tag is absent"
          ],
          "not_included": [
            "no conversion, no re-encoding and no Markdown: this product reports facts; use /markdown to convert",
            "no body return: the page text is not delivered, only a 200-character sample",
            "no proof of the document's encoding: Shift_JIS or EUC-JP bytes can occasionally decode without error by accident, so detected is a candidate-set answer, not certainty",
            "no GBK, Big5, EUC-KR, ISO-8859-1 or UTF-16 content detection: only BOM, UTF-8, Shift_JIS and EUC-JP are candidates (UTF-16 is reported only through its BOM)",
            "no XML declaration parsing: an <?xml encoding=...?> is not used as declared; meta and HTTP only",
            "no whole-document guarantee when truncated is true: every verdict covers only checked_bytes"
          ],
          "source": "One GET of the absolute http(s) URL you pass, with no payment header sent to the target. BOM and byte decoding run inside this Worker with TextDecoder; the meta scan reads the first 4096 bytes. Nothing is stored or resold.",
          "live_call_semantics": "The URL is validated before anything is fetched: missing, malformed, credential-bearing, loopback/private/internal/link-local or non-web-port URLs are 400 with no fetch and no payment request. A valid URL without a payment header is 402 and is not fetched. A request with a payment header reads the target once with a 5-second timeout per request, at most 3 redirects and a 512 KiB cap. The body is read up to the cap and truncated is set when it is larger; that is still a 200. A target that cannot be read or times out is 502 before verify/settle, so nothing is charged."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/charset",
            "params": {
              "url": "required. Absolute http(s) URL of the page whose charset should be diagnosed. Missing, malformed, credential-bearing, loopback/private/internal/link-local or non-web-port URLs are refused with 400 before anything is fetched and before payment."
            },
            "body": "none",
            "note": "A bare GET /charset is 402 so a catalogue can probe the price. With a payment header and no url it is 400. With a valid url and no payment header it is still 402 and the target is not fetched."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "url": "string — the validated input URL",
              "final_url": "string — the URL after redirects",
              "http_status": "number — the target's HTTP status",
              "content_type": "string | null — the target's media type without parameters",
              "http_charset": "string | null — charset parameter of Content-Type, normalized",
              "meta_charset": "string | null — meta charset in the first 4096 bytes, normalized",
              "bom": "string | null — utf-8, utf-16le or utf-16be",
              "declared": "string | null — BOM > HTTP charset > meta",
              "declared_source": "bom | http | meta | null",
              "detected": "utf-8 | shift_jis | euc-jp | utf-16le | utf-16be | null — first candidate that decodes all checked bytes",
              "detection_basis": "string — e.g. shift_jis_decodes_all_checked_bytes, or none_of_utf-8_shift_jis_euc-jp_decodes_all_checked_bytes",
              "match": "boolean | null — declared === detected only when both are non-null",
              "utf8_valid": "boolean — fatal UTF-8 decode of checked bytes",
              "utf8_replacement_chars": "number — U+FFFD count in a non-fatal UTF-8 decode",
              "checked_bytes": "number — bytes inspected",
              "truncated": "boolean — whether the 512 KiB cap cut the body",
              "sample": "string | null — first 200 characters from the detected decoder; control characters become spaces",
              "checked_at": "ISO 8601 string",
              "source": "string — one GET from this Worker; nothing stored",
              "meta_note": "string — whether a meta charset was found in the first 4096 bytes",
              "note": "string — the declaration order, candidate-set caveat and truncation coverage",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no target is read)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /charset — one URL, one read, one diagnosis",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The page is read once from the URL you name, decoded in memory and not stored. The response reports charset facts and a 200-character sample only; the page text is not resold."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/charset?url=https%3A%2F%2Fwww.soumu.go.jp%2F'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/charset?url=https%3A%2F%2Fwww.soumu.go.jp%2F'   -> 200 with the charset facts",
          "response_example": "{\n  \"url\": \"https://www.soumu.go.jp/\", \"final_url\": \"https://www.soumu.go.jp/\",\n  \"http_status\": 200, \"content_type\": \"text/html\",\n  \"http_charset\": null, \"meta_charset\": \"shift_jis\", \"bom\": null,\n  \"declared\": \"shift_jis\", \"declared_source\": \"meta\",\n  \"detected\": \"shift_jis\", \"detection_basis\": \"shift_jis_decodes_all_checked_bytes\",\n  \"match\": true, \"utf8_valid\": false, \"utf8_replacement_chars\": 7880,\n  \"checked_bytes\": 225719, \"truncated\": false, \"sample\": \"<?xml version=\\\"1.0\\\" encoding=\\\"Shift_JIS\\\"?> ...\",\n  \"checked_at\": \"2026-10-19T00:00:00.000Z\", \"source\": \"one GET from this Worker; the bytes are decoded in memory and nothing is stored\"\n}",
          "note": "url is a query parameter, so an agent can call it as a plain GET. The numbers in this example come from the 2026-10-19 measurement recorded in research/product-charset.md; a live response is dated by checked_at."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (url); no POST, no body, no account.",
          "distinct_from_siblings": "GET /markdown returns converted Markdown and decodes the body as UTF-8; it does not report which decoder would have been correct. GET /json-strict reports JSON parser incompatibilities, not charset. GET /url parses a URL without fetching it. A meta-only listing (such as site/meta-all) reports the declared meta value but cannot say whether the bytes match it or how many characters break under UTF-8. This product returns declared vs detected, the match flag, the U+FFFD count and the decoder that works, from the same bytes.",
          "price": "The 402 response always carries CHARSET_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "charset",
            "encoding",
            "utf-8",
            "shift_jis",
            "euc-jp",
            "mojibake",
            "bom",
            "meta charset",
            "text decoding"
          ],
          "claims": "Describe only the four declarations and the fixed candidate order. Do not claim certainty about the document's true encoding, do not claim coverage of GBK/Big5/EUC-KR/ISO-8859-1, and state that truncated means the verdict covers only checked_bytes. Do not claim the page text is delivered."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-roman",
        "schema_version": 1,
        "title": "Roman numerals in one GET: 2026 to MMXXVI and back (standard numerals only)",
        "what_it_is": "One GET converts between an integer (1-3999) and a standard Roman numeral. Pass n=2026 and get MMXXVI; pass roman=MMXXVI and get 2026. Subtractive notation is enforced, so IIII, IC and VX are refused before payment instead of being accepted as a loose sequence. Lowercase input is accepted and returned uppercase. Everything is computed inside this Worker; the input is not stored or logged.",
        "when_to_buy": "Buy one call when an agent needs a chapter number, a year, a monument label or a test fixture in Roman numerals and does not want to carry its own conversion table or validate non-standard forms. It answers in one request with both the integer and the numeral, so either direction can be taken from the response.",
        "subject": {
          "what_is_delivered": [
            "value — the integer (1-3999)",
            "roman — the standard uppercase numeral",
            "direction — int_to_roman or roman_to_int, plus the normalized input",
            "canonical and range, plus a timestamp"
          ],
          "not_included": [
            "no numerals above 3999 and no vinculum or overline notation",
            "no non-standard forms: IIII, IC, VX and similar are refused",
            "no dates, calendar conversion, ordinal words or language translation",
            "no storage, no history and no return of anything beyond the converted pair"
          ],
          "source": "Greedy subtractive conversion table inside this Worker; no upstream call",
          "live_call_semantics": "The conversion is validated before payment verification. Missing input, both n and roman, a non-integer or out-of-range n, and a non-standard numeral are 400 and no payment is requested. Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/roman",
            "params": {
              "n": "optional. An integer from 1 to 3999, e.g. n=2026.",
              "roman": "optional. A standard numeral from I to MMMCMXCIX, e.g. roman=MMXXVI. Case-insensitive."
            },
            "body": "none",
            "note": "Pass exactly one of n or roman. A bad value is 400 and no payment is requested. A bare GET /roman is 402 so a catalogue can probe the price; with a payment header and no input it is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-roman\"",
              "schema_version": "number",
              "direction": "string — \"int_to_roman\" or \"roman_to_int\"",
              "value": "number — the integer (1-3999)",
              "roman": "string — the standard uppercase numeral",
              "input": "{ n } or { roman, normalized }",
              "canonical": "boolean — always true (the numeral is standard)",
              "range": "{ min: 1, max: 3999 }",
              "source": "string — the conversion used, computed in this Worker",
              "computed_at": "string — ISO 8601 timestamp",
              "note": "string — the standard-form rule and the no-storage note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no conversion is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /roman — one number, both representations",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The number you pass is converted for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/roman?n=2026'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/roman?n=2026'   -> 200 with value 2026 and roman MMXXVI",
          "response_example": "{\n  \"direction\": \"int_to_roman\",\n  \"value\": 2026, \"roman\": \"MMXXVI\",\n  \"input\": { \"n\": \"2026\" }, \"canonical\": true\n}",
          "note": "Use n for an integer or roman for a numeral, never both. Lowercase numerals are accepted. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with exactly one of two query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /random returns random bytes or numbers, GET /pick samples a caller-supplied list, and GET /text-stats measures text. None of them converts between integers and Roman numerals or validates subtractive notation. This product returns both representations and refuses non-standard numerals before payment.",
          "price": "The 402 response always carries ROMAN_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "roman numerals",
            "numeral converter",
            "integer to roman",
            "roman to integer",
            "utility"
          ],
          "claims": "Describe only the conversion: integers 1-3999, standard subtractive notation, both representations in one response. Do not claim calendar conversion, language translation, numerals above 3999 or acceptance of non-standard forms, and state that the input is not stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-semver",
        "schema_version": 1,
        "title": "SemVer range check in one GET: satisfying versions, max and min from your own list",
        "what_it_is": "One GET parses a SemVer 2.0.0 range and evaluates a caller-supplied list of version strings. It returns the normalized range, which strings are valid and invalid, which valid versions satisfy the range, and the highest and lowest satisfying version. Version syntax and precedence follow semver.org 2.0.0. The range operators are the npm-compatible subset ^ ~ >= <= > < = ||, hyphen ranges, x-ranges, * and the empty range. It does not read a registry, npm, a package file, a URL or an account; it does not complete the list from any external source and does not decide whether a version is safe, latest or compatible.",
        "when_to_buy": "Buy one call when an agent, a CI job or an operator has a package.json range and a list of versions and needs to know which versions satisfy it without starting npm or a language runtime. It is useful when the rules are not string comparison: prerelease tuple rules, 0.x caret behaviour, tilde on a partial version, multiple comparators, OR ranges and hyphen ranges. The answer is the range verdict on your list, not a registry lookup.",
        "subject": {
          "what_is_delivered": [
            "range and range_normalized, plus range_valid",
            "versions_checked, valid[] and invalid[]{input, reason}",
            "satisfying[] in ascending semver precedence, with satisfying_count",
            "max_satisfying and min_satisfying, or null when nothing satisfies",
            "include_prerelease, spec, timestamps and the delivery record"
          ],
          "not_included": [
            "no registry, npm, package.json, lockfile, URL or account is read",
            "no completion of the caller's version list and no claim that it is complete",
            "no judgement of safety, security, stability, latest-ness or API compatibility",
            "no npm extensions: !=, loose parsing, a leading v, ~>, or a space between an operator and its version",
            "no storage of the range or the version list"
          ],
          "source": "strict semver 2.0.0 parser and comparator inside this Worker; no upstream call, no npm package",
          "live_call_semantics": "Every input is checked before payment verification. Missing range or versions, a range over 256 characters, more than 200 versions, any version over 128 characters and an unparsable range are 400 and no payment is requested. Invalid version strings are not an input error: they are returned in invalid[] after payment. Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/semver",
            "params": {
              "range": "required. A SemVer range, at most 256 characters. The empty value is * (any non-prerelease version). Percent-encode ^ as %5E and + as %2B when needed.",
              "versions": "required. 200 comma-separated entries at most, each at most 128 characters. Every entry is returned in valid[] or invalid[].",
              "include_prerelease": "optional. true or false, default false. true disables only the prerelease tuple exclusion."
            },
            "body": "none",
            "note": "A bare GET /semver is 402 so a catalogue can probe the price; with a payment header and no range or versions it is 400. An invalid version string is part of the product answer (200 invalid[]), while an unparsable range is 400 invalid_range before payment."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-semver\"",
              "schema_version": "number",
              "range": "string — the range as supplied",
              "range_normalized": "string — expanded comparator form (build metadata removed)",
              "range_valid": "boolean — true on a 200",
              "versions_checked": "number — every comma-separated entry, including invalid and empty ones",
              "valid": "string[] — entries that are semver 2.0.0 versions, in input order",
              "invalid": "{ input, reason }[] — entries that are not semver 2.0.0 versions",
              "satisfying": "string[] — satisfying valid entries, ascending semver precedence",
              "max_satisfying": "string|null — highest satisfying entry; null when none",
              "min_satisfying": "string|null — lowest satisfying entry; null when none",
              "satisfying_count": "number — satisfying.length",
              "include_prerelease": "boolean — the effective flag",
              "spec": "string — \"semver 2.0.0\"",
              "range_spec": "string — the supported range subset",
              "prerelease_rule": "string — the tuple rule and what include_prerelease changes",
              "satisfying_order": "string — the ordering used for satisfying[]",
              "computed_at": "string — ISO 8601 timestamp",
              "note": "string — the no-registry, no-claim and invalid[] note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (the range is not evaluated)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /semver — one range, one caller-supplied version list",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The range and version list are evaluated for this one response and are not stored or logged. The list is yours; this service does not act as a registry or complete it."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/semver?range=%5E1.2.3&versions=1.2.3,1.2.4,2.0.0-beta.1'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/semver?range=%5E1.2.3&versions=1.2.3,1.2.4,2.0.0-beta.1'   -> 200 with satisfying [1.2.3,1.2.4] and max_satisfying 1.2.4",
          "response_example": "{\n  \"range_normalized\": \">=1.2.3 <2.0.0-0\",\n  \"satisfying\": [\"1.2.3\", \"1.2.4\"],\n  \"max_satisfying\": \"1.2.4\", \"satisfying_count\": 2\n}",
          "note": "range=^1.2.3 is sent as range=%5E1.2.3. The example is illustrative; the 402 body carries the live price."
        },
        "listing_notes": {
          "resource_type": "Plain GET with two required query parameters and one optional flag; no POST, no body, no account.",
          "distinct_from_siblings": "GET /text-stats measures text, GET /convert converts units and GET /json-strict scans JSON. None of them parses a version range or compares versions. This product evaluates a caller-supplied version list and returns the satisfying subset with the highest and lowest version.",
          "price": "The 402 response always carries SEMVER_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "semver",
            "version range",
            "satisfies",
            "max satisfying",
            "prerelease",
            "caret",
            "tilde",
            "utility"
          ],
          "claims": "Describe only the range verdict on the supplied list: semver 2.0.0 syntax and precedence, the supported range subset, the prerelease rule and the max/min. Do not claim that a satisfying version is safe, latest, stable or compatible, that the list is complete, or that a registry or npm was read."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-timezone",
        "schema_version": 1,
        "title": "One instant in any IANA time zone: local time, UTC offset, DST flag in one GET",
        "what_it_is": "One GET returns what the clock reads in a named IANA time zone at one instant, with the UTC offset, the offset label, the zone abbreviation and whether daylight saving time is in effect. The instant defaults to now and at= accepts any ISO 8601 timestamp that carries Z or +hh:mm. Everything is computed from the time zone database bundled with the Workers runtime; nothing is fetched and nothing is stored.",
        "when_to_buy": "Buy one call when an agent or a script has to put a UTC timestamp into a local zone, report an offset, or decide whether a zone is observing DST right now and does not want to ship a time zone library or a transition table.",
        "subject": {
          "what_is_delivered": [
            "zone — the name that was checked against the runtime's IANA database",
            "at and epoch_ms — the instant that was converted",
            "local — ISO string with offset, date, time, weekday and numeric fields",
            "offset — minutes, label (+09:00) and abbreviation (JST or GMT+9)",
            "dst and dst_observed_in_year, plus the standard offset for that year",
            "zone_source, checked_at, note and the delivery receipt"
          ],
          "not_included": [
            "no time zone list, no search by city and no geocoding",
            "no future transition schedule and no guarantee about rule changes",
            "no legal-time or calendar-system claim and no timestamp arithmetic",
            "no storage and no logging of the zone or the instant"
          ],
          "source": "IANA time zone data bundled with the Workers runtime (Intl.DateTimeFormat); no upstream call",
          "live_call_semantics": "The zone and at are validated before payment verification. A missing or over-long zone, an unknown zone, a timestamp without an offset and an unparsable timestamp are 400 and no payment is requested. A bare GET /timezone is 402 so a catalogue can probe the price."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/timezone",
            "params": {
              "zone": "required. An IANA time zone name, e.g. Asia/Tokyo, Europe/London or America/New_York.",
              "at": "optional. ISO 8601 with Z or +hh:mm, e.g. 2026-10-19T20:00:00Z. Defaults to now."
            },
            "body": "none",
            "note": "A bare GET /timezone is 402. With a payment header, missing or invalid input is 400 and no payment is requested. Timestamps without an explicit offset are refused rather than guessed."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-timezone\"",
              "schema_version": "number",
              "zone": "string — the validated IANA name",
              "at": "string — the instant in UTC ISO 8601",
              "epoch_ms": "number",
              "local": "{ iso, date, time, year, month, day, hour, minute, second, weekday }",
              "utc": "{ iso, date, time }",
              "offset": "{ minutes, label, abbreviation }",
              "dst": "boolean — offset is larger than the standard offset for that year",
              "dst_observed_in_year": "boolean — January and July offsets differ",
              "standard_offset_minutes": "number — the smaller of the January and July offsets",
              "zone_source": "string — runtime IANA database, no external call",
              "checked_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no conversion is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /timezone — one instant, one zone",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The zone and instant are used for this one response and are not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/timezone?zone=Asia/Tokyo&at=2026-10-19T20:00:00Z'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/timezone?zone=Asia/Tokyo&at=2026-10-19T20:00:00Z'   -> 200 with local 2026-10-20T05:00:00+09:00",
          "response_example": "{\n  \"zone\": \"Asia/Tokyo\", \"at\": \"2026-10-19T20:00:00.000Z\",\n  \"local\": { \"iso\": \"2026-10-20T05:00:00+09:00\", \"weekday\": \"Tuesday\" },\n  \"offset\": { \"minutes\": 540, \"label\": \"+09:00\", \"abbreviation\": \"GMT+9\" }, \"dst\": false\n}",
          "note": "at must carry Z or +hh:mm. Omit at to convert the current instant. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required and one optional query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "GET /ts converts timestamps but returns UTC only and explicitly does not handle time zones. GET /cron computes UTC run times. GET /holidays returns holiday dates. None of them reports a zone's local time, offset, abbreviation or DST state for an instant.",
          "price": "The 402 response always carries TIMEZONE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "timezone",
            "time zone",
            "utc offset",
            "dst",
            "iana",
            "local time",
            "utility"
          ],
          "claims": "Describe only the conversion of one instant into one named IANA zone from the runtime's database. Do not claim legal time, future transitions, city lookup or timestamp arithmetic, and state that nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-wallclock",
        "schema_version": 1,
        "title": "Offset-free wall clock to UTC: unique, ambiguous or nonexistent, with the fold and the gap",
        "what_it_is": "One GET takes an IANA zone and a local wall-clock reading without Z or an offset, and returns whether that reading maps to one instant, two instants (a repeated clock) or none (a skipped clock). An ambiguous reading returns both candidates with their UTC, offset, DST flag and abbreviation; a skipped reading returns the missing interval and the transition. resolved_utc is filled only for a unique reading, so a gap or a fold is never silently moved to another instant. The calculation uses the IANA time-zone data bundled with the Workers runtime; nothing is fetched and nothing is stored.",
        "when_to_buy": "Buy one call when a scheduler, a calendar import, a log without offsets or an agent has to turn a local wall-clock reading into UTC and must know whether that reading is unambiguous. It answers the two cases that a one-instant converter hides: the hour that happens twice and the hour that never happens.",
        "subject": {
          "what_is_delivered": [
            "zone and local (the wall clock as received, normalized to seconds)",
            "status — unique, ambiguous or nonexistent",
            "exists and ambiguous — booleans derived from the three states",
            "candidates[] — utc, offset_minutes, offset_label, dst and abbreviation for every matching instant (0, 1 or 2)",
            "resolved_utc — the UTC instant only when exactly one candidate matches; null for a gap or a fold",
            "gap — before_offset, after_offset, transition_utc, missing_from and missing_to for a skipped interval",
            "fold — before_offset, after_offset and transition_utc for a repeated interval",
            "zone_source, checked_at, note and the delivery receipt"
          ],
          "not_included": [
            "no input with Z or +hh:mm: that names an instant and belongs to /timezone",
            "no dates before 1970, no leap seconds and no T24:00",
            "no future transition schedule, no guarantee about rule changes and no tzdata version claim",
            "no authority claim about civil time or the calendar system",
            "no storage and no logging of the zone or the wall clock"
          ],
          "source": "IANA time zone data bundled with the Workers runtime (Intl.DateTimeFormat); no upstream call",
          "live_call_semantics": "The zone and local are validated before payment verification. A missing or over-long zone, an unknown or fixed-offset zone, a missing or over-long local, a local with Z or an offset, an impossible date and a pre-1970 date are 400 and no payment is requested. A bare GET /wallclock is 402 so a catalogue can probe the price. A gap or a fold is the product's answer and is returned as 200 after payment."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/wallclock",
            "params": {
              "zone": "required. An IANA time zone name, e.g. America/New_York, Europe/London or Australia/Lord_Howe. At most 64 characters.",
              "local": "required. An offset-free wall clock, e.g. 2026-11-01T01:30 or 2026-11-01T01:30:00. Seconds are optional; Z and +hh:mm are refused."
            },
            "body": "none",
            "note": "A bare GET /wallclock is 402. With a payment header, missing or invalid input is 400 and no payment is requested. An ambiguous or nonexistent wall clock is not an error: it is returned as 200 with candidates or gap, and resolved_utc is null."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-wallclock\"",
              "schema_version": "number",
              "zone": "string — the validated IANA name",
              "local": "string — the wall clock normalized to YYYY-MM-DDTHH:mm:ss",
              "status": "string — \"unique\" | \"ambiguous\" | \"nonexistent\"",
              "exists": "boolean — false only for nonexistent",
              "ambiguous": "boolean — true only when two candidates match",
              "candidates": "[{ utc, offset_minutes, offset_label, dst, abbreviation }] — 0, 1 or 2 entries",
              "resolved_utc": "string|null — the UTC instant only for a unique wall clock; null for ambiguous or nonexistent",
              "gap": "{ before_offset, after_offset, transition_utc, missing_from, missing_to } | null",
              "fold": "{ before_offset, after_offset, transition_utc } | null",
              "zone_source": "string — runtime IANA database, no external call",
              "checked_at": "string — ISO 8601 timestamp",
              "note": "string — scope and limits",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no resolution is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /wallclock — one wall clock, one zone",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The zone and wall clock are used for this one response and are not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/wallclock?zone=America/New_York&local=2026-11-01T01:30'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/wallclock?zone=America/New_York&local=2026-11-01T01:30'   -> 200 with status ambiguous and two candidates",
          "response_example": "{\n  \"zone\": \"America/New_York\", \"local\": \"2026-11-01T01:30:00\",\n  \"status\": \"ambiguous\", \"exists\": true, \"ambiguous\": true,\n  \"candidates\": [\n    { \"utc\": \"2026-11-01T05:30:00.000Z\", \"offset_minutes\": -240, \"offset_label\": \"-04:00\", \"dst\": true, \"abbreviation\": \"EDT\" },\n    { \"utc\": \"2026-11-01T06:30:00.000Z\", \"offset_minutes\": -300, \"offset_label\": \"-05:00\", \"dst\": false, \"abbreviation\": \"EST\" }\n  ],\n  \"resolved_utc\": null,\n  \"gap\": null, \"fold\": { \"before_offset\": -240, \"after_offset\": -300, \"transition_utc\": \"2026-11-01T06:00:00.000Z\" }\n}",
          "note": "local must not carry Z or an offset. Use 2026-03-08T02:30 in America/New_York for a nonexistent wall clock and read gap. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with two required query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /timezone converts an instant into a zone and refuses an offset-free timestamp (at_needs_offset). GET /ts converts timestamps but returns UTC only. GET /cron computes UTC run times. This route goes the other way — from an offset-free wall clock to UTC — and returns the three states explicitly: a gap is not moved forward and a fold is not resolved to one side.",
          "price": "The 402 response always carries WALLCLOCK_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "timezone",
            "dst",
            "wall clock",
            "ambiguous",
            "nonexistent",
            "utc",
            "utility"
          ],
          "claims": "Describe only the three states, the candidates and the gap/fold from the runtime's database. Make no quality, safety or legal claim, do not promise future transitions or a tzdata version, and state that a gap or a fold is returned rather than resolved."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-npm",
        "schema_version": 1,
        "title": "npm package facts in one GET: latest or a tag/version, license, engines, deprecated flag and dependency counts",
        "what_it_is": "One GET reads the public npm registry for one package name and an optional version or dist-tag (default latest) and returns only registry facts: the resolved version, description, license, deprecated message, homepage, repository URL, engines, dependency, peer and optional dependency counts, unpacked size, file count and integrity. No tarball is downloaded, no package code is executed and nothing is stored.",
        "when_to_buy": "Buy one call when a coding agent needs the current version, license or deprecation state of a package and does not want to carry a registry client, a cache or a private token. The registry is the source; this route does not guess versions, rank upgrades or claim that an installation will succeed.",
        "subject": {
          "what_is_delivered": [
            "name and version_requested (the exact input; version defaults to latest)",
            "found, and version (the version the registry resolved, null when not found)",
            "description, license, deprecated message and is_deprecated",
            "homepage and repository_url",
            "engines, dependencies_count, peer_dependencies_count and optional_dependencies_count",
            "unpacked_size, file_count and integrity from the registry's dist block",
            "source, checked_at, note and the delivery receipt"
          ],
          "not_included": [
            "no tarball, no source code, no README and no file contents",
            "no install, no install script and no code execution",
            "no vulnerability, download-count or popularity claim",
            "no dependency resolution, no upgrade advice and no proof that a version is compatible",
            "no registry token and no private or authenticated package: the public registry only",
            "no storage and no logging of the requested package"
          ],
          "source": "One GET to https://registry.npmjs.org for one name and one tag/version; no tarball and no code execution",
          "live_call_semantics": "A request without a payment header is 402 and does not call the registry. With a payment header, an invalid name or version is 400 before the registry is read and before payment. A registry 404 is a 200 found:false answer after payment. Timeout, 429, 5xx and unreadable bodies are 502/503 before verify/settle, so nothing is charged."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/npm",
            "params": {
              "name": "required. A lowercase npm package name, at most 214 characters. Scoped names such as @scope/pkg are accepted. Uppercase letters, leading . or _, spaces and a name that is not a valid registry name are 400 before payment.",
              "version": "optional. A version such as 18.2.0 or a dist-tag such as latest or beta. Default latest. At most 128 characters; a value with characters other than letters, digits, . _ + - is 400 before payment."
            },
            "body": "none",
            "note": "A bare GET /npm is 402 so a catalogue can probe the price. With a payment header and a missing or invalid name or version it is 400 and the registry is not read. A registry 404 is a 200 answer with found:false."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string - \"x402-npm\"",
              "schema_version": "number",
              "name": "string - the validated package name",
              "version_requested": "string - the version or dist-tag, default latest",
              "found": "boolean - false only when the registry answered 404",
              "version": "string|null - the version the registry resolved",
              "description": "string|null - registry description, truncated to 1000 characters",
              "license": "string|null - the registry license field",
              "deprecated": "string|null - the deprecation message, when the version is deprecated",
              "is_deprecated": "boolean - whether the registry marks this version deprecated",
              "homepage": "string|null",
              "repository_url": "string|null",
              "engines": "object|null - the registry engines field",
              "dependencies_count": "number",
              "peer_dependencies_count": "number",
              "optional_dependencies_count": "number",
              "unpacked_size": "number|null - dist.unpackedSize in bytes",
              "file_count": "number|null - dist.fileCount",
              "integrity": "string|null - the registry integrity string (not a download)",
              "source": "string - one GET to registry.npmjs.org; nothing stored",
              "checked_at": "string - ISO 8601 timestamp",
              "note": "string - scope, no-tarball and no-install note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (the registry is not read)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_decimals": 6,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /npm - one package name, one tag/version",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The package name and version are used for this one registry read and are not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/npm?name=react'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/npm?name=react'   -> 200 with the current version and facts",
          "response_example": "{\n  \"name\": \"react\", \"version_requested\": \"latest\", \"found\": true,\n  \"version\": \"0.0.0-example\", \"license\": \"MIT\", \"is_deprecated\": false,\n  \"dependencies_count\": 0, \"peer_dependencies_count\": 0\n}",
          "note": "The version in the example is illustrative; the 200 carries what the registry answered at call time. Scoped names must be percent-encoded (@scope/pkg -> %40scope%2Fpkg)."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter and one optional one; no POST, no body, no account.",
          "distinct_from_siblings": "GET /semver evaluates a caller-supplied version list and never reads a registry. GET /barcode validates an ISBN check digit. No other route returns the current npm version, license, engines or deprecation state of a package.",
          "price": "The 402 response always carries NPM_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "npm",
            "package",
            "registry",
            "latest version",
            "license",
            "deprecated",
            "utility"
          ],
          "claims": "Describe only the registry fields returned for the requested name and version. Do not claim that a package is safe, maintained, vulnerable or compatible, do not rank versions, and state that no tarball is downloaded and nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-pypi",
        "schema_version": 1,
        "title": "PyPI project facts in one GET: latest or a version, summary, license, requires_python, requirements and yanked state",
        "what_it_is": "One GET reads the public PyPI JSON API for one project and an optional version (default latest) and returns only registry facts: the resolved version, summary, license, requires_python, author, homepage, project URLs, classifier count, declared requirements and the yanked state. No package file is downloaded, no install is run, no package code is executed and nothing is stored.",
        "when_to_buy": "Buy one call when a coding agent needs the current version, license, Python requirement or yanked state of a PyPI project without carrying a registry client, a cache or a token. The registry is the source; this route does not guess versions, rank upgrades or claim that an installation will succeed.",
        "subject": {
          "what_is_delivered": [
            "name and version_requested (the exact input; version defaults to latest)",
            "found, and version (the version PyPI resolved, null when not found)",
            "summary, license, requires_python and author",
            "homepage and up to 10 project_urls",
            "classifiers_count, requires_dist_count and the first 50 declared requirement strings",
            "yanked and yanked_reason",
            "source, checked_at, note and the delivery receipt"
          ],
          "not_included": [
            "no wheel, sdist, file contents or README body",
            "no install, no build and no code execution",
            "no vulnerability, download-count or popularity claim",
            "no dependency resolution, no upgrade advice and no proof that a version is compatible",
            "no token and no private index: the public PyPI only",
            "no storage and no logging of the requested project"
          ],
          "source": "One GET to https://pypi.org/pypi for one project and one version; no package file and no code execution",
          "live_call_semantics": "A request without a payment header is 402 and does not call PyPI. With a payment header, an invalid name or version is 400 before the registry is read and before payment. A PyPI 404 is a 200 found:false answer after payment. Timeout, 429, 5xx and unreadable bodies are 502/503 before verify/settle, so nothing is charged."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/pypi",
            "params": {
              "name": "required. A PyPI project name, at most 214 characters. Letters, digits, . _ and - are accepted; an invalid name is 400 before payment.",
              "version": "optional. A PEP 440 version such as 2.31.0. Default latest. At most 128 characters; a value with characters other than letters, digits, . _ + ! - is 400 before payment."
            },
            "body": "none",
            "note": "A bare GET /pypi is 402 so a catalogue can probe the price. With a payment header and a missing or invalid name or version it is 400 and PyPI is not read. A PyPI 404 is a 200 answer with found:false."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string - \"x402-pypi\"",
              "schema_version": "number",
              "name": "string - the validated project name",
              "version_requested": "string - the version, default latest",
              "found": "boolean - false only when PyPI answered 404",
              "version": "string|null - the version PyPI resolved",
              "summary": "string|null - registry summary, truncated to 1000 characters",
              "license": "string|null - the registry license field, truncated to 300 characters",
              "requires_python": "string|null - the requires_python specifier",
              "author": "string|null",
              "homepage": "string|null",
              "project_urls": "object|null - up to 10 string values",
              "classifiers_count": "number",
              "requires_dist_count": "number - the full registry count",
              "requires_dist": "array|null - the first 50 requirement strings",
              "yanked": "boolean",
              "yanked_reason": "string|null",
              "source": "string - one GET to pypi.org; nothing stored",
              "checked_at": "string - ISO 8601 timestamp",
              "note": "string - scope, no-package-file and no-install note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (PyPI is not read)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "amount_usd": 0.001,
          "asset_decimals": 6,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /pypi - one project, one version",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The project name and version are used for this one registry read and are not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/pypi?name=requests'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/pypi?name=requests'   -> 200 with the current version and facts",
          "response_example": "{\n  \"name\": \"requests\", \"version_requested\": \"latest\", \"found\": true,\n  \"version\": \"0.0.0-example\", \"license\": \"Apache-2.0\", \"requires_python\": \">=3.8\",\n  \"requires_dist_count\": 0, \"yanked\": false\n}",
          "note": "The version in the example is illustrative; the 200 carries what PyPI answered at call time."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter and one optional one; no POST, no body, no account.",
          "distinct_from_siblings": "GET /npm returns npm registry facts. No other route returns the current PyPI version, requires_python, requirements or yanked state of a project.",
          "price": "The 402 response always carries PYPI_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "pypi",
            "python",
            "package",
            "registry",
            "version",
            "license",
            "yanked",
            "utility"
          ],
          "claims": "Describe only the registry fields returned for the requested project and version. Do not claim that a project is safe, maintained, vulnerable or compatible, do not rank versions, and state that no package file is downloaded and nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-catalog-fit",
        "schema_version": 1,
        "title": "Do this seller's catalogs and its 402s agree on price?",
        "what_it_is": "One GET reads up to five machine-readable catalog surfaces of one seller (by default /openapi.json, /product.json and /status.json), collects every paid route those catalogs declare, reads each declared route once with a bare GET and no payment header, and compares the declared amount with the amount the 402 actually asked for. It returns surfaces[] with HTTP status, readable/unreadable, declared count and duplicate paths, routes[] with path, declared_in, missing_from, declared_amounts, actual amount, match and status, and a summary that separates matched, mismatched, declared_only, undeclared_paid and unreadable. It judges literal amount equality only: not payment, delivery, output correctness, semantic compatibility or legal effect.",
        "when_to_buy": "Buy one call before listing, integrating with or re-pricing a paid endpoint whose price is published in more than one place. A seller that updates product.json but not openapi.json shows buyers an old price; a status page that lists a route the 402 no longer charges is a broken promise. One call names the missing surface, the duplicate route, the route declared but not charging, and the exact atomic amounts that disagree, without paying the target.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/catalog-fit",
            "params": {
              "base": "required. https origin of the seller, e.g. https://api.example.com. http, credentials, loopback, private, link-local, internal and non-web ports are 400 before anything is fetched.",
              "paths": "optional. 1 to 5 comma-separated absolute paths on the same origin; default /openapi.json,/product.json,/status.json."
            },
            "note": "A request without a payment header is 402 and does not read the seller. With a payment header, invalid input is 400 before any fetch. Each surface is read once (512 KiB cap, 5 s timeout, at most 3 redirects); each declared route is read once with a bare GET and no payment header, at most 20 routes. If no surface can be read the answer is 502 before verify/settle, so nothing is charged. If the readable catalogs declare no paid route the answer is 200 and nothing is charged."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "base": "{url, host} - the seller that was read",
              "surfaces": "[{surface, path, kind, http_status, readable, recognized, declared_count, duplicate_paths[], reason, latency_ms}]",
              "routes": "[{path, declared_in[], missing_from[], declared_amount_atomic, declaration_conflict, declared_amounts[{surface, amount_atomic, basis, raw, source}], http_status, actual_amount{amount_atomic, source, asset, network, scheme}, match, status, reason}]",
              "summary": "{surfaces_readable, surfaces_unreadable, declared_paths, probed_paths, matched, mismatched, declared_only, undeclared_paid, unreadable, duplicate_paths[], declarations_truncated}",
              "checked_at": "ISO-8601 UTC",
              "paid": "boolean - true only on a settled delivery",
              "delivery": "{delivered_at, delivered, charged, payer, payment}",
              "caveats": "string[] - what this call does not judge"
            }
          }
        },
        "price": {
          "amount_atomic": "10000",
          "asset_decimals": 6,
          "amount_usd": 0.01,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /catalog-fit response",
          "note": "0.01 USDC: up to five catalog reads and at most 20 bare 402 probes. Nothing is charged when the target cannot be read or its readable catalogs declare no paid route. The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker reads the seller's catalogs and declared routes first, all without a payment header to the target. Only then does it POST the buyer's payment payload and requirements to the facilitator /verify and /settle.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The report is a literal comparison of declared amounts and the amounts the bare 402s asked for. It is not a judgement that the seller is correct, safe or able to deliver, and nothing is paid to the target."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/catalog-fit?base=https%3A%2F%2Fapi.example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/catalog-fit?base=https%3A%2F%2Fapi.example.com'   -> 200 with surfaces, routes and summary",
          "note": "Default surfaces are /openapi.json, /product.json and /status.json. Pass paths= to read other paths on the same https origin."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter (base) and one optional one (paths); no POST, no body, no account.",
          "distinct_from_siblings": "GET /check reads one URL's liveness and 402 price. GET /contract normalises one 402's output contract. GET /example-fit compares an example with its schema inside one 402. This route is the only one that reads a seller's several catalog surfaces and checks each declared paid route against the 402 it actually serves.",
          "failure_answers": "400 missing_url / invalid_url / blocked_target / https_required / invalid_paths before anything is fetched. 502 catalogs_unreadable when no surface can be read, before verify/settle. 200 with zero charged when the readable catalogs declare no paid route.",
          "price": "The 402 response always carries CATALOG_FIT_PRICE_ATOMIC (0.01 USDC). product.json and this catalogue share the same CONFIG.",
          "claims": "Do not claim the seller is broken, dishonest or unsafe. Report only the literal declared vs actual amounts, and name unreadable surfaces as unreadable rather than as missing declarations."
        }
      },
      {
        "product_id": "x402-unix-mode",
        "schema_version": 1,
        "title": "chmod in one GET: octal 755 and symbolic rwxr-xr-x, in both directions",
        "what_it_is": "One GET converts between the two chmod notations: an octal mode (755, 0755, 4755) or a symbolic mode (rwxr-xr-x, rwsr-xr-x) and returns both, the full 4-digit octal, the 9-character symbolic form, the owner/group/other read-write-execute flags and the setuid/setgid/sticky flags. Everything is computed inside this Worker; nothing is fetched and nothing is stored.",
        "when_to_buy": "Buy one call when an agent or an operator knows one chmod notation and needs the other, or wants the named permission flags instead of decoding octal by hand. It saves a permission table and makes the special bits explicit; it does not touch any file.",
        "subject": {
          "what_is_delivered": [
            "mode_input, octal (4 digits) and octal_short (3 digits)",
            "symbolic (9 characters) and the equivalent chmod command",
            "permissions: owner, group and other with read/write/execute booleans",
            "special: setuid, setgid, sticky and their names",
            "bits, mode_source, checked_at, note and the delivery receipt"
          ],
          "not_included": [
            "no file, directory or inode is read and no permission is changed",
            "no ACL, SELinux context, umask or filesystem-specific flag",
            "no owner or group names and no recursive chmod",
            "no storage and no logging of the mode"
          ],
          "source": "octal and symbolic chmod conversion inside this Worker; no upstream call",
          "live_call_semantics": "The mode is validated before payment verification. A missing, over-long or invalid mode is 400 and no payment is requested. A bare GET /unix-mode is 402 so a catalogue can probe the price."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/unix-mode",
            "params": {
              "mode": "required. 3 or 4 octal digits (755, 0755, 4755) or 9 symbolic characters (rwxr-xr-x, rwsr-xr-x, rwxrwxrwt)."
            },
            "body": "none",
            "note": "A bare GET /unix-mode is 402. With a payment header, a missing or invalid mode is 400 and no payment is requested. Exactly one mode value is accepted."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-unix-mode\"",
              "schema_version": "number",
              "mode_input": "string — the trimmed input",
              "octal": "string — 4-digit octal, e.g. 0755",
              "octal_short": "string — 3-digit octal, e.g. 755",
              "symbolic": "string — 9-character symbolic form",
              "chmod": "string — chmod 0755",
              "bits": "number — the decimal bit mask",
              "special": "{ setuid, setgid, sticky, names[] }",
              "permissions": "{ owner, group, other } each { read, write, execute }",
              "mode_source": "string — computed in this Worker, no external call",
              "checked_at": "string — ISO 8601 timestamp",
              "note": "string — the accepted forms and the no-file note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no conversion is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /unix-mode — one mode, both notations",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The mode is converted for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/unix-mode?mode=755'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/unix-mode?mode=755'   -> 200 with octal 0755 and symbolic rwxr-xr-x",
          "response_example": "{\n  \"mode_input\": \"755\", \"octal\": \"0755\", \"octal_short\": \"755\",\n  \"symbolic\": \"rwxr-xr-x\", \"chmod\": \"chmod 0755\",\n  \"permissions\": { \"owner\": { \"read\": true, \"write\": true, \"execute\": true } }\n}",
          "note": "Pass either notation. 4-digit octal or s/S/t/T carries setuid, setgid or sticky. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "No other route converts chmod notations or reports permission bits. GET /barcode checks a check digit, GET /hash hashes text and GET /base64 encodes bytes; none of them reports file permission flags.",
          "price": "The 402 response always carries UNIX_MODE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "chmod",
            "unix mode",
            "file permissions",
            "octal",
            "symbolic",
            "setuid",
            "sticky",
            "utility"
          ],
          "claims": "Describe only the conversion between the two chmod notations and the named flags. Do not claim that any file was read or changed, and state that nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-jsonl",
        "schema_version": 1,
        "title": "JSONL line check in one POST: broken lines, blank lines, BOM/CRLF and key drift, without returning values",
        "what_it_is": "One POST takes a JSONL text and checks it line by line. It returns which non-empty lines are not valid JSON, with the line number, the column and a reason but not the line body; how many lines are total, non-empty and blank; whether the text starts with a UTF-8 BOM, how many CRLF endings it has and whether the last line is terminated; the top-level key set of every object line, the keys common to all object lines, the distinct key-set variants, and optional key drift against the first object line; and, for one named top-level key, the line numbers whose value repeats. It does not return line bodies or values, does not store them, and does not fetch anything. This is JSON syntax and top-level key aggregation, not JSON Schema validation and not semantic validation. JSONL has no single RFC, so blank lines, a BOM, CRLF and a missing final newline are reported rather than rejected. Duplicate object keys, invalid UTF-8 byte sequences and numbers beyond IEEE-754 precision are outside or unverified by this check.",
        "when_to_buy": "Buy one call before ingesting an evaluation set, a queue file or a log export when one bad line would break a bulk JSON.parse and the line number is what you need. It is also useful before a schema is imposed: name one key and see which lines have it more than once, or set require_same_keys=true and see which object lines have a different top-level key set from the first. Values never come back, so the check can be run on data you do not want to paste into a chat or a log.",
        "subject": {
          "what_is_delivered": [
            "lines_total, nonempty, blank, parsed and failed",
            "errors[]{line, column, message} without line bodies or values, plus errors_truncated",
            "bom, crlf and last_line_terminated as observations, not rejections",
            "keys{common, variants, key_drift}, with object_lines and non_object_lines",
            "unique_key{name, duplicates[]} with line numbers only",
            "limits, bytes, sha256, checked_at, paid and the delivery record"
          ],
          "not_included": [
            "no line body, no value and no URL, IP or caller identifier is returned or stored",
            "no JSON Schema validation, no type checking against a schema and no semantic validation",
            "no claim that the text is valid JSONL under one standard: JSONL has no single RFC",
            "no detection of duplicate object keys (JSON.parse collapses them); /json-strict covers that",
            "no detection of invalid UTF-8 bytes inside the JSONL text: JSON strings are already Unicode",
            "no arbitrary-precision number check: numbers follow JSON.parse (IEEE-754)",
            "no nested-key, array-element or deep-value comparison; key checks use top-level object keys"
          ],
          "source": "JSON.parse per line and key-set aggregation inside this Worker; no upstream call and no LLM",
          "live_call_semantics": "A bare POST /jsonl is 402 so a catalogue can probe the price. With a payment header, the body is read and validated before payment verification: a missing or non-string text, a body over 2 MiB, text over 1 MiB, more than 5000 lines (or over max_lines), any line over 64 KiB, and a wrong type for unique_key, max_lines or require_same_keys are 400 and no payment is requested. Broken JSONL lines are not an input error: they are returned in errors[] after payment, because finding them is the product."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/jsonl",
            "content_type": "application/json",
            "body": {
              "text": "required. The JSONL content as one JSON string. At most 1048576 UTF-8 bytes, 5000 lines and 65536 bytes per line.",
              "unique_key": "optional. One top-level key name; duplicate values are reported as line numbers only.",
              "max_lines": "optional. A stricter line limit, 0..5000; exceeding it is 400 before payment.",
              "require_same_keys": "optional. true makes key_drift list object lines whose top-level key set differs from the first object line. Default false."
            },
            "note": "The request body itself is capped at 2 MiB so that JSON escaping has room; the text inside it is capped at 1 MiB. A bare POST is 402. With a payment header, invalid input is 400 before payment. Broken lines are 200 with errors[] and are the answer, not an input error."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-jsonl\"",
              "schema_version": "number",
              "lines_total": "number — lines after splitting on LF; a final LF does not add a line",
              "nonempty": "number — lines whose trimmed content is not empty",
              "blank": "number — lines that are empty or whitespace only",
              "parsed": "number — non-empty lines accepted by JSON.parse",
              "failed": "number — non-empty lines rejected by JSON.parse",
              "errors": "{ line, column, message }[] — at most the first 100; no line body and no value",
              "errors_truncated": "boolean — true when failed is larger than errors.length",
              "bom": "boolean — the text starts with U+FEFF",
              "crlf": "number — CRLF sequences in the text",
              "last_line_terminated": "boolean — the text ends with LF",
              "keys": "{ common, variants, key_drift, object_lines, non_object_lines }",
              "keys.common": "string[] — top-level keys present in every parsed object line",
              "keys.variants": "{ keys, count, first_line }[] — distinct sorted key sets, in order of first appearance",
              "keys.key_drift": "{ line, missing, extra }[] — only when require_same_keys=true; relative to the first object line",
              "unique_key": "{ name, duplicates } — duplicates is a sorted array of line numbers only",
              "limits": "{ max_text_bytes, max_body_bytes, max_lines, max_line_bytes, max_errors, requested_max_lines }",
              "bytes": "number — UTF-8 bytes of the text as supplied, including a BOM",
              "sha256": "string — SHA-256 of the UTF-8 text as supplied",
              "checked_at": "string — ISO 8601 timestamp",
              "paid": "boolean — true on a settled 200",
              "note": "string — the no-standard, no-schema, no-storage and out-of-scope note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no JSONL is checked)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "asset_decimals": 6,
          "amount_usd": 0.002,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /jsonl — one JSONL text, one line-by-line check",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The JSONL text is checked for this one response and is not stored or logged. Only counts, key names, line numbers, the byte count and a hash are returned; line bodies and values are not."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST 'https://<worker-host>/jsonl' -H 'content-type: application/json' -d '{\"text\":\"{\\\"id\\\":1}\\n{\\\"id\\\":2,}\\n\"}'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -X POST -H 'content-type: application/json' -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/jsonl' -d '{\"text\":\"{\\\"id\\\":1}\\n{\\\"id\\\":2,}\\n\",\"unique_key\":\"id\"}'   -> 200 with lines_total 2, parsed 1, failed 1 and errors at line 2",
          "response_example": "{\n  \"lines_total\": 2, \"nonempty\": 2, \"blank\": 0, \"parsed\": 1, \"failed\": 1,\n  \"bom\": false, \"crlf\": 0, \"last_line_terminated\": true,\n  \"errors\": [ { \"line\": 2, \"column\": 8, \"message\": \"invalid JSON: expected a double-quoted object key\" } ],\n  \"keys\": { \"common\": [\"id\"], \"variants\": [ { \"keys\": [\"id\"], \"count\": 1, \"first_line\": 1 } ] },\n  \"unique_key\": { \"name\": \"id\", \"duplicates\": [] }\n}",
          "note": "The line 2 error is illustrative: the exact column and reason come from the parser for the supplied text. The 402 body carries the live price."
        },
        "listing_notes": {
          "resource_type": "POST with a JSON body; no query parameters, no account and no external fetch.",
          "distinct_from_siblings": "GET /json-strict reads one JSON document from a URL and reports parser incompatibilities. GET /text-stats counts characters, words and lines. POST /compat checks one value against one JSON Schema fragment. This product is the only one that treats each line as its own JSON document, names the broken line numbers and aggregates top-level key sets across lines.",
          "price": "The 402 response always carries JSONL_PRICE_ATOMIC. product.json and this catalogue share the same CONFIG.",
          "keywords": [
            "jsonl",
            "ndjson",
            "json lines",
            "line-delimited",
            "key drift",
            "duplicate key",
            "utility"
          ],
          "claims": "Describe only the per-line JSON syntax result, the blank/BOM/CRLF/final-newline observations and the top-level key aggregation. Do not call it JSON Schema validation, semantic validation, safe, complete or standards-compliant, and do not claim that JSONL has one RFC. State that duplicate keys, invalid UTF-8 bytes and huge numbers are outside or unverified, and that line bodies and values are not returned or stored."
        },
        "delivery": {
          "method": "POST",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-json-canonical",
        "schema_version": 1,
        "title": "Canonical JSON (RFC 8785 JCS) and its SHA-256 in one POST",
        "what_it_is": "One POST takes a json field that is either a JSON string or any JSON value and returns its canonical form under the RFC 8785 JCS rules, the SHA-256 of that form and its UTF-8 byte length. Object keys are ordered by UTF-16 code units, strings use only the escapes JCS requires, numbers use ECMAScript Number::toString, and arrays keep their order. input_sha256 is the hash of the input as supplied, so key order, whitespace and number spelling can change input_sha256 while sha256 stays the same. The parser is strict: duplicate keys, NaN, Infinity, trailing commas, comments and a lone surrogate are refused with 400 before payment instead of being silently repaired. Integers outside +-2^53 are returned with a number_precision_loss warning because JCS serializes the IEEE-754 double, not the exact integer. Nothing is fetched, stored, signed or transferred.",
        "when_to_buy": "Buy one call when a digest or a signature must survive key reordering and whitespace: before signing a webhook body, before using a JSON document as an idempotency key, or when two agents must decide whether they hold the same JSON value. It is also a strict syntax check for the cases JSON.parse hides, such as a duplicate key. Read warnings[] before relying on an integer: a warning means the double differs from the literal you supplied. This is canonicalization, not a signature, not a schema check and not proof that two different documents are semantically equal.",
        "subject": {
          "what_is_delivered": [
            "canonical (the JCS string; UTF-8, no insignificant whitespace)",
            "sha256 and bytes of the canonical form",
            "input_sha256 and input_bytes of the json as supplied",
            "warnings[] (number_precision_loss with path, token, parsed value and exact flag)",
            "canonicalization rules and limits",
            "checked_at, paid and the delivery receipt"
          ],
          "not_included": [
            "no signature, no key, no certificate and no proof of authorship",
            "no JSON Schema validation, type checking or semantic comparison",
            "no URL fetch, no storage and no logging of the supplied value",
            "no repair of duplicate keys, NaN, Infinity, trailing commas or lone surrogates: they are 400",
            "no arbitrary-precision arithmetic: integers outside +-2^53 are warned, not preserved",
            "no promise that JCS equality implies application-level equality"
          ],
          "source": "strict JSON parser and RFC 8785 JCS serializer inside this Worker; no upstream call and no LLM",
          "live_call_semantics": "A bare POST with no body is 402 so a catalogue can probe the price. A POST with a body is parsed before payment verification: malformed JSON, a missing json field, a body over 2 MiB, a json document over 256 KiB, depth over 32, an array over 10000 items, duplicate keys, NaN, Infinity and a lone surrogate are 400 and no payment is requested. A valid body without a payment header is 402. After a settled payment the same canonical form is returned; the input is not retained."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/json-canonical",
            "content_type": "application/json",
            "body": {
              "json": "required. A JSON string (parsed as a JSON document) or any JSON value. At most 262144 UTF-8 bytes, depth 32, arrays of at most 10000 items."
            },
            "note": "The request body is capped at 2 MiB so JSON escaping has room. A bare POST with no body is 402. A body that is present is validated before payment: duplicate keys, NaN, Infinity, malformed JSON and over-limit input are 400 with charged:false and no payment request. A valid body without a payment header is 402. The supplied value is not stored."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-json-canonical\"",
              "schema_version": "number",
              "canonical": "string — the RFC 8785 JCS form",
              "sha256": "string — SHA-256 of the UTF-8 bytes of canonical",
              "bytes": "number — UTF-8 bytes of canonical",
              "input_sha256": "string — SHA-256 of the json as supplied (string content, or JSON.stringify of a value)",
              "input_type": "string — string or value",
              "input_bytes": "number — UTF-8 bytes of the input as supplied",
              "ascii_only": "boolean — true when canonical contains only U+0000..U+007F",
              "warnings": "array — number_precision_loss entries with path, token, parsed and exact",
              "canonicalization": "{ standard, key_order, numbers, strings, array_order }",
              "limits": "{ max_json_bytes, max_body_bytes, max_depth, max_array_items, max_values }",
              "checked_at": "string — ISO 8601 timestamp",
              "paid": "boolean — true on a settled 200",
              "note": "string — scope, refusal and no-storage note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (nothing is canonicalized)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "asset_decimals": 6,
          "amount_usd": 0.002,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /json-canonical — one JSON document, one canonical form and digest",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The supplied JSON is parsed for this one response and is not stored or logged. Only the canonical form, its hashes and byte counts, warnings and the delivery record are returned."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST 'https://<worker-host>/json-canonical' -H 'content-type: application/json' -d '{\"json\":\"{\\\"b\\\":2,\\\"a\\\":1}\"}'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -X POST -H 'content-type: application/json' -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/json-canonical' -d '{\"json\":\"{\\\"b\\\":2,\\\"a\\\":1}\"}'   -> 200 with canonical {\"a\":1,\"b\":2} and its sha256",
          "response_example": "{\n  \"canonical\": \"{\\\"a\\\":1,\\\"b\\\":2}\",\n  \"sha256\": \"…\", \"bytes\": 13, \"input_sha256\": \"…\", \"warnings\": []\n}",
          "note": "The canonical string is illustrative; sha256, bytes and input_sha256 are computed for the supplied input. The 402 body carries the live price."
        },
        "listing_notes": {
          "resource_type": "POST with a JSON body; no query parameters, no account and no external fetch.",
          "distinct_from_siblings": "GET /text-hash hashes raw text without parsing it. GET /json-strict reports parser incompatibilities in a document fetched from a URL. POST /jsonl checks JSONL line by line. POST /schema-infer builds a schema from examples. This product is the only one that parses one JSON value strictly and returns its RFC 8785 JCS form with a digest, so key order and whitespace no longer change the hash.",
          "price": "The 402 response always carries JSON_CANONICAL_PRICE_ATOMIC. product.json and this catalogue share the same CONFIG.",
          "keywords": [
            "json",
            "canonical",
            "canonical json",
            "rfc 8785",
            "jcs",
            "sha256",
            "stable hash",
            "normalization"
          ],
          "claims": "Describe only the JCS serialization rules implemented here, the strict refusals and the precision warning. Do not call it a signature, a schema check or a proof of semantic equality, and do not claim conformance beyond the vectors tested in selftest. State that integers outside +-2^53 are warned, that the input is not stored, and that no URL is fetched."
        },
        "delivery": {
          "method": "POST",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-iban-check",
        "schema_version": 1,
        "title": "IBAN check in one GET: country length, structure and the MOD-97 check digits",
        "what_it_is": "One GET takes an IBAN and returns it normalised and grouped in fours, whether the two check digits pass MOD-97, whether the length matches the national length for the SEPA countries this Worker knows, the country code and the BBAN. Everything is computed inside this Worker from the string only: no bank, no register and no network call, and nothing is stored.",
        "when_to_buy": "Buy one call when an agent has an IBAN and needs to reject typos before storing it or before a payout instruction leaves the system. It answers the format question without integrating a bank or a lookup service, and it never claims that the account exists.",
        "subject": {
          "what_is_delivered": [
            "iban (normalised), formatted (groups of four) and the original input",
            "valid and each check separately: format, national length and MOD-97",
            "checksum.remainder (1 means the IBAN passes MOD-97)",
            "country.code and whether the country is in the built-in SEPA length table",
            "bban.value and bban.length",
            "checked_at, source, note and the delivery receipt"
          ],
          "not_included": [
            "no bank name, branch name, account holder or account status",
            "no register lookup and no proof that the account exists or is open",
            "no SEPA reachability, no payment initiation and no transfer",
            "no storage and no logging of the IBAN"
          ],
          "source": "ISO 13616 structure, SEPA national lengths and MOD-97, computed inside this Worker",
          "live_call_semantics": "The input is validated before payment verification. Missing, over-long or non-alphanumeric input is 400 and no payment is requested. A bare GET /iban is 402 so a catalogue can probe the price."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/iban",
            "params": {
              "iban": "required. An IBAN, with or without spaces, e.g. DE89370400440532013000 or GB82WEST12345698765432."
            },
            "body": "none",
            "note": "A bare GET /iban is 402. With a payment header, a missing, over-long or non-alphanumeric iban is 400 and no payment is requested."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string - \"x402-iban-check\"",
              "schema_version": "number",
              "input": "string - the value as sent",
              "iban": "string - normalised (spaces removed, upper case)",
              "formatted": "string - groups of four characters",
              "valid": "boolean - format and checksum pass, and length passes when checked",
              "checks": "{ format, length{checked,ok,expected,actual}, checksum{algorithm,ok,remainder,expected_remainder} }",
              "country": "{ code, sepa_length_table, sepa }",
              "bban": "{ value, length }",
              "checked_at": "string - ISO 8601 timestamp",
              "source": "string",
              "note": "string - what valid proves and what it does not",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no IBAN is checked)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "2000",
          "asset_decimals": 6,
          "amount_usd": 0.002,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /iban - one IBAN, structure, length and MOD-97",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The IBAN is checked for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/iban?iban=DE89370400440532013000'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/iban?iban=DE89370400440532013000'   -> 200 with valid=true",
          "response_example": "{\n  \"iban\": \"DE89370400440532013000\", \"formatted\": \"DE89 3704 0044 0532 0130 00\",\n  \"valid\": true,\n  \"checks\": { \"format\": true, \"length\": { \"checked\": true, \"ok\": true, \"expected\": 22, \"actual\": 22 },\n             \"checksum\": { \"ok\": true, \"remainder\": 1, \"expected_remainder\": 1 } },\n  \"country\": { \"code\": \"DE\", \"sepa_length_table\": true, \"sepa\": true }\n}",
          "note": "Spaces are allowed. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "No other route checks IBANs. GET /barcode checks a barcode check digit, GET /hash hashes text and GET /semver evaluates versions; none of them applies MOD-97 or a national IBAN length.",
          "price": "The 402 response always carries IBAN_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "iban",
            "bank account",
            "mod-97",
            "validation",
            "sepa",
            "payments",
            "utility"
          ],
          "claims": "Describe only format, national length for the countries in the table and MOD-97. Never claim that a bank, branch, holder or account status was looked up, and state that nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-schema-infer",
        "schema_version": 1,
        "title": "Infer a JSON Schema draft 2020-12 from 1-20 examples, with the ambiguity left explicit",
        "what_it_is": "One POST takes 1 to 20 JSON values in examples and returns a JSON Schema draft 2020-12 that describes only what was observed. Objects use the union of all observed keys; required contains only keys present in every example; arrays union their element schemas, and an empty array yields items:{} (unconstrained). A node with more than one JSON type becomes anyOf, and null is folded into a type array such as [\"string\",\"null\"]. The response also reports how many examples, object values, schema paths and null values were seen, lists the ambiguities (type conflicts, differing object key sets, empty arrays) with their paths, and offers enum and format candidates separately. Candidates are never written into the schema, because a pattern in a few examples is not a rule. additionalProperties, maxProperties and $id are not emitted. This is a description, not a proof and not validation: it does not fetch a URL, does not use an inference model or LLM, and does not store the request body.",
        "when_to_buy": "Buy one call when you have a handful of real JSON samples and need a draft schema to review, edit or use as a starting point for validation. It is useful before writing a schema by hand, before comparing two data shapes, or when onboarding an unfamiliar API response. Read ambiguous[] and candidates before trusting the result: a key that is absent from one example is optional, and a value that repeats is only an enum candidate. Use /json-strict for parser compatibility and /compat for checking one value against a schema; this endpoint does neither.",
        "subject": {
          "what_is_delivered": [
            "schema: a JSON Schema draft 2020-12 document with $schema and, when title was supplied, title",
            "observed{examples, objects, paths, nulls}: what the inference actually saw",
            "ambiguous[]{path, types, reason}: type conflicts, object key variation and empty arrays",
            "candidates{required_if_all, optional_seen, enums[], formats[]}: evidence, not assertions",
            "limits, input_sha256, checked_at, paid and the delivery record"
          ],
          "not_included": [
            "no claim that the schema is correct, complete or proven by the examples",
            "no validation of any value against the schema; /json-strict and /compat cover validation",
            "no enum or format keyword inside schema; those appear only as candidates",
            "no additionalProperties, maxProperties or $id in the output",
            "no URL fetch, no external request, no inference model, no LLM and no storage of the body",
            "no semantic type detection (for example, a string that looks like a date is not asserted as date-time)"
          ],
          "source": "Recursive observation and schema assembly inside this Worker; no upstream call and no LLM",
          "live_call_semantics": "A bare POST /schema-infer is 402 so a catalogue can probe the price. With a payment header, the body is validated before payment verification: missing examples, a non-array or empty examples, more than 20 examples, a non-object body, a non-string or over-long title, more than 262144 bytes of examples, nesting deeper than 32 levels, or any array over 1000 items are 400 and no payment is requested. Only a valid body reaches payment verification."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/schema-infer",
            "content_type": "application/json",
            "body": {
              "examples": "required. An array of 1 to 20 JSON values. The examples may total at most 262144 bytes as JSON, nest at most 32 levels, and contain no array longer than 1000 items.",
              "title": "optional. A string of at most 200 characters, copied to schema.title."
            },
            "note": "The request body itself is capped at 2 MiB so that JSON escaping has room. A bare POST is 402. With a payment header, invalid or over-limit input is 400 before payment and no payment is requested."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-schema-infer\"",
              "schema_version": "number",
              "schema": "object — JSON Schema draft 2020-12; no additionalProperties, maxProperties or $id",
              "observed.examples": "number — examples supplied",
              "observed.objects": "number — object values seen at any depth",
              "observed.paths": "number — distinct schema paths visited, including $",
              "observed.nulls": "number — null values seen at any depth",
              "ambiguous": "{ path, types, reason }[] and, for key variation, optional_keys[]",
              "candidates.required_if_all": "string[] — paths present in every example",
              "candidates.optional_seen": "string[] — paths seen at least once but not in every example",
              "candidates.enums": "{ path, values, observed, distinct, basis }[] — repeated primitive values, candidate only",
              "candidates.formats": "{ path, format, observed, basis }[] — all observed strings matched, candidate only",
              "limits": "{ examples, total_bytes, depth, array_items, title_chars, body_bytes }",
              "input_sha256": "string — SHA-256 of the request body as supplied",
              "checked_at": "string — ISO 8601 timestamp",
              "paid": "boolean — true on a settled 200",
              "note": "string — the no-proof, no-validation, no-storage note",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no schema is inferred)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /schema-infer — one examples array, one schema draft",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The examples are used for this one response and are not stored or logged. Only the inferred schema, counts, ambiguity paths, candidate paths and the body hash are returned."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST 'https://<worker-host>/schema-infer' -H 'content-type: application/json' -d '{\"examples\":[{\"id\":1,\"name\":\"Ada\"},{\"id\":2,\"name\":\"Bob\",\"nickname\":\"bobby\"}]}'   -> 402, read PAYMENT-REQUIRED",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -X POST -H 'content-type: application/json' -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/schema-infer' -d '{\"examples\":[{\"id\":1,\"name\":\"Ada\"},{\"id\":2,\"name\":\"Bob\",\"nickname\":\"bobby\"}],\"title\":\"Person\"}'   -> 200",
          "response_example": "{\n  \"schema\": { \"$schema\": \"https://json-schema.org/draft/2020-12/schema\", \"title\": \"Person\",\n    \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"integer\" }, \"name\": { \"type\": \"string\" },\n      \"nickname\": { \"type\": \"string\" } }, \"required\": [\"id\", \"name\"] },\n  \"ambiguous\": [ { \"path\": \"$\", \"types\": [\"object\"], \"reason\": \"object keys differ across examples; only keys present in every example are required\", \"optional_keys\": [\"nickname\"] } ],\n  \"candidates\": { \"required_if_all\": [\"$.id\", \"$.name\"], \"optional_seen\": [\"$.nickname\"], \"enums\": [], \"formats\": [] } }",
          "note": "The example is illustrative. An enum appears only when a primitive value repeats; a format appears only when every observed string at that path matches it. Neither is written into schema."
        },
        "listing_notes": {
          "resource_type": "POST with a JSON body; no query parameters, no account and no external fetch.",
          "distinct_from_siblings": "GET /contract normalises the output contract declared in a 402 and reads it as served. GET /json-strict reports parser incompatibilities in one JSON document. POST /compat checks one value against one JSON Schema fragment. This product starts from examples and builds a draft schema, keeping ambiguity, enum and format as explicit candidates rather than assertions.",
          "price": "The 402 response always carries SCHEMA_INFER_PRICE_ATOMIC. product.json and this catalogue share the same CONFIG.",
          "keywords": [
            "json schema",
            "schema inference",
            "draft 2020-12",
            "examples",
            "anyOf",
            "required",
            "utility"
          ],
          "claims": "Describe only what the examples showed. Do not call the schema correct, complete, proven or validated, and do not say it is a validator. State that enum and format are candidates only, that additionalProperties, maxProperties and $id are not emitted, that no URL is fetched and no LLM is used, and that the body is not stored. Point validation to /json-strict and /compat."
        },
        "delivery": {
          "method": "POST",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-http-status",
        "schema_version": 1,
        "title": "One HTTP status code: reason, class, standard reference and retry guidance in one GET",
        "what_it_is": "One GET takes an HTTP status code from 100 to 599 and returns its registered reason phrase, its class (1xx-5xx), whether it is in the bundled IANA/RFC table, the reference RFC, whether a retry can help, and short notes for codes whose names mislead. Everything is looked up in a table inside this Worker; nothing is fetched and nothing is stored.",
        "when_to_buy": "Buy one call when an agent or an operator sees a status code and needs its meaning and a safe next move without carrying a status table or guessing whether to retry. It answers about the code itself, not about whether a particular URL is alive.",
        "subject": {
          "what_is_delivered": [
            "code and reason (null when the code is in range but not in the bundled table)",
            "known and standard flags plus the reference RFC",
            "class: 1xx-5xx name and category",
            "retryable and retry_guidance",
            "meaning, notes, known_codes and code_range",
            "source, checked_at and the delivery receipt"
          ],
          "not_included": [
            "no request is made to any URL, so this does not say whether a site is up",
            "no server-specific response body, headers or diagnostics",
            "no vendor or non-standard codes beyond the bundled table",
            "no storage and no logging of the code"
          ],
          "source": "bundled IANA/RFC status-code table inside this Worker; no upstream call",
          "live_call_semantics": "The code is validated before payment verification. A missing or malformed code is 400 and no payment is requested. A bare GET /http-status is 402 so a catalogue can probe the price."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/http-status",
            "params": {
              "code": "required. Three digits from 100 to 599, e.g. 404 or 429."
            },
            "body": "none",
            "note": "A bare GET /http-status is 402. With a payment header, a missing or malformed code is 400 and no payment is requested. Codes in range but absent from the table return 200 with known=false."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-http-status\"",
              "schema_version": "number",
              "code": "number — the requested code",
              "reason": "string|null — the registered reason phrase",
              "known": "boolean — present in the bundled table",
              "class": "{ code: 1-5, name, category }",
              "standard": "boolean — same as known",
              "reference": "string|null — the RFC that defines or registers the code",
              "retryable": "boolean",
              "retry_guidance": "string — a safe next move",
              "meaning": "string — one sentence",
              "notes": "string[] — caveats for codes whose names mislead",
              "known_codes": "number — size of the bundled table",
              "code_range": "\"100-599\"",
              "source": "string — bundled table, no external call",
              "checked_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no lookup is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /http-status — one status code",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The status code is looked up for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/http-status?code=429'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/http-status?code=429'   -> 200 with reason \"Too Many Requests\" and retry guidance",
          "response_example": "{\n  \"code\": 429, \"reason\": \"Too Many Requests\", \"known\": true,\n  \"class\": { \"code\": 4, \"name\": \"Client Error\", \"category\": \"client_error\" },\n  \"retryable\": true, \"retry_guidance\": \"Transient in most cases. Retry with backoff; for 429 and 503 honor Retry-After when present.\"\n}",
          "note": "Any three-digit code from 100 to 599 is accepted. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "GET /alive requests a URL and reports whether it answers; GET /failure analyses a declared failure mode; this route only explains a status code from a bundled table and makes no external request.",
          "price": "The 402 response always carries HTTP_STATUS_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "http status",
            "status code",
            "404",
            "429",
            "retry",
            "rfc",
            "utility"
          ],
          "claims": "Describe only the bundled status-code table and the retry guidance. Do not claim that any URL was contacted or that a server's actual behaviour was observed, and state that nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": true
        }
      },
      {
        "product_id": "x402-compare",
        "schema_version": 1,
        "title": "x402 compare — two or three 402s, side by side, before you pay",
        "what_it_is": "Give 2 to 3 absolute x402 URLs and get, for each, the payment terms its 402 serves (scheme, network and CAIP-2, asset, pay_to, amount, max timeout) and the output declaration normalised by the same reader as /contract ({declared, fields[], weak[]}). It also returns same_pay_to / same_network / same_asset, a declared-shape schema_rank, the unreachable URLs, and flags (clone_suspect, mixed_asset, method_not_supported). cheapest is computed only between targets with the same asset and the same network; otherwise it is null.",
        "when_to_buy": "Buy one call when an agent has to choose between two or three paid endpoints and would otherwise fetch every 402 one by one and normalise it by hand. Measured basis: the observed catalogue has 0 comparison routes and 87.8% of output declarations are only {type, example}, so the terms and the declared shape have to be read from the served 402 rather than from a directory listing.",
        "io": {
          "input": {
            "method": "GET",
            "path": "/compare",
            "params": {
              "urls": "required. 2 to 3 comma-separated absolute http(s) URLs of x402 resources. Duplicate URLs, empty items, credentials in the URL and loopback/private/internal hosts are 400 before payment."
            },
            "note": "The bare path answers 402 as well: a catalogue reads the price from the challenge before buying."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "targets": "[{url, final_url, status, reachable, x402, payment{scheme,network,network_caip2,asset,pay_to,amount_atomic,amount_usd,max_timeout_seconds}, output{declared,fields[],weak[]}, error}] — one entry per input URL, in input order; each URL is fetched once",
              "comparison": {
                "cheapest": "{url,urls,amount_atomic,amount_usd,network,network_caip2,asset,compared_urls,basis} or null — same asset and same network only",
                "same_pay_to": "boolean|null — null when fewer than two reachable 402s declare pay_to",
                "same_network": "boolean|null — CAIP-2 when known, otherwise the network string",
                "same_asset": "boolean|null",
                "schema_rank": "[{rank,url,declared,field_count,weak_count}] — declared shape richness, not quality",
                "unreachable": "string[] — URLs that were not compared (unreachable, 429, 5xx or 405)",
                "flags": "string[] — clone_suspect, mixed_asset, method_not_supported"
              },
              "caveats": "string[] — the amount is as served now; order is not a recommendation; unreachable is not cheap"
            }
          }
        },
        "price": {
          "amount_atomic": "20000",
          "asset_decimals": 6,
          "amount_usd": 0.02,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /compare response",
          "note": "Level with /price and /watch (0.02). The 402 always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource, accepts[], extensions.bazaar)",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "refunds": "Payments are settled on-chain and are not refunded automatically.",
          "terms_of_use": "The report states what each target served at that moment, as served."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/compare?urls=https%3A%2F%2Fa.example%2Fpaid,https%3A%2F%2Fb.example%2Fpaid'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -i -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/compare?urls=...'   -> 200 with the side-by-side report",
          "note": "400 for missing/invalid/duplicate/too many URLs is returned before any target is fetched and before payment."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one query parameter; the bare path answers 402, so a verify-only listing needs no first settlement.",
          "distinct_from_siblings": "GET /check reads one URL's liveness and price; GET /contract normalises one 402's output contract; GET /catalog-fit checks one seller's catalogs against its own 402s. This route compares 2-3 concrete URLs with each other and refuses to rank across assets or networks.",
          "failure_answers": "400 (missing_urls, too_few_urls, too_many_urls, invalid_urls, duplicate_url, invalid_url, blocked_target, credentials_not_allowed) before anything is fetched; 200 with that target reachable:false for an unreachable target, 429, 5xx or POST-only 405; 200 with cheapest:null when no two targets share asset and network.",
          "claims": "Never call an unreachable target cheap, never compare amounts across assets or networks, and never present the order as a recommendation. clone_suspect is a heuristic, not proof of one operator.",
          "price": "The 402 response always carries COMPARE_PRICE_ATOMIC (0.02 USDC). product.json and this catalogue come from the same CONFIG."
        }
      },
      {
        "product_id": "x402-pii-scan",
        "schema_version": 1,
        "title": "PII scan in one POST: where are the emails, cards, IBANs, phones, keys and tokens?",
        "what_it_is": "One POST takes one UTF-8 text (1 to 64 KiB) and returns the position of common personal and credential identifiers as UTF-16 code-unit offsets. Each finding carries type, start, end, length, a masked form (first two and last two characters, never the value), confidence high/medium and a checksum field. Checksums are Luhn for cards, MOD-97 for IBANs and the E.164 country calling code for +numbers; IP addresses, JWTs, bearer tokens, private-key blocks, EVM addresses, Japanese phones and Japanese postal codes are pattern matches with confidence. The response also carries counts_by_type, the SHA-256 and UTF-8 byte count of the input, the limits used, detection:\"pattern+checksum\" and guarantee:false. With redact:true it additionally returns redacted, a best-effort copy with each finding replaced by a token such as [EMAIL]. The text is not stored, not logged and never returned as a value; no URL is fetched, no model is used and nothing is inferred.",
        "when_to_buy": "Buy one call immediately before an agent publishes prose, sends a message or writes a log, when the question is not only 'is there PII?' but 'where is it, and how confident is the detector?'. The offsets let your own code cut, quarantine or replace the exact span. The masked form lets a reviewer see the shape without copying the secret. It is a detector, not a compliance certificate: names, addresses, dates of birth, faces and context-dependent personal data are not detected, so a zero result does not prove the text is safe to publish.",
        "subject": {
          "what_is_delivered": [
            "findings[]{type, start, end, length, masked, confidence, checksum} sorted by start",
            "counts_by_type for every scanned type (zeros included)",
            "input_sha256, bytes, limits, detection:\"pattern+checksum\" and guarantee:false",
            "redacted only when redact:true (best-effort, [EMAIL] / [CREDIT_CARD] / [PRIVATE_KEY_BLOCK] etc.)",
            "checked_at, paid and the delivery receipt"
          ],
          "not_included": [
            "no name, address, date of birth, face or context-dependent personal-data detection",
            "no proof that the text contains no personal data: guarantee is false",
            "no My Number (マイナンバー) detection in v1; it is 特定個人情報 and handling awaits an owner decision",
            "no corporate number (法人番号) detection and no claim that a 12-digit number is or is not one",
            "no value in the response, no text in logs, no storage, no external fetch and no inference/LLM",
            "no checksum for types other than cards, IBANs and the E.164 country code"
          ],
          "source": "regular expressions plus Luhn, MOD-97 and an E.164 country-code table inside this Worker",
          "live_call_semantics": "A bare POST /pii-scan is 402 so a catalogue can probe the price. With a payment header, the body is read and validated before payment verification: a missing or non-string text, an empty text, text over 64 KiB, a body over 256 KiB, an unknown locale, an unknown type and a non-boolean redact are 400 and no payment is requested. A clean scan and a scan with findings are both 200."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/pii-scan",
            "content_type": "application/json",
            "body": {
              "text": "required string, 1 to 65536 UTF-8 bytes",
              "locale": "optional \"ja\" | \"en\" | \"auto\" (default \"auto\"); a hint that selects the default type set, not a value filter",
              "types": "optional array of type names; unknown names are 400 before payment",
              "redact": "optional boolean; when true the response also has redacted"
            },
            "note": "A bare POST /pii-scan is 402. With a payment header, text that is missing, not a string, empty, over 64 KiB, or supplied with an unknown type/locale or a non-boolean redact is 400 and no payment is requested."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string - \"x402-pii-scan\"",
              "schema_version": "number",
              "findings": "[{ type, start, end, length, masked, confidence, checksum }]",
              "counts_by_type": "object - one count per scanned type",
              "input_sha256": "string - SHA-256 of the UTF-8 text",
              "bytes": "number - UTF-8 byte length of the text",
              "limits": "{ max_text_bytes, max_body_bytes, max_findings }",
              "detection": "string - \"pattern+checksum\"",
              "guarantee": "boolean - false",
              "redacted": "string - present only when redact:true; best-effort replacement, not a sanitizer",
              "checked_at": "string - ISO 8601 timestamp",
              "paid": "boolean",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no text is scanned)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /pii-scan - one text, one pattern+checksum scan",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The text is scanned for this one response only; it is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST 'https://<worker-host>/pii-scan' -H 'content-type: application/json' -d '{\"text\":\"mail ada@example.com or +819012345678\",\"redact\":true}'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -X POST -H 'PAYMENT-SIGNATURE: <base64 payload>' -H 'content-type: application/json' 'https://<worker-host>/pii-scan' -d '{\"text\":\"mail ada@example.com\",\"redact\":true}'   -> 200 with findings and redacted",
          "response_example": "{\n  \"findings\": [ { \"type\": \"email\", \"start\": 5, \"end\": 20, \"length\": 15,\n      \"masked\": \"ad…om\", \"confidence\": \"high\", \"checksum\": null } ],\n  \"counts_by_type\": { \"email\": 1 },\n  \"detection\": \"pattern+checksum\", \"guarantee\": false,\n  \"redacted\": \"mail [EMAIL]\" }",
          "note": "The example is illustrative; masked always hides the middle of the value."
        },
        "listing_notes": {
          "resource_type": "POST with a JSON body; one text and one scan per payment. No account.",
          "distinct_from_siblings": "GET /payer-leak-scan looks for buyer identifiers on a public URL and never reads your text; GET /json-strict reports JSON parser incompatibilities; GET /text-stats measures length. None of them locates personal data or returns offsets and masks.",
          "price": "The 402 response always carries PII_SCAN_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "pii",
            "personal data",
            "redact",
            "privacy",
            "email",
            "credit card",
            "iban",
            "jwt",
            "secret",
            "utility"
          ],
          "claims": "Describe only the listed pattern detectors and the three checksum checks. Never claim completeness, compliance or that a clean result is safe to publish, and state that My Number is out of scope in v1."
        },
        "delivery": {
          "method": "POST",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-radix",
        "schema_version": 1,
        "title": "Number base conversion in one GET: base 2-36 both ways, exact for big integers",
        "what_it_is": "One GET reads an integer written in a base from 2 to 36 and returns the same value in another base from 2 to 36, plus the exact decimal form, the digit count, the bit length and a round-trip check. Arithmetic uses BigInt, so long values are not truncated or rounded. Nothing is fetched and nothing is stored.",
        "when_to_buy": "Buy one call when an agent or an operator needs to move an integer between binary, octal, decimal, hex or another base without trusting a floating-point conversion or writing a validator for the edge cases. It converts a number; it does not look up a URL or an account.",
        "subject": {
          "what_is_delivered": [
            "decimal: the exact value in base 10 as a string",
            "converted: the value in the requested to base, uppercase digits",
            "input: the n, from and to that were used",
            "negative, digits, bits and normalized_input",
            "round_trip_ok and the 2-36 digit alphabet",
            "source, checked_at and the delivery receipt"
          ],
          "not_included": [
            "no floating-point or fractional values: integers only",
            "no prefixes such as 0x, 0b or 0o; pass the base in from",
            "no expression evaluation and no unit conversion",
            "no storage and no logging of the value"
          ],
          "source": "BigInt arithmetic inside this Worker; no upstream call",
          "live_call_semantics": "n, from and to are validated before payment verification. A missing or malformed parameter is 400 and no payment is requested. A bare GET /radix is 402 so a catalogue can probe the price."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/radix",
            "params": {
              "n": "required. Integer digits in the from base; optional leading - or +; case-insensitive letters; at most 512 characters.",
              "from": "optional. Integer base 2-36, default 10.",
              "to": "optional. Integer base 2-36, default 16."
            },
            "body": "none",
            "note": "A bare GET /radix is 402. With a payment header, a missing or malformed n/from/to is 400 and no payment is requested. Letters above 9 use 0-9A-Z and are accepted in either case."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-radix\"",
              "schema_version": "number",
              "input": "{ n, from, to }",
              "negative": "boolean",
              "decimal": "string — exact value in base 10",
              "converted": "string — value in the to base, uppercase digits",
              "digits": "number — digit count of converted, excluding the sign",
              "bits": "number — bit length of the absolute value (0 has 1)",
              "normalized_input": "string — value in the from base, uppercase, no leading zeros",
              "round_trip_ok": "boolean — converted parses back to the same value",
              "bases_supported": "\"2-36\"",
              "digit_alphabet": "\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\"",
              "source": "string — BigInt conversion, no external call",
              "checked_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no conversion is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /radix — one integer conversion",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The integer is converted for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/radix?n=255&from=10&to=16'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/radix?n=255&from=10&to=16'   -> 200 with converted \"FF\" and decimal \"255\"",
          "response_example": "{\n  \"input\": { \"n\": \"255\", \"from\": 10, \"to\": 16 },\n  \"decimal\": \"255\", \"converted\": \"FF\",\n  \"digits\": 2, \"bits\": 8, \"round_trip_ok\": true\n}",
          "note": "Integers only; the sign and the base-36 alphabet are part of the contract."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one required query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "GET /base64 converts text encodings, GET /unix-mode converts chmod notation, GET /barcode-check validates check digits; this route converts an integer between positional bases and makes no external request.",
          "price": "The 402 response always carries RADIX_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "radix",
            "base conversion",
            "hex",
            "binary",
            "decimal",
            "bigint",
            "utility"
          ],
          "claims": "Describe only the integer conversion this Worker performs. Do not claim that a value was verified against an external source, and state that nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-uuid",
        "schema_version": 1,
        "title": "UUID v4 generator in one GET: 1-100 random identifiers with RFC 4122 version and variant bits",
        "what_it_is": "One GET returns between one and one hundred UUID version 4 identifiers generated inside this Worker with crypto.getRandomValues. Every value has the RFC 4122 version nibble set to 4 and the variant bits set to 10, and is returned in the canonical 8-4-4-4-12 form. Optional flags switch upper case, braces and hyphens off, and the response reports the count, the flags and a generated_at timestamp. No account, no seed, no storage and no external call; the values are not checked against a registry.",
        "when_to_buy": "Buy one call when an agent needs fresh unique identifiers in one step and does not want to carry UUID formatting code: correlation ids, idempotency keys, test fixtures or request ids. It generates values now; it does not reserve them, persist them or prove that a value was never issued before.",
        "subject": {
          "what_is_delivered": [
            "uuids: 1 to 100 RFC 4122 version-4 identifiers in the requested format",
            "count, version 4, variant \"RFC 4122\" and the format flags used",
            "generated_at, source and the delivery receipt"
          ],
          "not_included": [
            "no UUID version 1, 3, 5 or 7, no ULID and no name-based UUID",
            "no registry check, no reservation and no persistence: uniqueness is probabilistic",
            "no cryptographic key material beyond the 122 random bits of each UUID",
            "no storage and no logging of the generated values"
          ],
          "source": "crypto.getRandomValues inside this Worker; no upstream call",
          "live_call_semantics": "count, uppercase, braces and hyphens are validated before payment verification. A missing count defaults to 1; a count outside 1-100 and a non-boolean flag are 400 and no payment is requested. A bare GET /uuid is 402 so a catalogue can probe the price."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/uuid",
            "params": {
              "count": "optional. Integer 1-100, default 1.",
              "uppercase": "optional. true or false, default false.",
              "braces": "optional. true or false, default false (wrap each value in { }).",
              "hyphens": "optional. true or false, default true (false removes the dashes)."
            },
            "body": "none",
            "note": "A bare GET /uuid is 402. With a payment header, a count outside 1-100 or a non-boolean flag is 400 and no payment is requested."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-uuid\"",
              "schema_version": "number",
              "count": "number — number of identifiers returned",
              "uuids": "string[] — the generated identifiers",
              "version": "number — 4",
              "variant": "string — \"RFC 4122\"",
              "format": "{ uppercase, braces, hyphens }",
              "source": "string — crypto.getRandomValues, no external call",
              "generated_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no UUID is generated)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /uuid — up to 100 version-4 identifiers",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The identifiers are generated for this one response and are not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/uuid?count=2'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/uuid?count=2'   -> 200 with two version-4 UUIDs",
          "response_example": "{\n  \"count\": 2, \"version\": 4, \"variant\": \"RFC 4122\",\n  \"uuids\": [\"3f2b1c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d\", \"…\"]\n}",
          "note": "Values are illustrative; each call generates new identifiers."
        },
        "listing_notes": {
          "resource_type": "Plain GET with optional query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /random returns random strings or numbers, GET /dice rolls dice and GET /pick chooses an item; this route generates UUID version 4 identifiers with the RFC 4122 version and variant bits set and makes no external request.",
          "price": "The 402 response always carries UUID_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "uuid",
            "guid",
            "uuid v4",
            "identifier",
            "random",
            "rfc 4122",
            "utility"
          ],
          "claims": "Describe only the identifiers this Worker generates. Do not claim global uniqueness, reservation or persistence, and state that nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-idn-check",
        "schema_version": 1,
        "title": "IDN and look-alike host check in one GET: raw authority, decoded Unicode host, scripts and skeleton",
        "what_it_is": "One GET reads one absolute http(s) URL twice: the raw authority as supplied (before URL normalization) and the WHATWG-parsed ASCII host, whose punycode (xn--) labels are decoded back to Unicode with RFC 3492. It reports the labels, the scripts present, mixed_script, invisible and bidirectional control characters in the raw authority, zero_width, whether NFKC changes the host, the confusable characters it recognises, a skeleton, and — when expected is supplied — the expected ASCII host and skeleton, expected_match, skeleton_match and homograph_suspect. Nothing is fetched, resolved or stored.",
        "when_to_buy": "Buy one call before an agent follows, fetches or pays a URL it received from a catalogue, an email or another agent, when it needs to see the characters the URL parser hides: a Cyrillic or Greek letter inside a Latin domain, a zero-width character, or a punycode label that hides its Unicode form. It reports structure; it does not certify the destination.",
        "subject": {
          "what_is_delivered": [
            "ascii_host (WHATWG-parsed punycode host) and unicode_host (xn-- labels decoded with RFC 3492)",
            "labels with their ascii, unicode, punycode flag, decode_error and scripts",
            "scripts, mixed_script, controls (index, codepoint, name, zero_width or bidi), zero_width and nfkc_changed",
            "confusables, skeleton, decode_error and notes",
            "with expected: expected{ascii,skeleton}, expected_match, skeleton_match and homograph_suspect"
          ],
          "not_included": [
            "no fetch, DNS lookup, reputation check or blocklist lookup",
            "no claim that the URL is safe, trusted or not phishing",
            "no full UTS #39 confusable table and no eTLD+1/PSL handling: the skeleton is a small heuristic",
            "no history and no storage of the URL or of the result"
          ],
          "source": "WHATWG URL parser, an RFC 3492 decoder and a small script/confusable table inside this Worker; no upstream call",
          "live_call_semantics": "A missing url is 402 without a payment header (catalogue probe) and 400 with one. An invalid URL, a non-http(s) scheme, a missing host, userinfo, an over-long url or an invalid expected are 400 before payment verification. A punycode label that cannot be decoded is still a 200 with decode_error:true."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/idn-check",
            "params": {
              "url": "required. One absolute http(s) URL, at most 2048 characters.",
              "expected": "optional. A domain or an absolute http(s) URL to compare against, e.g. paypal.com. When omitted, the comparison fields are null."
            },
            "body": "none",
            "note": "url is validated before payment: invalid, non-http(s), hostless and userinfo-bearing URLs are 400. A bare GET /idn-check is 402 so a catalogue can probe the price."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-idn-check\"",
              "schema_version": "number",
              "input": "{ url, expected } — the trimmed inputs as received",
              "ascii_host": "string — the WHATWG-parsed ASCII/punycode host",
              "unicode_host": "string|null — xn-- labels decoded with RFC 3492; null when decoding failed",
              "labels": "array — { index, ascii, unicode, is_punycode, decode_error, scripts }",
              "scripts": "string[] — scripts of the letters in the decoded host (Latin, Cyrillic, Han, … or Unknown)",
              "mixed_script": "boolean — more than one non-Unknown script among the host letters",
              "controls": "array — { index, codepoint, name, kind: zero_width|bidi } in the raw authority",
              "zero_width": "boolean — any zero-width or soft-hyphen character in the raw authority",
              "nfkc_changed": "boolean — NFKC changes the raw host",
              "confusables": "array — { index, char, codepoint, skeleton, name } from the small confusable table",
              "skeleton": "string|null — NFKC plus the confusable table, lowercased; null when decoding failed",
              "expected": "{ ascii, skeleton }|null — null when expected was omitted",
              "expected_match": "boolean|null — canonical ASCII host equality",
              "skeleton_match": "boolean|null — skeleton equality; null without expected or when a skeleton is unavailable",
              "homograph_suspect": "boolean|null — true only when skeleton_match is true and expected_match is false",
              "decode_error": "boolean — a punycode label could not be decoded",
              "notes": "string[] — limits of the report and why fields are null",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no URL is parsed)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /idn-check — one URL and one optional expected host",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The URL and the result are used for this one response and are not stored."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/idn-check?url=https%3A%2F%2Fexample.com%2F&expected=example.com'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/idn-check?url=https%3A%2F%2Fexample.com%2F&expected=example.com'   -> 200 with the structural report",
          "response_example": "{\n  \"ascii_host\": \"xn--pypal-4ve.com\", \"unicode_host\": \"pаypal.com\",\n  \"scripts\": [\"Latin\", \"Cyrillic\"], \"mixed_script\": true, \"zero_width\": false,\n  \"skeleton\": \"paypal.com\", \"expected_match\": false, \"skeleton_match\": true,\n  \"homograph_suspect\": true, \"decode_error\": false\n}",
          "note": "The example uses a Cyrillic a (U+0430). A homograph_suspect is a heuristic, not a phishing verdict."
        },
        "listing_notes": {
          "resource_type": "Plain GET with two query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /url returns parsed parts of the URL but only the normalized host, never the raw authority, scripts, controls or a skeleton. GET /ip and GET /domain-age inspect an address or a registration date and do not decode punycode or compare an expected host. This route is the only one that keeps the raw authority and the RFC 3492 decoding side by side and makes no external request.",
          "price": "The 402 response always carries IDN_CHECK_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "idn",
            "punycode",
            "homograph",
            "unicode",
            "url",
            "zero width",
            "mixed script"
          ],
          "claims": "Describe only the structure returned by this Worker. Do not claim that a URL is safe, trusted or not phishing, and state that homograph_suspect is a skeleton heuristic with a small confusable table."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-text-width",
        "schema_version": 1,
        "title": "Display width and grapheme clusters for Japanese and emoji, with grapheme-safe truncation",
        "what_it_is": "One POST takes one text string and returns its grapheme clusters, code points, UTF-16 units, the display width under a stated East Asian Width rule (W/F=2, H/Na/N=1, A=ambiguous), width with ambiguous counted as 2, the counts by class, lines and the longest line. With max_width it also returns fits, truncated, truncated_text (no ellipsis), truncated_width, remaining_width and graphemes_kept, and it only ever cuts on a grapheme boundary, so combining marks, ZWJ emoji sequences and flags stay whole. Everything is computed inside this Worker; the text is not fetched, stored or logged.",
        "when_to_buy": "Buy one call when an agent must fit Japanese, half-width kana or emoji into a fixed-width field, table, message or report, or must explain why String.length is the wrong measure. It distinguishes ｱｲｳ (3 code points, width 3) from アイウ (3 code points, width 6), counts a family emoji as one grapheme instead of 11 UTF-16 units, and truncates without splitting a combining sequence, a ZWJ emoji or a flag.",
        "subject": {
          "what_is_delivered": [
            "graphemes, code_points and utf16_units",
            "width and width_ambiguous_2, plus wide / narrow / ambiguous / zero_width / control counts",
            "lines and max_line_width, rules_version and computed_at",
            "with max_width: fits, truncated, truncated_text, truncated_width, remaining_width and graphemes_kept",
            "delivery: the payer and the payment receipt"
          ],
          "not_included": [
            "no promise that a terminal or font aligns every column: the width is this service's stated rule",
            "no East Asian width setting of the caller's terminal, no font metrics and no rendered image",
            "no dictionary word count, language detection or normalization",
            "no storage, no history and no return of the input text"
          ],
          "source": "Intl.Segmenter grapheme segmentation in the Workers runtime, plus a bundled East Asian Width 18.0.0 table and this service's emoji-presentation rule; no upstream call",
          "live_call_semantics": "The body is parsed, validated and measured before payment verification. Missing/empty text, text over 64 KiB UTF-8, an invalid max_width or an invalid ambiguous is 400 and no payment is requested. Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/text-width",
            "content_type": "application/json",
            "body": {
              "text": "required. A string of at most 65536 bytes in UTF-8. An empty string is 400 with a payment header (402 without one).",
              "max_width": "optional integer 1..100000. When present, the response also reports the grapheme-safe truncation.",
              "ambiguous": "optional 1 or 2, default 1. Controls how East Asian Width A is counted; width_ambiguous_2 is always returned."
            },
            "note": "A bare GET /text-width is 402 so a catalogue can probe the price. GET /text-width?preview=1 is a free list of the fields, limits and width rule. With a payment header and no text the POST is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-text-width\"",
              "schema_version": "number",
              "graphemes": "number — grapheme clusters",
              "code_points": "number — Unicode code points",
              "utf16_units": "number — UTF-16 code units (String.length)",
              "width": "number — display width under the stated rule",
              "width_ambiguous_2": "number — the same width with East Asian Width A counted as 2",
              "wide": "number — graphemes with width 2",
              "narrow": "number — graphemes with width 1 and not ambiguous",
              "ambiguous": "number — graphemes whose base is East Asian Width A",
              "zero_width": "number — non-control graphemes with width 0",
              "control": "number — control graphemes (line breaks included)",
              "lines": "number — lines split on CRLF, CR or LF",
              "max_line_width": "number — width of the widest line",
              "rules_version": "string — \"eaw-18.0.0\"",
              "ambiguous_width_used": "number — 1 or 2",
              "max_width": "number — only when you passed it",
              "fits": "boolean — only when max_width was passed",
              "truncated": "boolean — only when max_width was passed",
              "truncated_text": "string — the prefix that fits, with no ellipsis; only when max_width was passed",
              "truncated_width": "number — width of truncated_text",
              "remaining_width": "number — max_width minus truncated_width",
              "graphemes_kept": "number — grapheme clusters kept in truncated_text",
              "rules": "string — the exact width and truncation rule",
              "note": "string — the no-terminal-guarantee and no-storage note",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no text is processed)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /text-width — one text, one measurement",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The text you pass is measured for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST 'https://<worker-host>/text-width' -H 'content-type: application/json' --data '{\"text\":\"日本語\",\"max_width\":5}'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -X POST 'https://<worker-host>/text-width' -H 'content-type: application/json' -H 'PAYMENT-SIGNATURE: <base64 payload>' --data '{\"text\":\"日本語\",\"max_width\":5}'   -> 200 with the measurement",
          "response_example": "{\n  \"graphemes\": 3, \"code_points\": 3, \"utf16_units\": 3,\n  \"width\": 6, \"width_ambiguous_2\": 6, \"wide\": 3, \"narrow\": 0, \"ambiguous\": 0,\n  \"lines\": 1, \"max_line_width\": 6, \"rules_version\": \"eaw-18.0.0\",\n  \"max_width\": 5, \"fits\": false, \"truncated\": true, \"truncated_text\": \"日本\",\n  \"truncated_width\": 4, \"remaining_width\": 1, \"graphemes_kept\": 2\n}",
          "note": "The body is JSON, so no percent-encoding is needed and the text can be up to 64 KiB. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "POST with a JSON body; no account, no API key, no KYC.",
          "distinct_from_siblings": "GET /text-stats returns code points, words, lines and UTF-8 bytes only: it does not return grapheme clusters, display width or a grapheme-safe truncation. This route measures the rendered width and cuts on grapheme boundaries.",
          "price": "The 402 response always carries TEXT_WIDTH_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "display width",
            "grapheme",
            "east asian width",
            "emoji",
            "japanese",
            "truncate",
            "wcwidth",
            "unicode"
          ],
          "claims": "Describe only the measurement this Worker performs. State that the width is this service's rule and that a terminal or font may render differently; do not claim that columns are guaranteed to align, and state that nothing is stored."
        },
        "delivery": {
          "method": "POST",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-mime",
        "schema_version": 1,
        "title": "MIME type in one GET: extension to media type, charset and compression",
        "what_it_is": "One GET maps one file extension (ext=json, with or without the leading dot) or one media type (type=application/json) to the canonical media type, its known extensions, the usual charset, whether it is usually compressed in transit, and its top-level category. The table is bundled inside this Worker; nothing is fetched, stored or logged. An unknown extension or type is still a 200 with found=false.",
        "when_to_buy": "Buy one call when an agent has to set a Content-Type, validate an upload, map a file extension to a media type, or explain why .jsonl is application/x-ndjson, without shipping and maintaining a lookup table. It answers about the type itself, not about the contents of a particular file.",
        "subject": {
          "what_is_delivered": [
            "lookup (extension or type) and the normalised query",
            "found, and when found: media_type, extensions[], charset, compressible and category",
            "the table size (types and extension keys)",
            "source, checked_at and the delivery receipt"
          ],
          "not_included": [
            "no file contents, sniffing, decoding or validation of an actual file",
            "no guarantee that a server sends this charset or that a stored file uses it",
            "no vendor-specific or unregistered types beyond the bundled table",
            "no storage and no logging of the query"
          ],
          "source": "bundled IANA media-type subset inside this Worker; no upstream call",
          "live_call_semantics": "ext and type are validated before payment verification. Passing both, passing neither with a payment header, or passing a malformed value is 400 and no payment is requested. A bare GET /mime is 402 so a catalogue can probe the price. Unknown but well-formed values are 200 with found=false."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/mime",
            "params": {
              "ext": "One of ext or type. A file extension, 1-32 characters, case-insensitive, with or without a leading dot, e.g. json or .json.",
              "type": "One of ext or type. A media type such as application/json; parameters after ';' are ignored. At most 128 characters."
            },
            "note": "A bare GET /mime is 402. With a payment header, a missing, duplicated or malformed parameter is 400 and no payment is requested. A well-formed unknown value is 200 with found=false."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string - \"x402-mime\"",
              "schema_version": "number",
              "lookup": "\"extension\" or \"type\"",
              "query": "{ ext } or { type } - the normalised query",
              "found": "boolean - false for a well-formed value outside the bundled table",
              "media_type": "string - only when found",
              "extensions": "string[] - known extensions for the media type; only when found",
              "charset": "string|null - the usual charset; only when found",
              "compressible": "boolean - usually compressed in transit; only when found",
              "category": "string - top-level type, e.g. \"application\"; only when found",
              "source": "string - bundled table, no external call",
              "table": "{ types, extensions } - size of the bundled table",
              "note": "string - the charset/compressible and no-storage note",
              "checked_at": "string - ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no lookup is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /mime - one extension or one media type",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The query is looked up for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/mime?ext=json'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/mime?ext=json'   -> 200 with the media type",
          "response_example": "{\n  \"lookup\": \"extension\", \"query\": { \"ext\": \"json\" }, \"found\": true,\n  \"media_type\": \"application/json\", \"extensions\": [\"json\"], \"charset\": \"utf-8\",\n  \"compressible\": true, \"category\": \"application\", \"table\": { \"types\": 79, \"extensions\": 102 }\n}",
          "note": "ext and type are alternatives. The example is illustrative; the table size comes from the bundled table."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one of two query parameters; no POST, no body, no account.",
          "distinct_from_siblings": "GET /base64 and GET /charset transform a value; GET /barcode checks a check digit. This route only maps a file extension or a media type to the bundled table and makes no external request.",
          "price": "The 402 response always carries MIME_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "mime",
            "media type",
            "content-type",
            "extension",
            "charset",
            "compressible",
            "utility"
          ],
          "claims": "Describe only the bundled table and the normalisation this Worker performs. Do not claim that a file's contents were inspected or that a server sends this charset, and state that nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": true
        }
      },
      {
        "product_id": "x402-isin-check",
        "schema_version": 1,
        "title": "ISIN check digit in one GET: country, NSIN and the ISO 6166 check",
        "what_it_is": "One GET takes a 12-character ISIN, normalises case and separators, expands the letters to digits and applies the ISO 6166 check digit. It returns valid, the supplied and expected check digit, the checksum total, the country code and its name, and the 9-character NSIN. The algorithm is bundled; no registry is queried, nothing is stored or logged.",
        "when_to_buy": "Buy one call when an agent has to reject a mistyped ISIN before storing or forwarding it, or has to split an ISIN into country and NSIN without shipping the check-digit code. It checks the identifier's form, not whether the security exists.",
        "subject": {
          "what_is_delivered": [
            "normalized ISIN, valid and the failure reason",
            "country_code, country_name and country_known",
            "nsin, supplied check digit and expected check digit",
            "checksum_total and checksum_remainder",
            "algorithm, format, checked_at and the delivery receipt"
          ],
          "not_included": [
            "no registry lookup: existence, issuer name, listing or status are not checked",
            "no price, rating or corporate-action data",
            "no guarantee that a checksum-valid identifier was ever issued",
            "no storage and no logging of the query"
          ],
          "source": "ISO 6166 check-digit algorithm inside this Worker; no upstream call",
          "live_call_semantics": "The input is validated before payment verification. A missing q, an over-long q, a wrong length, a non-alphanumeric character, a non-letter country prefix or a non-digit check character is 400 and no payment is requested. A well-formed ISIN whose check digit does not match is 200 with valid=false. A bare GET /isin is 402."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/isin",
            "params": {
              "q": "The ISIN, exactly 12 letters/digits after removing spaces and hyphens; case-insensitive. At most 64 characters before normalisation."
            },
            "note": "A bare GET /isin is 402. With a payment header, malformed input is 400 and no payment is requested. A well-formed ISIN with a wrong check digit is 200 with valid=false."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string - \"x402-isin-check\"",
              "schema_version": "number",
              "query": "{ q } - the raw input",
              "normalized": "string - uppercased, spaces and hyphens removed",
              "valid": "boolean - the check digit matches",
              "reason": "\"check_digit_mismatch\" or null",
              "country_code": "string - first two letters",
              "country_name": "string|null - English name from Intl.DisplayNames",
              "country_known": "boolean - false when the region name is unknown",
              "nsin": "string - characters 3-11 (the national securities identifying number)",
              "check_digit": "string - the supplied 12th character",
              "expected_check_digit": "string - the digit the algorithm expects",
              "checksum_total": "number - Luhn sum over the expanded identifier",
              "checksum_remainder": "number - checksum_total % 10; 0 means the check passes",
              "algorithm": "string - the ISO 6166 rule used",
              "format": "{ length, structure }",
              "note": "string - the no-registry/no-storage note",
              "checked_at": "string - ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description and its example (no check is run)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /isin - one identifier",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The identifier is checked for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/isin?q=US0378331005'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/isin?q=US0378331005'   -> 200",
          "response_example": "{\n  \"normalized\": \"US0378331005\", \"valid\": true, \"country_code\": \"US\",\n  \"country_name\": \"United States\", \"nsin\": \"037833100\",\n  \"check_digit\": \"5\", \"expected_check_digit\": \"5\", \"checksum_remainder\": 0\n}",
          "note": "The example is illustrative; the amount always comes from the 402 response."
        },
        "listing_notes": {
          "resource_type": "Plain GET with one query parameter; no POST, no body, no account.",
          "distinct_from_siblings": "GET /iban checks a bank account with MOD-97; GET /lei looks a legal entity up in GLEIF; GET /isin checks an ISO 6166 securities identifier locally and makes no external request.",
          "price": "The 402 response always carries ISIN_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "isin",
            "iso 6166",
            "check digit",
            "luhn",
            "securities",
            "identifier",
            "validation",
            "finance"
          ],
          "claims": "Describe only the check digit and the split of the identifier. Do not claim that the security exists, is listed or is active, and state that no registry is queried and nothing is stored."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": true
        }
      },
      {
        "product_id": "x402-mojibake-triage",
        "schema_version": 1,
        "title": "Is this text mojibake? Which decoder broke it, and can it be restored?",
        "what_it_is": "One POST takes one string you already received and returns a verdict (clean / suspect / confirmed / unknown), the evidence (U+FFFD positions, C1 controls, half-width katakana ratio, non-ASCII ratio, UTF-8 round-trip, hint match) and up to five ranked candidates. Each candidate names the recovered original encoding and the decoder that produced the text, a confidence, whether it is reversible, a sample of at most 120 graphemes and the reason. When the top candidate is both high-confidence and reversible, repaired carries the candidate repaired string; the input is never modified. v1 covers UTF-8 shown as CP1252/Latin-1 (the ãƒ†ã‚¹ãƒˆ shape), UTF-8 shown as CP932 (the 繧ｿ繧､繝ｫ shape) and CP932 shown as UTF-8 (U+FFFD, detection only). Everything runs inside this Worker: no URL fetch, no inference, no storage and no logging of the text.",
        "when_to_buy": "Buy one call when an agent, shell, log, CSV or API response hands you text that looks broken and you cannot tell whether the file is corrupt or only the display decoder is wrong. One call says which direction the damage runs, whether the bytes are recoverable, and shows a candidate repair, instead of burning tokens on guesses or installing iconv-lite or ftfy. It is not a promise that the original bytes are recovered.",
        "subject": {
          "what_is_delivered": [
            "verdict: clean, suspect, confirmed or unknown",
            "evidence: replacement_chars (count and UTF-16 positions), c1_controls (count and positions), halfwidth_katakana_ratio, non_ascii_ratio, utf8_roundtrip_ok, hint_match",
            "candidates[]: from_encoding, to_encoding, direction, confidence (0-1), reversible, sample (at most 120 graphemes), reason; ranked, at most 5",
            "repaired: only when the top candidate is reversible and confidence >= 0.85; the input is not overwritten",
            "rules_version, computed_at and delivery (payer and payment receipt)"
          ],
          "not_included": [
            "no proof that repaired equals the original bytes: it is a candidate, and short or mixed-ASCII strings can be misread",
            "no repair of CP932-to-UTF-8 damage: U+FFFD means the original bytes were already discarded",
            "no URL-decoding or HTML-entity double-decoding: those belong to /url and /markdown",
            "no storage, no history, no logging of the text and no external fetch"
          ],
          "source": "String scanning plus TextDecoder inside the Workers runtime; the CP932 reverse map is built lazily from a single Shift_JIS decode of every valid two-byte pair on first use and is not an external service",
          "live_call_semantics": "The body is parsed, validated and triaged before payment verification. Missing or empty text, text over 64 KiB UTF-8 and an invalid hint are 400 and no payment is requested (a catalogue probe without a payment header gets 402 for missing text). Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/mojibake",
            "content_type": "application/json",
            "body": {
              "text": "required. The string you received, at most 65536 bytes in UTF-8. Empty is 400 with a payment header (402 without one).",
              "hint": "optional. One of utf-8, shift_jis, euc-jp, cp1252, latin1. It only affects hint_match; it does not force a candidate."
            },
            "note": "A bare GET /mojibake is 402 so a catalogue can probe the price. GET /mojibake?preview=1 is a free list of the fields, limits and scope. With a payment header and no text the POST is 400."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-mojibake-triage\"",
              "schema_version": "number",
              "verdict": "string — clean | suspect | confirmed | unknown",
              "evidence": "{ replacement_chars: {count, positions, positions_truncated}, c1_controls: {count, positions, positions_truncated}, halfwidth_katakana_ratio, non_ascii_ratio, utf8_roundtrip_ok, hint_match }",
              "candidates": "[{ from_encoding, to_encoding, direction, confidence, reversible, sample, reason }] — ranked, at most 5",
              "repaired": "string — only when the top candidate is reversible and confidence >= 0.85",
              "hint": "string|null",
              "rules_version": "string — \"mojibake-1.0.0\"",
              "rules": "string — the exact detection and non-promise rules",
              "disclaimer": "string — 復元は候補であり元バイト列の証明ではない",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/mojibake?preview=1",
            "returns": "fields, limits and scope only (no text is evaluated)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "1000",
          "asset_decimals": 6,
          "amount_usd": 0.001,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /mojibake — one string, one triage",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The text you pass is triaged for this one response and is not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST 'https://<worker-host>/mojibake' -H 'content-type: application/json' --data '{\"text\":\"ãƒ†ã‚¹ãƒˆ\",\"hint\":\"cp1252\"}'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -X POST 'https://<worker-host>/mojibake' -H 'content-type: application/json' -H 'PAYMENT-SIGNATURE: <base64 payload>' --data '{\"text\":\"ãƒ†ã‚¹ãƒˆ\",\"hint\":\"cp1252\"}'   -> 200 with the triage",
          "response_example": "{\n  \"verdict\": \"confirmed\",\n  \"evidence\": { \"replacement_chars\": {\"count\":0,\"positions\":[]}, \"halfwidth_katakana_ratio\": 0,\n                \"non_ascii_ratio\": 1, \"utf8_roundtrip_ok\": true, \"hint_match\": true },\n  \"candidates\": [ { \"from_encoding\": \"utf-8\", \"to_encoding\": \"cp1252\", \"direction\": \"utf-8_to_cp1252\",\n                    \"confidence\": 0.97, \"reversible\": true, \"sample\": \"テスト\" } ],\n  \"repaired\": \"テスト\", \"rules_version\": \"mojibake-1.0.0\",\n  \"disclaimer\": \"復元は候補であり元バイト列の証明ではない。\"\n}",
          "note": "The body is JSON, so no percent-encoding is needed and the text can be up to 64 KiB. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "POST with a JSON body; no account, no API key, no KYC.",
          "distinct_from_siblings": "GET /charset fetches a URL and reports the page encoding; it does not accept a string you already hold. GET /text-stats and POST /text-width measure text but do not diagnose a decoder mismatch or a reversible repair. Tanod /v1/text/unicode covers invisible, bidi and look-alike characters only.",
          "price": "The 402 response always carries MOJIBAKE_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "mojibake",
            "文字化け",
            "encoding",
            "cp932",
            "shift_jis",
            "cp1252",
            "latin1",
            "utf-8",
            "repair"
          ],
          "claims": "Say that a candidate is a hypothesis, that repaired is not proof of the original bytes, and that the CP932-to-UTF-8 direction (U+FFFD) is never repaired. State that nothing is stored and no URL is fetched."
        },
        "delivery": {
          "method": "POST",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-delivery-validation",
        "schema_version": 1,
        "title": "Did the other AI deliver what you ordered? Accept or reject the delivered items against your stated rules",
        "what_it_is": "One POST takes the delivered items (an array of JSON objects, at most 2,000) and the acceptance rules you set, then returns accepted or rejected with one check per rule and the issues that failed. Five rules only: count (min/max/expected), required fields, unique_by (one field or a composite key), sum (field, expected, tolerance) and types. Values are never echoed; each issue carries a code, the item index and a field name. It checks the rules you declared, not whether the content is true or complete. Everything is computed inside this Worker; the items are not fetched, stored or logged.",
        "when_to_buy": "Buy one call when an agent has received a batch of records from another AI or a vendor and must decide, before accepting it, whether the count, the required fields, the key uniqueness, a numeric total and the declared types match the order. It returns the failing item numbers and field names without copying the values into the answer, so the acceptance report can be forwarded without leaking the payload.",
        "subject": {
          "what_is_delivered": [
            "ok and verdict (accepted or rejected)",
            "checks: one entry per rule with name, ok and a compact detail",
            "issues: code, item index and field name (never the value), capped at 200 with issues_truncated",
            "summary: items, rules_applied, failed_checks and issue_count",
            "checker, note, computed_at and delivery (payer and payment receipt)"
          ],
          "not_included": [
            "no judgement that the content is true, correct, complete or business-valid",
            "no normalization: \"A\" and \"a\", 1 and \"1\", \"  x\" and \"x\" are different values for unique_by",
            "no regex, expression language, code execution or custom rule callbacks",
            "no storage, no history and no return of the input values"
          ],
          "source": "Rule evaluation in this Worker (count, required, unique_by, sum and types); no upstream call and no model",
          "live_call_semantics": "The body is parsed and validated before payment verification. Invalid JSON, missing rules and malformed count/required/unique_by/sum/types are 400 and no payment is requested. A well-formed request that fails the rules is still a paid 200 with verdict=rejected. Nothing leaves the Worker."
        },
        "io": {
          "input": {
            "method": "POST",
            "path": "/validate-delivery",
            "content_type": "application/json",
            "body": {
              "items": "required. An array of JSON objects, at most 2000 items. Non-object items are 400 before payment.",
              "rules": "required. At least one of count {min?, max?, expected?}, required [field...], unique_by (field or [field...]), sum {field, expected, tolerance?} and types {field: string|number|integer|boolean|object|array}."
            },
            "note": "A bare GET /validate-delivery is 402 so a catalogue can probe the price. GET /validate-delivery?preview=1 is a free list of the five rules, the input shape, the limits and the output fields. With a payment header and an invalid body the POST is 400 before verification."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-delivery-validation\"",
              "schema_version": "number",
              "ok": "boolean — true when every applied rule passed",
              "verdict": "string — \"accepted\" or \"rejected\"",
              "checks": "[{name, ok, detail}] — one entry per applied rule",
              "issues": "[{code, item, field?}] — failing item index and field name; values are never returned",
              "issues_truncated": "boolean — true when the 200-issue cap was reached",
              "summary": "{items, rules_applied, failed_checks, issue_count}",
              "checker": "{name:\"x402-delivery-validation\", version:\"dv-0.1.0\", deterministic:true, network:false}",
              "note": "string — the rules-only, not-truth note",
              "computed_at": "string — ISO 8601 timestamp",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/validate-delivery",
            "returns": "?preview=1: the rules, input shape and limits only (no items are evaluated)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one POST /validate-delivery — one delivery, one acceptance report",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "The items you pass are checked for this one response and are not stored or logged."
        },
        "purchase_example": {
          "step_1": "curl -i -X POST 'https://<worker-host>/validate-delivery' -H 'content-type: application/json' --data '{\"items\":[{\"id\":1,\"amount\":10}],\"rules\":{\"count\":{\"expected\":1},\"required\":[\"id\"],\"sum\":{\"field\":\"amount\",\"expected\":10}}}'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -X POST 'https://<worker-host>/validate-delivery' -H 'content-type: application/json' -H 'PAYMENT-SIGNATURE: <base64 payload>' --data '{\"items\":[{\"id\":1,\"amount\":10}],\"rules\":{\"count\":{\"expected\":1},\"required\":[\"id\"],\"sum\":{\"field\":\"amount\",\"expected\":10}}}'   -> 200 with the acceptance report",
          "response_example": "{\n  \"ok\": true, \"verdict\": \"accepted\",\n  \"checks\": [ { \"name\": \"count\", \"ok\": true, \"detail\": { \"observed\": 1 } } ],\n  \"issues\": [], \"issues_truncated\": false,\n  \"summary\": { \"items\": 1, \"rules_applied\": [\"count\"], \"failed_checks\": [], \"issue_count\": 0 },\n  \"checker\": { \"name\": \"x402-delivery-validation\", \"version\": \"dv-0.1.0\" }\n}",
          "note": "The body is JSON and the items can be up to 2,000. The example is illustrative."
        },
        "listing_notes": {
          "resource_type": "POST with a JSON body; no account, no API key, no KYC.",
          "distinct_from_siblings": "POST /compat checks one JSON value against one JSON Schema fragment (types, required, constraints). This route judges a whole batch against acceptance rules the buyer declares — count, required, composite-key uniqueness, a numeric sum and types — and returns the failing item numbers without returning any value. POST /jsonl checks JSONL lines; GET /text-width measures display width.",
          "price": "The 402 response always carries VALIDATE_DELIVERY_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "delivery",
            "validation",
            "acceptance",
            "json",
            "agent",
            "quality",
            "count",
            "required",
            "unique",
            "sum"
          ],
          "claims": "Describe only the declared-rule check this Worker performs. State that it does not verify truth or completeness, that values are never returned, and that nothing is stored."
        },
        "delivery": {
          "method": "POST",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": false,
          "bundled_data": false
        }
      },
      {
        "product_id": "x402-candles-ohlcv",
        "schema_version": 1,
        "title": "Crypto OHLCV candles for one pair, newest first, with the exchange source and fetch time",
        "what_it_is": "One GET returns up to 300 OHLCV candles from Coinbase Exchange for one pair and one granularity: the candle time (ISO-8601 UTC and unix seconds), open, high, low, close and volume, newest first. The response names the request URL, the HTTP status, the latency and the time it was fetched.",
        "when_to_buy": "Buy one call when a chart, a backtest, a volatility check or an agent needs recent candles for one pair without signing up for an exchange API key or maintaining market-data plumbing.",
        "subject": {
          "what_is_delivered": [
            "candles[]: newest first, each with unix, time, open, high, low, close and volume",
            "count, requested_limit, pair and granularity_seconds",
            "source: Coinbase Exchange API URL, HTTP status, latency and fetched_at"
          ],
          "not_included": [
            "no trades, no order book and no indicators",
            "no aggregation across exchanges: the values are Coinbase Exchange's",
            "no archive: one read per paid call, nothing stored or cached"
          ],
          "source": "Coinbase Exchange public candles API (https://api.exchange.coinbase.com), free and keyless",
          "live_call_semantics": "The exchange is read once after payment with a 6 second cutoff. A non-2xx response or an unreadable body is 502 with charged:false; an invalid pair, granularity or limit is 400 before payment."
        },
        "io": {
          "input": {
            "method": "GET",
            "path": "/candles",
            "params": {
              "pair": "optional. BASE-QUOTE, e.g. BTC-USD (default BTC-USD).",
              "granularity": "optional. One of 60, 300, 900, 3600, 21600, 86400 seconds; default 3600.",
              "limit": "optional. 1 to 300; default 24."
            },
            "body": "none",
            "note": "Bad input is refused with 400 before any payment is verified and before the exchange is read."
          },
          "output": {
            "content_type": "application/json",
            "encoding": "UTF-8",
            "shape": {
              "product_id": "string — \"x402-candles-ohlcv\"",
              "schema_version": "number",
              "pair": "string",
              "granularity_seconds": "number",
              "requested_limit": "number",
              "count": "number",
              "candles": "[ { unix, time, open, high, low, close, volume } ] — newest first",
              "source": "{ name, api, request_url, fetched_at, http_status, latency_ms }",
              "notes": "[ string ]",
              "delivery": "{ delivered_at, payer, payment: { transaction, network, scheme, amount_atomic, asset, pay_to } }"
            }
          },
          "free_sample": {
            "method": "GET",
            "path": "/",
            "returns": "this product description (no candle data is given away)"
          },
          "health": {
            "method": "GET",
            "path": "/health",
            "returns": "{ status, service, time }"
          }
        },
        "price": {
          "amount_atomic": "5000",
          "asset_decimals": 6,
          "amount_usd": 0.005,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "asset_symbol": "USDC",
          "network": "eip155:8453",
          "scheme": "exact",
          "per": "one GET /candles — one pair and granularity, one delivery",
          "note": "The 402 response always carries the current amount."
        },
        "payment": {
          "protocol": "x402",
          "x402_version": 2,
          "asset_transfer_method": "eip3009",
          "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "max_timeout_seconds": 60,
          "payment_header": "PAYMENT-SIGNATURE",
          "challenge_header": "PAYMENT-REQUIRED (base64 JSON: x402Version, error, resource{url,description,mimeType}, accepts[])",
          "settlement_receipt_header": "PAYMENT-RESPONSE (base64 SettlementResponse)",
          "verification": "The Worker POSTs the payment payload and the payment requirements to the facilitator /verify, then /settle. Signature verification is delegated to the facilitator; no keys are handled here.",
          "facilitator": "https://facilitator.payai.network",
          "terms_of_use": "Candle values come from Coinbase Exchange's public API and are served with their source and fetch time."
        },
        "purchase_example": {
          "step_1": "curl -i 'https://<worker-host>/candles?pair=BTC-USD&granularity=3600&limit=24'   -> 402, read the PAYMENT-REQUIRED header",
          "step_2": "decode the header, sign an exact eip3009 USDC transfer for accepts[0] with your x402 client",
          "step_3": "curl -s -H 'PAYMENT-SIGNATURE: <base64 payload>' 'https://<worker-host>/candles?pair=BTC-USD&granularity=3600&limit=24'   -> 200 with the candles",
          "response_example": "{\n  \"pair\": \"BTC-USD\", \"granularity_seconds\": 3600, \"count\": 24,\n  \"candles\": [ { \"unix\": 1792670400, \"time\": \"2026-10-22T12:00:00.000Z\",\n      \"open\": 81656.69, \"high\": 81816.21, \"low\": 81605.44, \"close\": 81746.7, \"volume\": 95.50529109 } ],\n  \"source\": { \"name\": \"Coinbase Exchange\", \"http_status\": 200, \"latency_ms\": 210 }\n}",
          "note": "pair, granularity and limit are query parameters, so an agent can call it as a plain GET."
        },
        "listing_notes": {
          "resource_type": "Plain GET with only optional query parameters, so a read-only probe that gets a 402 is enough to list it.",
          "distinct_from_siblings": "The other products report x402 market observations, DNS, or compute locally. This one returns exchange OHLCV.",
          "price": "The 402 response always carries CANDLES_PRICE_ATOMIC. product.json and this catalogue come from the same CONFIG.",
          "keywords": [
            "candles",
            "ohlcv",
            "crypto price",
            "market data",
            "bitcoin",
            "base"
          ],
          "claims": "Name Coinbase Exchange as the source and carry fetched_at. Do not describe the values as this service's own data."
        },
        "delivery": {
          "method": "GET",
          "content_type": "application/json",
          "one_call": true,
          "live_upstream_call": true,
          "bundled_data": false
        },
        "limits": {
          "min_limit": 1,
          "max_limit": 300,
          "timeout_ms": 6000,
          "granularities": [
            60,
            300,
            900,
            3600,
            21600,
            86400
          ]
        }
      }
    ]
  },
  "already_paid": {
    "applies_when": "You already sent USDC on Base to pay_to and did not receive a delivery (for example because you did not read the 402 body). The payment is not lost and you do not need to pay again.",
    "no_402_body_required": true,
    "next_action": {
      "method": "POST",
      "path": "/credit/claim",
      "url": "https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim",
      "body": {
        "tx": "0x… (the 32-byte transaction hash of your USDC transfer on Base)"
      },
      "curl": "curl -sS -X POST 'https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim' -H 'content-type: application/json' -d '{\"tx\":\"0x<your tx hash>\"}'",
      "returns": "Exactly 0.01 USDC: 200 with the /digest delivery itself (credit_claim.delivery = \"digest_in_claim\"; no second call). Other amounts: 200 with credit_id and the exact next call (X-CREDIT: <credit_id> on a paid route). If the credit ledger cannot be written, a small claim still returns the /digest delivery itself (credit_claim.ledger = \"unavailable\"). No 402 body and no second payment are needed.",
      "idempotent": "A 0.01 USDC claim is delivered directly each time and stores nothing. For a pack or a micro balance, reporting the same tx again returns the same credit_id and does not issue a second balance."
    },
    "accepted_amounts": {
      "minimum_atomic": "10000",
      "minimum_usd": "0.01",
      "pack_atomic": "5000000",
      "pack_usd": "5",
      "rule": "Any USDC transfer to pay_to of at least 0.01 USDC is accepted. Exactly 0.01 USDC is delivered as one /digest delivery in the claim response (no credit id, no second call). Above 0.01 up to just under 5 USDC it becomes a pay-as-you-go balance charged at each route's own price with no per-call minimum. At 5 USDC or more it issues the 110-call pack with its 0.05 USDC per-call minimum."
    },
    "exact_0_01": {
      "route": "/digest",
      "price_atomic": "10000",
      "price_usd": "0.01",
      "after_claim": "POST https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim with {\"tx\":\"0x<your tx hash>\"} -> 200 with the /digest delivery itself",
      "note": "A 0.01 USDC transfer is enough: the claim response is the /digest delivery. No credit id and no second call are needed."
    },
    "spend_header": "X-CREDIT: <credit_id>",
    "product_page": "https://x402-catalog-history.ai-business-surface.workers.dev/credit"
  },
  "snapshot": {
    "id": "snap-f41b71f53b885be9",
    "kind": "fixed_snapshot",
    "generated_at": "2026-11-01T10:04:23.198Z",
    "first_observed_at": "2026-10-11T12:31:51.688Z",
    "last_observed_at": "2026-11-01T09:57:59.870Z",
    "cycles": 7605,
    "missing_cycles": 0,
    "note": "This Worker serves exactly this snapshot. Local observation continues, but this delivery does not change until a new snapshot is deployed. Compare id/generated_at/period before paying."
  },
  "data_period": {
    "first_observed_at": "2026-10-11T12:31:51.688Z",
    "last_observed_at": "2026-11-01T09:57:59.870Z",
    "cycles": 7605,
    "series_events": 7605
  },
  "data_summary": {
    "targets": 4,
    "cycles": 7605,
    "change_events": 2993,
    "total_misses": 0
  },
  "sample": {
    "note": "Newest change events, free. The full history including all events, the target list and the latest facts per target is at GET /history. Field-level before/after values, the intervals where observation stopped and the missing cycles are at GET /changes (a period diff over the same store).",
    "events": [
      {
        "observed_at": "2026-11-01T09:57:59.870Z",
        "observed_at_jst": "2026-11-01T18:57:59.870+09:00",
        "target_id": "facilitator.supported",
        "change_status": "unchanged",
        "changes": []
      },
      {
        "observed_at": "2026-11-01T09:57:59.870Z",
        "observed_at_jst": "2026-11-01T18:57:59.870+09:00",
        "target_id": "facilitator.pricing",
        "change_status": "unchanged",
        "changes": []
      },
      {
        "observed_at": "2026-11-01T09:57:59.870Z",
        "observed_at_jst": "2026-11-01T18:57:59.870+09:00",
        "target_id": "tracked.resources",
        "change_status": "changed",
        "changes": []
      }
    ],
    "change_log_preview": {
      "note": "Newest field-level changes, free. GET /changes returns the same shape for a period you choose, plus the outages and the missing cycles.",
      "newest": [
        {
          "cycle": 787,
          "observed_at": "2026-10-20T17:13:00.304Z",
          "observed_at_jst": "2026-10-21T02:13:00.304+09:00",
          "target_id": "catalog.resources",
          "field": "pageNetworkCounts",
          "kind": "changed",
          "from": {
            "eip155:1329": 1,
            "eip155:8453": 94,
            "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": 5
          },
          "to": {
            "eip155:1329": 1,
            "eip155:8453": 95,
            "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": 4
          }
        },
        {
          "cycle": 787,
          "observed_at": "2026-10-20T17:13:00.304Z",
          "observed_at_jst": "2026-10-21T02:13:00.304+09:00",
          "target_id": "catalog.resources",
          "field": "pageAssetCounts",
          "kind": "changed",
          "from": {
            "0x833589fCD6": 94,
            "0xe15fC38F6D": 1,
            "EPjFWdd5Aufq": 5
          },
          "to": {
            "0x833589fCD6": 95,
            "0xe15fC38F6D": 1,
            "EPjFWdd5Aufq": 4
          }
        },
        {
          "cycle": 787,
          "observed_at": "2026-10-20T17:13:00.304Z",
          "observed_at_jst": "2026-10-21T02:13:00.304+09:00",
          "target_id": "catalog.resources",
          "field": "pageMaxTimeoutCounts",
          "kind": "changed",
          "from": {
            "60": 27,
            "120": 67,
            "300": 6
          },
          "to": {
            "60": 26,
            "120": 64,
            "300": 10
          }
        },
        {
          "cycle": 787,
          "observed_at": "2026-10-20T17:13:00.304Z",
          "observed_at_jst": "2026-10-21T02:13:00.304+09:00",
          "target_id": "catalog.resources",
          "field": "pageHosts",
          "kind": "changed",
          "from": {
            "agent-kiosk.vercel.app": {
              "resources": 24,
              "priceBands": {
                "0.005-0.01": 3,
                "0.01-0.05": 13,
                "0.05-0.1": 2,
                "0.1-1": 3,
                "<0.005": 2,
                ">=1": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "dns.intel.rallylive.ca": {
              "resources": 24,
              "priceBands": {
                "0.01-0.05": 24
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "intel.rallylive.ca": {
              "resources": 18,
              "priceBands": {
                "0.01-0.05": 18
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "email.intel.rallylive.ca": {
              "resources": 16,
              "priceBands": {
                "0.01-0.05": 16
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "ip.intel.rallylive.ca": {
              "resources": 4,
              "priceBands": {
                "0.01-0.05": 4
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "library.intel.rallylive.ca": {
              "resources": 2,
              "priceBands": {
                "0.01-0.05": 2
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "sol.blockrun.ai": {
              "resources": 2,
              "priceBands": {
                "0.01-0.05": 1,
                "<0.005": 1
              },
              "networks": [
                "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
              ]
            },
            "x402.ph1976.nl": {
              "resources": 2,
              "priceBands": {
                "unknown": 2
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "api.aurelianflo.com": {
              "resources": 1,
              "priceBands": {
                "0.01-0.05": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "apiv2.laevitas.ch": {
              "resources": 1,
              "priceBands": {
                "0.1-1": 1
              },
              "networks": [
                "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
              ]
            },
            "monitor.intel.rallylive.ca": {
              "resources": 1,
              "priceBands": {
                "0.01-0.05": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "mpp.hyreagent.fun": {
              "resources": 1,
              "priceBands": {
                "unknown": 1
              },
              "networks": [
                "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
              ]
            },
            "site.intel.rallylive.ca": {
              "resources": 1,
              "priceBands": {
                "0.01-0.05": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "www.trezalabs.com": {
              "resources": 1,
              "priceBands": {
                ">=1": 1
              },
              "networks": [
                "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
              ]
            },
            "x402-catalog-history.ai-business-surface.workers.dev": {
              "resources": 1,
              "priceBands": {
                "<0.005": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "x402helper.xyz": {
              "resources": 1,
              "priceBands": {
                "<0.005": 1
              },
              "networks": [
                "eip155:1329"
              ]
            }
          },
          "to": {
            "agent-kiosk.vercel.app": {
              "resources": 24,
              "priceBands": {
                "0.005-0.01": 3,
                "0.01-0.05": 13,
                "0.05-0.1": 2,
                "0.1-1": 3,
                "<0.005": 2,
                ">=1": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "dns.intel.rallylive.ca": {
              "resources": 21,
              "priceBands": {
                "0.01-0.05": 21
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "email.intel.rallylive.ca": {
              "resources": 17,
              "priceBands": {
                "0.01-0.05": 17
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "intel.rallylive.ca": {
              "resources": 17,
              "priceBands": {
                "0.01-0.05": 17
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "ip.intel.rallylive.ca": {
              "resources": 4,
              "priceBands": {
                "0.01-0.05": 4
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "library.intel.rallylive.ca": {
              "resources": 2,
              "priceBands": {
                "0.01-0.05": 2
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "rentcast.x402.paysponge.com": {
              "resources": 2,
              "priceBands": {
                "0.01-0.05": 2
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "sol.blockrun.ai": {
              "resources": 2,
              "priceBands": {
                "0.01-0.05": 1,
                "<0.005": 1
              },
              "networks": [
                "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
              ]
            },
            "tripadvisor.x402.paysponge.com": {
              "resources": 2,
              "priceBands": {
                "0.01-0.05": 2
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "x402.ph1976.nl": {
              "resources": 2,
              "priceBands": {
                "unknown": 2
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "apiv2.laevitas.ch": {
              "resources": 1,
              "priceBands": {
                "0.1-1": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "monitor.intel.rallylive.ca": {
              "resources": 1,
              "priceBands": {
                "0.01-0.05": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "mpp.hyreagent.fun": {
              "resources": 1,
              "priceBands": {
                "unknown": 1
              },
              "networks": [
                "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
              ]
            },
            "site.intel.rallylive.ca": {
              "resources": 1,
              "priceBands": {
                "0.01-0.05": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "www.trezalabs.com": {
              "resources": 1,
              "priceBands": {
                ">=1": 1
              },
              "networks": [
                "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
              ]
            },
            "x402-catalog-history.ai-business-surface.workers.dev": {
              "resources": 1,
              "priceBands": {
                "<0.005": 1
              },
              "networks": [
                "eip155:8453"
              ]
            },
            "x402helper.xyz": {
              "resources": 1,
              "priceBands": {
                "<0.005": 1
              },
              "networks": [
                "eip155:1329"
              ]
            }
          }
        },
        {
          "cycle": 787,
          "observed_at": "2026-10-20T17:13:00.304Z",
          "observed_at_jst": "2026-10-21T02:13:00.304+09:00",
          "target_id": "tracked.resources",
          "field": "scan",
          "kind": "changed",
          "from": {
            "pages_scanned": 40,
            "items_scanned": 4000,
            "catalog_total": 21919
          },
          "to": {
            "pages_scanned": 40,
            "items_scanned": 4000,
            "catalog_total": 21918
          }
        }
      ]
    }
  },
  "shelf": [
    {
      "product_id": "x402-check-before-you-pay",
      "title": "Is this x402 endpoint alive?",
      "method": "GET",
      "path": "/check?url=…",
      "price_usd": 0.02,
      "one_line": "Is this x402 endpoint alive, what does it charge and to whom, and what changed since your last check? Name any x402 URL and one call answers all three from a single live probe."
    },
    {
      "product_id": "x402-check-watch",
      "title": "Did this x402 endpoint change since my last check?",
      "method": "GET",
      "path": "/check/watch?url=…&since=…",
      "price_usd": 0.08,
      "one_line": "Name an x402 endpoint and the time you last checked it: one call returns the current probe, the changes this service recorded since then, and how many observations it actually holds — null and a basis when none."
    },
    {
      "product_id": "x402-price-benchmark",
      "title": "Is this price the going rate?",
      "method": "GET",
      "path": "/price?amount=0.02",
      "price_usd": 0.02,
      "one_line": "Is this price cheap, fair or expensive for x402? Give one amount and get its position against 1,500+ measured x402 resources, with your category and your host."
    },
    {
      "product_id": "x402-402-compat-report",
      "title": "Will your client read this 402?",
      "method": "GET",
      "path": "/compat-check?url=…",
      "price_usd": 0.02,
      "one_line": "Will your client break on this 402? Name a URL and one call says whether it is readable by x402 v2 clients, by v1 clients or by neither, and which required fields are missing."
    },
    {
      "product_id": "x402-output-contract",
      "title": "This 402 — what does it return?",
      "method": "GET",
      "path": "/contract?url=…",
      "price_usd": 0.02,
      "one_line": "Can you tell what this 402 returns from the type alone? One call normalises the output contract the seller declared into field names, types and required flags — the thing 87.8% of measured x402 sellers leave blank."
    },
    {
      "product_id": "x402-json-compat-check",
      "title": "Will this change break my integration?",
      "method": "POST",
      "path": "/compat",
      "price_usd": 0.02,
      "one_line": "Will this schema change break your call? Send one JSON value and one JSON Schema fragment; get pass/fail and the failing paths with expected versus actual."
    },
    {
      "product_id": "x402-compare",
      "title": "Which of these 2–3 x402s should I use?",
      "method": "GET",
      "path": "/compare?urls=…",
      "price_usd": 0.02,
      "one_line": "Put 2–3 x402 URLs side by side in one call: each 402's terms and declared output shape, what is the same, what cannot be compared, and which target is unreachable — before you pay any of them."
    },
    {
      "product_id": "x402-catalog-history",
      "title": "See the catalogue as it was observed",
      "method": "GET",
      "path": "/history",
      "price_usd": 0.01,
      "one_line": "Get the observed history of the public x402 catalogue — which listed resources appeared, disappeared or changed price, network, asset or terms — as a fixed, dated snapshot with the raw facts and the misses behind it."
    },
    {
      "product_id": "x402-catalog-change-log",
      "title": "What changed in the x402 catalog in this period?",
      "method": "GET",
      "path": "/changes?from=…&to=…",
      "price_usd": 0.02,
      "one_line": "Ask what moved in the public x402 catalogue over a period, so you know whether the number you rely on is stable, moving or simply unobserved."
    },
    {
      "product_id": "x402-agent-payment-reality-map",
      "title": "Which route can pay me?",
      "method": "GET",
      "path": "/reality",
      "price_usd": 0.05,
      "one_line": "Which agent-payment routes are alive, where do they pay out, and do they need KYC or SMS? One call lists every route that was judged, with the currency and chain it pays in and whether anyone was actually paid."
    },
    {
      "product_id": "x402-crosschain-gas",
      "title": "See the live gas price on five chains in one call",
      "method": "GET",
      "path": "/gas?chains=base,eth",
      "price_usd": 0.001,
      "one_line": "Name the chains you are about to transact on and one call returns each chain's gas price, base fee and measured priority fee, with the block they came from and the RPC that answered."
    },
    {
      "product_id": "x402-gas-plan",
      "title": "What will this transaction cost on each chain right now?",
      "method": "GET",
      "path": "/gas/plan?chains=base,eth&gas_limit=21000",
      "price_usd": 0.005,
      "one_line": "Name the chains and the gas limit of one transaction; one call returns the next base fee, the measured priority fee, the caps to sign and the total in wei and ETH — without converting to USDC or JPY."
    },
    {
      "product_id": "x402-gas-tx",
      "title": "What did this transaction actually cost?",
      "method": "GET",
      "path": "/gas/tx?chain=base&hash=0x…",
      "price_usd": 0.002,
      "one_line": "Give one chain and one transaction hash and get the receipt's actual outcome — success or reverted, block, gas used, effective gas price and the fee in wei and ETH — without opening an explorer."
    },
    {
      "product_id": "x402-mutation-watch",
      "title": "Did this endpoint's payment terms change since I last checked?",
      "method": "POST",
      "path": "/watch",
      "price_usd": 0.02,
      "one_line": "Register an x402 URL once and each later call returns only what changed in its payment terms — or changed:false."
    },
    {
      "product_id": "x402-watchlist-batch",
      "title": "Watch a whole set of resources in one call (up to 10)",
      "method": "POST",
      "path": "/watchlist",
      "price_usd": 0.05,
      "one_line": "Register up to 10 x402 URLs once and each later call returns, per URL, only what changed in its payment terms."
    },
    {
      "product_id": "x402-article-to-markdown",
      "title": "Can I get just the article?",
      "method": "GET",
      "path": "/markdown?url=…",
      "price_usd": 0.01,
      "one_line": "Can I get just the article body, as Markdown I can paste? Give one article URL and get the body back — navigation, cookie banners, ads, sidebars and the footer are removed."
    },
    {
      "product_id": "x402-catalog-families",
      "title": "How is the x402 catalogue mass-produced?",
      "method": "GET",
      "path": "/catalog/families",
      "price_usd": 0.05,
      "one_line": "Every repeating description template in the observed x402 catalogue: how many resources share it, the axis it varies along and a representative example — 30 families, largest 80 members."
    },
    {
      "product_id": "x402-lei-lookup",
      "title": "Who is this company, officially?",
      "method": "GET",
      "path": "/lei?q=Apple%20Inc",
      "price_usd": 0.005,
      "one_line": "Name a company (or its 20-character LEI) and one call returns the official LEI, legal name, registered address, jurisdiction and registration status from the GLEIF register, with the API URL it came from."
    },
    {
      "product_id": "x402-news-headlines",
      "title": "What is being reported right now?",
      "method": "GET",
      "path": "/news?topic=markets&limit=20",
      "price_usd": 0.005,
      "one_line": "Headlines for one topic from public RSS, newest first: title, URL, publication time, source and age in minutes, and nothing older than 48 hours."
    },
    {
      "product_id": "x402-random-bytes",
      "title": "Get random bytes you can check",
      "method": "GET",
      "path": "/random?bytes=32&format=hex",
      "price_usd": 0.001,
      "one_line": "Ask for 1 to 1024 random bytes as hex, base64 or a UUID, and get the value with the format, the byte count, the bit count, the generation time, the generator's name and the SHA-256 you can check."
    }
  ],
  "track_record": {
    "measured_at": "2026-10-16",
    "period": "2026-10",
    "scope": "external buyers only; self-checks, probes and test traffic are not counted, and no buyer identifier is published",
    "external_deliveries": 3,
    "buyers": 2,
    "revenue_usdc": 0.101,
    "by_product": [
      {
        "path": "/check",
        "price_usd": 0.05,
        "deliveries": 2,
        "revenue_usdc": 0.1
      },
      {
        "path": "/gas",
        "price_usd": 0.001,
        "deliveries": 1,
        "revenue_usdc": 0.001
      }
    ],
    "rule": "a payment whose block time is T counts when the delivery log holds status=200 inside [T-15s, T+180s] (delivery = request time, payment = block time)",
    "privacy": "Buyer identifiers are not published. Individual verification records are shown only with the buyer's consent.",
    "individual_records_published": false,
    "identifiers_published": []
  },
  "how_to_receive": {
    "after_payment": "One payment buys one delivery, and the delivery is the 200 response body of the request that carries your payment: send the same request again with the PAYMENT-SIGNATURE header (an x402 client library does this second call for you). The 402 itself delivers nothing.",
    "if_you_do_not_resend": "A settled payment whose second request never came is still reconcilable. The general recovery path is POST /credit/claim with {\"tx\":\"0x…\"}: the Worker reads the transfer on Base and issues a credit (credits from 0.01 USDC are accepted; 5 USDC buys the 110-call pack), then X-CREDIT: <credit_id> on any paid route returns the delivery — no 402 body and no second payment needed. GET /delivery-receipt?format=json (free) is the record shape that matches one payment to one delivery by tx or payer, and the track record on / lists the totals of this service's recorded deliveries and publishes no buyer identifier. https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim is the general claim entry for any paid route, and the products below have their own claim pages.",
    "human_claim": {
      "no_x402_client_needed": true,
      "how": "https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim is the general claim entry: send USDC on Base to 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3, then POST {\"tx\":\"0x<your tx hash>\"}. Any paid route can be bought this way through a credit (X-CREDIT: <credit_id>); 0.01 USDC returns the /digest delivery directly.",
      "products": [
        {
          "product_id": "x402-seller-playbook",
          "path": "https://x402-catalog-history.ai-business-surface.workers.dev/guide",
          "price_usd": 3,
          "price_atomic": "3000000",
          "buy_page": "https://x402-catalog-history.ai-business-surface.workers.dev/guide/buy",
          "claim": {
            "method": "POST",
            "path": "https://x402-catalog-history.ai-business-surface.workers.dev/guide/claim",
            "body": [
              "tx"
            ]
          },
          "free_sample": "https://x402-catalog-history.ai-business-surface.workers.dev/guide/sample",
          "what_get": "the full 15-chapter playbook as signed, time-limited PDF and Markdown links"
        },
        {
          "product_id": "x402-catalog-history-pack",
          "path": "https://x402-catalog-history.ai-business-surface.workers.dev/pack",
          "price_usd": 0.25,
          "price_atomic": "250000",
          "buy_page": "https://x402-catalog-history.ai-business-surface.workers.dev/pack/buy",
          "claim": {
            "method": "POST",
            "path": "https://x402-catalog-history.ai-business-surface.workers.dev/pack/claim",
            "body": [
              "tx"
            ]
          },
          "free_sample": "https://x402-catalog-history.ai-business-surface.workers.dev/pack/sample",
          "what_get": "the frozen hist-v1 pack as signed, time-limited JSONL and CSV links"
        },
        {
          "product_id": "x402-preflight-report",
          "path": "https://x402-catalog-history.ai-business-surface.workers.dev/preflight",
          "price_usd": 5,
          "price_atomic": "5000000",
          "buy_page": "https://x402-catalog-history.ai-business-surface.workers.dev/preflight/buy",
          "claim": {
            "method": "POST",
            "path": "https://x402-catalog-history.ai-business-surface.workers.dev/preflight/claim",
            "body": [
              "tx",
              "resource (optional)"
            ]
          },
          "free_sample": "https://x402-catalog-history.ai-business-surface.workers.dev/preflight/buy",
          "what_get": "the pre-flight report Markdown in the claim response"
        },
        {
          "product_id": "x402-enrich-report",
          "path": "https://x402-catalog-history.ai-business-surface.workers.dev/enrich",
          "price_usd": 0.3,
          "price_atomic": "300000",
          "buy_page": "https://x402-catalog-history.ai-business-surface.workers.dev/enrich/buy",
          "claim": {
            "method": "POST",
            "path": "https://x402-catalog-history.ai-business-surface.workers.dev/enrich/claim",
            "body": [
              "tx",
              "url"
            ]
          },
          "free_sample": "https://x402-catalog-history.ai-business-surface.workers.dev/enrich/buy",
          "what_get": "the enrichment report Markdown in the claim response (needs the target URL)"
        },
        {
          "product_id": "x402-measured-brief",
          "path": "https://x402-catalog-history.ai-business-surface.workers.dev/brief",
          "price_usd": 1,
          "price_atomic": "1000000",
          "buy_page": "https://x402-catalog-history.ai-business-surface.workers.dev/brief/buy",
          "claim": {
            "method": "POST",
            "path": "https://x402-catalog-history.ai-business-surface.workers.dev/brief/claim",
            "body": [
              "tx"
            ]
          },
          "free_sample": "https://x402-catalog-history.ai-business-surface.workers.dev/brief/buy",
          "what_get": "the measured brief Markdown in the claim response"
        },
        {
          "product_id": "x402-credit",
          "path": "https://x402-catalog-history.ai-business-surface.workers.dev/credit",
          "price_usd": 5,
          "price_atomic": "5000000",
          "buy_page": "https://x402-catalog-history.ai-business-surface.workers.dev/credit",
          "claim": {
            "method": "POST",
            "path": "https://x402-catalog-history.ai-business-surface.workers.dev/credit/claim",
            "body": [
              "tx"
            ]
          },
          "free_sample": "https://x402-catalog-history.ai-business-surface.workers.dev/credit",
          "what_get": "a credit id usable on every paid route; exactly 0.01 USDC returns the /digest delivery itself, and 5 USDC issues the 110-call pack"
        }
      ],
      "note": "These are the operator's human-facing products. A product is not the same thing as this route unless the path matches; for any other paid route use the credit claim above."
    },
    "free_previews": {
      "/check": "/check?url=<the URL you are about to pay for>&preview=1 — the stored summary only: last liveness, the price it read, and the change since the previous observation",
      "/contract": "/contract/sample?url=<any x402 URL> — a free reading of the output contract this service returns (omit url to read its own /history)",
      "/failure": "/failure/sample — a free reading of this service's own /gas 402 failure/refund declarations",
      "/paid": "/paid/sample",
      "/pack": "/pack/sample",
      "/pack/diff": "/pack/diff/sample?from=<version>",
      "/guide": "/guide/sample"
    },
    "in_the_402_body": "every paid route repeats this in its 402 body under receive"
  },
  "free_data": {
    "page": "https://x402-catalog-history.ai-business-surface.workers.dev/data",
    "json": "https://x402-catalog-history.ai-business-surface.workers.dev/data.json",
    "what": "the measured x402 market, CC0: price distribution, payers by category, listing families, declarations",
    "support": {
      "page": "https://x402-catalog-history.ai-business-surface.workers.dev/support",
      "note": "optional; nothing is gated behind it"
    }
  },
  "paid_endpoint": {
    "path": "/history",
    "price": {
      "amount_atomic": "10000",
      "amount_usd": 0.01,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "network": "eip155:8453"
    },
    "pay_to": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3"
  },
  "paid_endpoints": [
    {
      "product_id": "x402-catalog-history",
      "path": "/history",
      "method": "GET",
      "price_atomic": "10000"
    },
    {
      "product_id": "x402-json-compat-check",
      "path": "/compat",
      "method": "POST",
      "price_atomic": "20000"
    },
    {
      "product_id": "x402-catalog-change-log",
      "path": "/changes",
      "method": "GET",
      "price_atomic": "20000",
      "params": [
        "from",
        "to"
      ]
    },
    {
      "product_id": "x402-catalog-change-bundle",
      "path": "/changes/bundle",
      "method": "GET",
      "price_atomic": "100000",
      "params": [
        "units",
        "from",
        "to",
        "order"
      ],
      "units_per_delivery": 100,
      "max_units": 100
    },
    {
      "product_id": "x402-check-before-you-pay",
      "path": "/check",
      "method": "GET",
      "price_atomic": "20000",
      "params": [
        "url"
      ],
      "live_target_fetch": true
    },
    {
      "product_id": "x402-check-batch",
      "path": "/check/batch",
      "method": "GET",
      "price_atomic": "100000",
      "params": [
        "urls"
      ],
      "live_target_fetch": true,
      "max_target_requests": 10,
      "max_urls": 10,
      "batch_of": "/check"
    },
    {
      "product_id": "x402-check-watch",
      "path": "/check/watch",
      "method": "GET",
      "price_atomic": "80000",
      "params": [
        "url",
        "since"
      ],
      "live_target_fetch": true,
      "max_target_requests": 1,
      "history_of": "/check"
    },
    {
      "product_id": "x402-alive-402",
      "path": "/alive",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "url"
      ],
      "live_target_fetch": true
    },
    {
      "product_id": "x402-mutation-watch",
      "path": "/watch",
      "method": "GET",
      "price_atomic": "20000",
      "params": [
        "url",
        "id"
      ],
      "live_target_fetch": true,
      "post_registration": true
    },
    {
      "product_id": "x402-watchlist-batch",
      "path": "/watchlist",
      "method": "GET",
      "price_atomic": "50000",
      "params": [
        "urls",
        "id"
      ],
      "live_target_fetch": true,
      "post_registration": true,
      "max_urls": 10,
      "batch_of": "/watch"
    },
    {
      "product_id": "x402-402-compat-report",
      "path": "/compat-check",
      "method": "GET",
      "price_atomic": "20000",
      "params": [
        "url"
      ],
      "live_target_fetch": true
    },
    {
      "product_id": "x402-output-contract",
      "path": "/contract",
      "method": "GET",
      "price_atomic": "20000",
      "params": [
        "url"
      ],
      "live_target_fetch": true,
      "free_sample": "/contract/sample"
    },
    {
      "product_id": "x402-example-fit",
      "path": "/example-fit",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "url"
      ],
      "live_target_fetch": true,
      "free_sample": "/example-fit/sample"
    },
    {
      "product_id": "x402-payer-leak-scan",
      "path": "/payer-leak",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "url"
      ],
      "live_target_fetch": true
    },
    {
      "product_id": "x402-random-pick",
      "path": "/pick",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "items",
        "count",
        "replace"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "crypto.getRandomValues with rejection sampling"
    },
    {
      "product_id": "x402-base64",
      "path": "/base64",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "data",
        "action",
        "urlsafe"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "btoa/atob and TextEncoder/TextDecoder"
    },
    {
      "product_id": "x402-text-stats",
      "path": "/text-stats",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "text",
        "max_chars"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "Unicode code point iteration and TextEncoder"
    },
    {
      "product_id": "x402-roman",
      "path": "/roman",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "n",
        "roman"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "Greedy subtractive conversion table"
    },
    {
      "product_id": "x402-semver",
      "path": "/semver",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "range",
        "versions",
        "include_prerelease"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "strict semver 2.0.0 parser and npm-subset range evaluator in this Worker"
    },
    {
      "product_id": "x402-timezone",
      "path": "/timezone",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "zone",
        "at"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "IANA time zone database bundled with the Workers runtime (Intl.DateTimeFormat)"
    },
    {
      "product_id": "x402-wallclock",
      "path": "/wallclock",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "zone",
        "local"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "IANA time zone database bundled with the Workers runtime (Intl.DateTimeFormat); candidate offsets are re-formatted and matched"
    },
    {
      "product_id": "x402-npm",
      "path": "/npm",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "name",
        "version"
      ],
      "bundled_data": false,
      "generated_locally": false,
      "source": "npm registry (https://registry.npmjs.org), one GET per paid call"
    },
    {
      "product_id": "x402-pypi",
      "path": "/pypi",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "name",
        "version"
      ],
      "bundled_data": false,
      "generated_locally": false,
      "source": "PyPI JSON API (https://pypi.org/pypi), one GET per paid call"
    },
    {
      "product_id": "x402-catalog-fit",
      "path": "/catalog-fit",
      "method": "GET",
      "price_atomic": "10000",
      "params": [
        "base",
        "paths"
      ],
      "live_target_fetch": true,
      "max_target_requests": 25
    },
    {
      "product_id": "x402-compare",
      "path": "/compare",
      "method": "GET",
      "price_atomic": "20000",
      "params": [
        "urls"
      ],
      "live_target_fetch": true,
      "max_target_requests": 3,
      "min_urls": 2,
      "max_urls": 3
    },
    {
      "product_id": "x402-unix-mode",
      "path": "/unix-mode",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "mode"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "octal and symbolic chmod conversion in this Worker"
    },
    {
      "product_id": "x402-radix",
      "path": "/radix",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "n",
        "from",
        "to"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "BigInt base conversion in this Worker"
    },
    {
      "product_id": "x402-uuid",
      "path": "/uuid",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "count",
        "uppercase",
        "braces",
        "hyphens"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "crypto.getRandomValues UUID v4 generation in this Worker"
    },
    {
      "product_id": "x402-http-status",
      "path": "/http-status",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "code"
      ],
      "bundled_data": true,
      "generated_locally": true,
      "source": "bundled IANA/RFC HTTP status-code table in this Worker"
    },
    {
      "product_id": "x402-iban-check",
      "path": "/iban",
      "method": "GET",
      "price_atomic": "2000",
      "params": [
        "iban"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "ISO 13616 structure, SEPA lengths and MOD-97 inside this Worker"
    },
    {
      "product_id": "x402-schema-infer",
      "path": "/schema-infer",
      "method": "POST",
      "price_atomic": "5000",
      "params": [
        "examples",
        "title"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "recursive observation and JSON Schema assembly inside this Worker"
    },
    {
      "product_id": "x402-jsonl",
      "path": "/jsonl",
      "method": "POST",
      "price_atomic": "2000",
      "params": [
        "text",
        "unique_key",
        "max_lines",
        "require_same_keys"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "JSON.parse per line and top-level key aggregation inside this Worker"
    },
    {
      "product_id": "x402-json-canonical",
      "path": "/json-canonical",
      "method": "POST",
      "price_atomic": "2000",
      "params": [
        "json"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "strict JSON parser and RFC 8785 JCS serializer inside this Worker"
    },
    {
      "product_id": "x402-pii-scan",
      "path": "/pii-scan",
      "method": "POST",
      "price_atomic": "5000",
      "params": [
        "text",
        "locale",
        "types",
        "redact"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "regular expressions plus Luhn, MOD-97 and an E.164 country-code table inside this Worker",
      "returns_values": false
    },
    {
      "product_id": "x402-slug",
      "path": "/slug",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "text",
        "separator",
        "max_length"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "Unicode NFKD and combining-mark removal"
    },
    {
      "product_id": "x402-charset",
      "path": "/charset",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "url"
      ],
      "live_target_fetch": true,
      "source": "BOM/HTTP/meta declarations and TextDecoder fatal decodes in this Worker",
      "max_body_bytes": 524288,
      "timeout_ms": 5000,
      "max_redirects": 3,
      "meta_scan_bytes": 4096,
      "returns_body": false
    },
    {
      "product_id": "x402-dice-roll",
      "path": "/dice",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "count",
        "sides"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "crypto.getRandomValues with rejection sampling"
    },
    {
      "product_id": "x402-cron-next",
      "path": "/cron",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "expr",
        "count",
        "from"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "5-field cron parser in this Worker (UTC)"
    },
    {
      "product_id": "x402-json-strict",
      "path": "/json-strict",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "url"
      ],
      "live_target_fetch": true,
      "source": "own tokenizer in this Worker",
      "max_body_bytes": 1048576,
      "timeout_ms": 5000,
      "max_redirects": 3,
      "returns_values": false
    },
    {
      "product_id": "x402-dns-propagation",
      "path": "/dns-propagation",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "name",
        "type"
      ],
      "live_upstream_call": true,
      "source": "public DoH (Cloudflare, Google, Quad9), one query each, no retry",
      "max_resolvers": 4,
      "timeout_ms": 5000,
      "default_type": "A",
      "record_types": [
        "A",
        "AAAA",
        "MX",
        "TXT",
        "CNAME"
      ]
    },
    {
      "product_id": "x402-dnssec-status",
      "path": "/dnssec",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "domain",
        "type"
      ],
      "live_upstream_call": true,
      "source": "public DoH JSON (Cloudflare for DS, Cloudflare and Google for A with do=1), one query each, no retry",
      "queries_per_delivery": 3,
      "timeout_ms": 5000,
      "record_type": "A"
    },
    {
      "product_id": "x402-url-inspector",
      "path": "/url",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "url"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "WHATWG URL parser in this Worker",
      "fetches_target": false
    },
    {
      "product_id": "x402-idn-check",
      "path": "/idn-check",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "url",
        "expected"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "WHATWG URL parser, RFC 3492 punycode decoder and a small script/confusable table in this Worker",
      "fetches_target": false,
      "raw_authority": true
    },
    {
      "product_id": "x402-text-width",
      "path": "/text-width",
      "method": "POST",
      "price_atomic": "1000",
      "params": [
        "text",
        "max_width",
        "ambiguous"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "Intl.Segmenter grapheme boundaries and a bundled East Asian Width 18.0.0 table in this Worker",
      "rules_version": "eaw-18.0.0",
      "truncates_on_grapheme_boundary": true
    },
    {
      "product_id": "x402-isin-check",
      "path": "/isin",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "q"
      ],
      "bundled_data": true,
      "generated_locally": true,
      "source": "ISO 6166 check-digit algorithm in this Worker",
      "fetches_target": false
    },
    {
      "product_id": "x402-mojibake-triage",
      "path": "/mojibake",
      "method": "POST",
      "price_atomic": "1000",
      "params": [
        "text",
        "hint"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "TextDecoder plus a lazily built CP932 reverse map in this Worker",
      "rules_version": "mojibake-1.0.0",
      "reversible_repair": true
    },
    {
      "product_id": "x402-mime",
      "path": "/mime",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "ext",
        "type"
      ],
      "bundled_data": true,
      "generated_locally": true,
      "source": "bundled IANA media-type subset in this Worker",
      "fetches_target": false,
      "table_types": 79,
      "table_extensions": 102
    },
    {
      "product_id": "x402-fx-reference-rate",
      "path": "/fx",
      "method": "GET",
      "price_atomic": "2000",
      "params": [
        "from",
        "to",
        "amount",
        "date"
      ],
      "live_upstream_call": true,
      "source": "Frankfurter v2 /rate with providers=ecb (ECB reference rates)",
      "upstream_calls_per_delivery": 1,
      "cache_ttl_seconds": 3600,
      "kind": "reference"
    },
    {
      "product_id": "x402-ai-access",
      "path": "/ai-access",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "url"
      ],
      "live_target_fetch": true,
      "source": "one GET of /robots.txt and one HEAD of /llms.txt",
      "max_body_bytes": 524288,
      "timeout_ms": 5000,
      "max_redirects": 5,
      "returns_body": false
    },
    {
      "product_id": "x402-ip-inspector",
      "path": "/ip",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "addr"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "IPv4/IPv6 parser in this Worker"
    },
    {
      "product_id": "x402-failure-declaration",
      "path": "/failure",
      "method": "GET",
      "price_atomic": "50000",
      "params": [
        "url"
      ],
      "live_target_fetch": true,
      "free_sample": "/failure/sample"
    },
    {
      "product_id": "x402-crosschain-gas",
      "path": "/gas",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "chains"
      ],
      "live_upstream_call": true,
      "chains": [
        "base",
        "eth",
        "arbitrum",
        "optimism",
        "polygon"
      ]
    },
    {
      "product_id": "x402-gas-plan",
      "path": "/gas/plan",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "chains",
        "gas_limit"
      ],
      "live_upstream_call": true,
      "chains": [
        "base",
        "eth",
        "arbitrum",
        "optimism",
        "polygon"
      ],
      "default_gas_limit": 21000,
      "min_gas_limit": 1,
      "max_gas_limit": 30000000
    },
    {
      "product_id": "x402-gas-tx",
      "path": "/gas/tx",
      "method": "GET",
      "price_atomic": "2000",
      "params": [
        "chain",
        "hash"
      ],
      "live_upstream_call": true,
      "chains": [
        "base",
        "eth",
        "arbitrum",
        "optimism",
        "polygon"
      ],
      "reads": [
        "eth_getTransactionReceipt",
        "eth_getTransactionByHash",
        "eth_chainId"
      ],
      "storage": false,
      "sends_transaction": false
    },
    {
      "product_id": "x402-price-benchmark",
      "path": "/price",
      "method": "GET",
      "price_atomic": "20000",
      "params": [
        "amount",
        "url",
        "category"
      ],
      "bundled_data": true,
      "price_index_generated_at": "2026-10-15T14:49:56.365Z"
    },
    {
      "product_id": "x402-agent-payment-reality-map",
      "path": "/reality",
      "method": "GET",
      "price_atomic": "50000",
      "params": [
        "name"
      ],
      "bundled_data": true,
      "route_map_generated_at": "2026-10-15T18:24:16Z"
    },
    {
      "product_id": "x402-random-bytes",
      "path": "/random",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "bytes",
        "format"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "crypto.getRandomValues",
      "min_bytes": 1,
      "max_bytes": 1024,
      "default_bytes": 32,
      "formats": [
        "hex",
        "base64",
        "uuid"
      ],
      "default_format": "hex"
    },
    {
      "product_id": "x402-unit-convert",
      "path": "/convert",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "value",
        "from",
        "to"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "fixed unit definitions in this Worker"
    },
    {
      "product_id": "x402-timestamp-convert",
      "path": "/ts",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "value",
        "from",
        "to"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "JavaScript Date and integer arithmetic in this Worker"
    },
    {
      "product_id": "x402-news-headlines",
      "path": "/news",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "topic",
        "limit"
      ],
      "live_upstream_call": true,
      "sources": [
        "markets",
        "crypto",
        "tech",
        "world"
      ],
      "feed_count": 15,
      "max_age_hours": 48,
      "min_limit": 1,
      "max_limit": 50,
      "default_limit": 20,
      "default_topic": "markets"
    },
    {
      "product_id": "x402-candles-ohlcv",
      "path": "/candles",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "pair",
        "granularity",
        "limit"
      ],
      "live_upstream_call": true,
      "source": "Coinbase Exchange public candles API",
      "granularities": [
        60,
        300,
        900,
        3600,
        21600,
        86400
      ],
      "min_limit": 1,
      "max_limit": 300,
      "default_limit": 24,
      "default_granularity": 3600,
      "newest_first": true
    },
    {
      "product_id": "x402-catalog-families",
      "path": "/catalog/families",
      "method": "GET",
      "price_atomic": "50000",
      "params": [
        "min_members",
        "axis",
        "limit"
      ],
      "bundled_data": true,
      "family_count": 30,
      "max_members": 80,
      "unique_resources": 2562,
      "observed_from": "2026-10-11T12:25:07.808Z",
      "observed_to": "2026-10-16T12:11:43.180Z"
    },
    {
      "product_id": "x402-lei-lookup",
      "path": "/lei",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "q",
        "limit"
      ],
      "live_upstream_call": true,
      "source": "GLEIF public API",
      "min_limit": 1,
      "max_limit": 20,
      "default_limit": 5
    },
    {
      "product_id": "x402-holiday-calendar",
      "path": "/holidays",
      "method": "GET",
      "price_atomic": "3000",
      "params": [
        "country",
        "year"
      ],
      "live_upstream_call": true,
      "source": "Nager.Date public API",
      "min_year": 1990,
      "max_year": 2100
    },
    {
      "product_id": "x402-cidr-calculator",
      "path": "/cidr",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "cidr"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "integer arithmetic in this Worker"
    },
    {
      "product_id": "x402-barcode-check",
      "path": "/barcode",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "code"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "integer arithmetic in this Worker",
      "symbologies": [
        "ean-13",
        "upc-a",
        "ean-8",
        "isbn-10",
        "isbn-13"
      ]
    },
    {
      "product_id": "x402-color-contrast",
      "path": "/color",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "hex",
        "against"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "sRGB and WCAG 2.x arithmetic in this Worker"
    },
    {
      "product_id": "x402-jwt-inspector",
      "path": "/jwt",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "token"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "base64url and JSON decoding in this Worker",
      "signature_verified": false
    },
    {
      "product_id": "x402-mailauth-check",
      "path": "/mailauth",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "domain"
      ],
      "live_upstream_call": true,
      "source": "Cloudflare DNS-over-HTTPS JSON API",
      "queries_per_call": 3,
      "cache_ttl_seconds": 300,
      "negative_cache_ttl_seconds": 30
    },
    {
      "product_id": "x402-spf-depth",
      "path": "/spf-depth",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "domain"
      ],
      "live_upstream_call": true,
      "source": "Cloudflare DNS-over-HTTPS JSON API",
      "queries_per_call": 20,
      "lookup_limit": 10,
      "max_chain_records": 20,
      "max_depth": 10,
      "cache_ttl_seconds": 300,
      "negative_cache_ttl_seconds": 30
    },
    {
      "product_id": "x402-dmarc-policy",
      "path": "/dmarc-policy",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "domain"
      ],
      "live_upstream_call": true,
      "source": "Cloudflare DNS-over-HTTPS JSON API",
      "queries_per_call": 1,
      "cache_ttl_seconds": 300,
      "negative_cache_ttl_seconds": 30,
      "subdomain_inheritance": false
    },
    {
      "product_id": "x402-mta-sts",
      "path": "/mta-sts",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "domain"
      ],
      "live_upstream_call": true,
      "source": "Cloudflare DoH JSON (TXT _mta-sts + MX) and one HTTPS GET of the policy, redirects not followed",
      "queries_per_call": 3,
      "redirects_followed": 0,
      "timeout_ms": 5000
    },
    {
      "product_id": "x402-domain-age",
      "path": "/domain-age",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "domain"
      ],
      "live_upstream_call": true,
      "source": "RDAP (registry authoritative) via the IANA bootstrap registry",
      "bootstrap": "https://data.iana.org/rdap/dns.json",
      "bootstrap_cache_ttl_seconds": 86400,
      "queries_per_call": 1,
      "privacy": "no registrant or contact data returned or cached"
    },
    {
      "product_id": "x402-dns-lookup",
      "path": "/dns",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "name",
        "type"
      ],
      "live_upstream_call": true,
      "source": "Cloudflare DNS-over-HTTPS JSON API",
      "queries_per_call": 1
    },
    {
      "product_id": "x402-text-hash",
      "path": "/hash",
      "method": "GET",
      "price_atomic": "1000",
      "params": [
        "text",
        "algo",
        "encoding",
        "key"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "Web Crypto in this Worker",
      "algorithms": [
        "sha256",
        "sha384",
        "sha512",
        "sha1"
      ],
      "hmac_supported": true
    },
    {
      "product_id": "x402-base-usdc-transfer",
      "path": "/paid",
      "method": "GET",
      "price_atomic": "5000",
      "params": [
        "tx",
        "to",
        "amount"
      ],
      "live_upstream_call": true,
      "source": "public Base RPC",
      "rpc_calls_per_delivery": 2,
      "rpc_methods": [
        "eth_getTransactionReceipt",
        "eth_blockNumber"
      ],
      "free_sample": "/paid/sample"
    },
    {
      "product_id": "x402-wikipedia-summary",
      "path": "/wiki",
      "method": "GET",
      "price_atomic": "2000",
      "params": [
        "q",
        "lang"
      ],
      "live_upstream_call": true,
      "source": "Wikipedia REST API (CC BY-SA 4.0)",
      "upstream_calls_per_delivery": 1,
      "languages": [
        "en",
        "ja",
        "de",
        "fr",
        "es",
        "it",
        "pt",
        "ru",
        "zh",
        "ko"
      ]
    },
    {
      "product_id": "x402-buyer-next-step",
      "path": "/digest",
      "method": "GET",
      "price_atomic": "10000",
      "params": [],
      "bundled_data": true
    },
    {
      "product_id": "x402-delivery-validation",
      "path": "/validate-delivery",
      "method": "POST",
      "price_atomic": "5000",
      "params": [
        "items",
        "rules"
      ],
      "bundled_data": false,
      "generated_locally": true,
      "source": "count, required, unique_by, sum and types checks inside this Worker",
      "returns_values": false
    }
  ],
  "human_purchases": [
    {
      "product_id": "x402-seller-playbook",
      "path": "/guide",
      "method": "GET",
      "price_atomic": "3000000",
      "price_usd": 3,
      "payment_method": "claim",
      "buy_path": "/guide/buy",
      "claim_path": "/guide/claim",
      "free_sample": "/guide/sample",
      "claim_body": [
        "tx"
      ],
      "what_get": "the full 15-chapter playbook as signed, time-limited PDF and Markdown links",
      "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
    },
    {
      "product_id": "x402-catalog-history-pack",
      "path": "/pack",
      "method": "GET",
      "price_atomic": "250000",
      "price_usd": 0.25,
      "payment_method": "claim",
      "buy_path": "/pack/buy",
      "claim_path": "/pack/claim",
      "free_sample": "/pack/sample",
      "claim_body": [
        "tx"
      ],
      "what_get": "the frozen hist-v1 pack as signed, time-limited JSONL and CSV links",
      "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
    },
    {
      "product_id": "x402-preflight-report",
      "path": "/preflight",
      "method": "GET",
      "price_atomic": "5000000",
      "price_usd": 5,
      "payment_method": "claim",
      "buy_path": "/preflight/buy",
      "claim_path": "/preflight/claim",
      "free_sample": "/preflight/buy",
      "claim_body": [
        "tx",
        "resource (optional)"
      ],
      "what_get": "the pre-flight report Markdown in the claim response",
      "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
    },
    {
      "product_id": "x402-enrich-report",
      "path": "/enrich",
      "method": "GET",
      "price_atomic": "300000",
      "price_usd": 0.3,
      "payment_method": "claim",
      "buy_path": "/enrich/buy",
      "claim_path": "/enrich/claim",
      "free_sample": "/enrich/buy",
      "claim_body": [
        "tx",
        "url"
      ],
      "what_get": "the enrichment report Markdown in the claim response (needs the target URL)",
      "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
    },
    {
      "product_id": "x402-measured-brief",
      "path": "/brief",
      "method": "GET",
      "price_atomic": "1000000",
      "price_usd": 1,
      "payment_method": "claim",
      "buy_path": "/brief/buy",
      "claim_path": "/brief/claim",
      "free_sample": "/brief/buy",
      "claim_body": [
        "tx"
      ],
      "what_get": "the measured brief Markdown in the claim response",
      "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
    },
    {
      "product_id": "x402-credit",
      "path": "/credit",
      "method": "GET",
      "price_atomic": "5000000",
      "price_usd": 5,
      "payment_method": "claim",
      "buy_path": "/credit",
      "claim_path": "/credit/claim",
      "free_sample": "/credit",
      "claim_body": [
        "tx"
      ],
      "what_get": "a credit id usable on every paid route; exactly 0.01 USDC returns the /digest delivery itself, and 5 USDC issues the 110-call pack",
      "note": "Plain USDC transfer on Base + POST the transaction hash. No x402 client, no account, no KYC. The human-facing price is outside the 0.10 x402 ceiling."
    }
  ]
}
