AI Inference · x402 · early usage

PDFs, JavaScript pages and ordinary HTML as clean Markdown

PDFs, JavaScript pages and ordinary HTML as clean Markdown. Pays a page's x402 toll for you. Follows robots.txt.

by url2md-testnet.url2md.workers.dev · discovered, not yet claimed by its owner · updated 2026-09-18

30d calls20
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

PDFs, JavaScript pages and ordinary HTML as clean Markdown. Pays a page's x402 toll for you. Follows robots.txt.

Tags: markdown · url-to-markdown · scraping · pdf · llm-context · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-09-18
Input example from Bazaar metadata
{
  "format": "json",
  "render": "auto",
  "url": "https://example.com"
}
Output example
{
  "canonical": null,
  "charset": "utf-8",
  "contentSignal": null,
  "contentType": "text/html",
  "description": null,
  "fetchedAt": "2026-09-06T03:45:14.033Z",
  "finalUrl": "https://example.com/",
  "lang": null,
  "markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)",
  "redirects": [],
  "render": {
    "escalated": false,
    "mode": "auto",
    "reasons": []
  },
  "source": "static",
  "timing": {
    "browserMsUsed": null,
    "convertMs": 3,
    "fetchMs": 268,
    "renderMs": null,
    "totalMs": 412
  },
  "title": "Example Domain",
  "tokensEstimate": 42,
  "url": "https://example.com",
  "warnings": [],
  "words": 24
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/30709.json for the price and payment options.
  3. Pay. Call GET https://url2md-testnet.url2md.workers.dev/v1/md. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base Sepolia, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
see accepts
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base Sepolia
Demand
20 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase Sepolia
eip155:84532
USDC50000x8296e7E70A3b019CDf87747BFbce4a6D24059a94120s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:84532",
    "payTo": "0x8296e7E70A3b019CDf87747BFbce4a6D24059a94",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "amount": "5000",
    "maxTimeoutSeconds": 120
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "description": "The conversion result. The same metadata always travels in response headers as well, so a caller that asked for text/markdown still gets it: X-Url2md-Source (static | browser | pdf | origin-markdown | text), X-Url2md-Final-Url, X-Url2md-Title (percent-encoded), X-Url2md-Words, X-Url2md-Tokens-Estimate, X-Url2md-Ledger-Id (the ledger row for the settled payment), and X-Url2md-Upstream-Toll (USD paid to the origin when the page itself charged an x402 toll, absent otherwise). The x402 settlement receipt is in PAYMENT-RESPONSE. Errors are JSON with a stable error.code, and any error after a charge carries error.details.callerCharged with the ledger id.",
      "properties": {
        "blockSuspected": {
          "description": "set when what came back looks like a bot challenge or block page rather than the page: the origin answered 200 and the call was charged, but the content is probably not what was asked for. Also sent as X-Url2md-Block-Suspected, and named in warnings[].",
          "properties": {
            "markers": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "canonical": {
          "type": [
            "string",
            "null"
          ]
        },
        "charset": {
          "type": [
            "string",
            "null"
          ]
        },
        "contentSignal": {
          "description": "Upstream Content-Signal header, passed through untouched",
          "type": [
            "string",
            "null"
          ]
        },
        "contentType": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "fetchedAt": {
          "format": "date-time",
          "type": "string"
        },
        "finalUrl": {
          "description": "the URL after redirects; also sent as X-Url2md-Final-Url",
          "type": "string"
        },
        "lang": {
          "type": [
            "string",
            "null"
          ]
        },
        "markdown": {
          "description": "the converted page",
          "type": "string"
        },
        "redirects": {
          "items": {
            "properties": {
              "from": {
                "type": "string"
              },
              "status": {
                "type": "integer"
              },
              "to": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "render": {
          "properties": {
            "escalated": {
              "type": "boolean"
            },
            "mode": {
              "enum": [
                "auto",
                "static",
                "browser"
              ],
              "type": "string"
            },
            "reasons": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "source": {
          "description": "how the markdown was produced; also sent as X-Url2md-Source",
          "enum": [
            "static",
            "browser",
            "pdf",
            "origin-markdown",
            "text"
          ],
          "type": "string"
        },
        "timing": {
          "properties": {
            "browserMsUsed": {
              "type": [
                "integer",
                "null"
              ]
            },
            "convertMs": {
              "type": "integer"
            },
            "fetchMs": {
              "type": "integer"
            },
            "renderMs": {
              "type": [
                "integer",
                "null"
              ]
            },
            "totalMs": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "title": {
          "description": "also sent percent-encoded as X-Url2md-Title",
          "type": [
            "string",
            "null"
          ]
        },
        "tokensEstimate": {
          "description": "also sent as X-Url2md-Tokens-Estimate",
          "type": "integer"
        },
        "url": {
          "description": "the URL as asked for",
          "type": "string"
        },
        "warnings": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "words": {
          "description": "also sent as X-Url2md-Words",
          "type": "integer"
        }
      },
      "required": [
        "url",
        "finalUrl",
        "source",
        "markdown",
        "words",
        "tokensEstimate",
        "fetchedAt",
        "timing",
        "render",
        "warnings"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "blockSuspected": {
      "markers": [
        "string"
      ]
    },
    "canonical": "string",
    "charset": "string",
    "contentSignal": "string",
    "contentType": "string",
    "description": "string",
    "fetchedAt": "2026-01-01T00:00:00Z",
    "finalUrl": "string",
    "lang": "string",
    "markdown": "string",
    "redirects": [
      {
        "from": "string",
        "status": 0,
        "to": "string"
      }
    ],
    "render": {
      "escalated": true,
      "mode": "auto",
      "reasons": [
        "string"
      ]
    },
    "source": "static",
    "timing": {
      "browserMsUsed": 0,
      "convertMs": 0,
      "fetchMs": 0,
      "renderMs": 0,
      "totalMs": 0
    },
    "title": "string",
    "tokensEstimate": 0,
    "url": "string",
    "warnings": [
      "string"
    ],
    "words": 0
  },
  "type": "string"
}

Examples

curl
curl "https://url2md-testnet.url2md.workers.dev/v1/md"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://url2md-testnet.url2md.workers.dev/v1/md");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://url2md-testnet.url2md.workers.dev/v1/md")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
url2md-testnet.url2md.workers.dev
Endpoint
https://url2md-testnet.url2md.workers.dev/v1/md
Machine-readable
/resources/30709.json