{"openapi":"3.1.0","info":{"title":"Web Page to Markdown API (x402 & MCP)","version":"0.1.0","description":"Turn any public web page into clean Markdown with optional main-content extraction, page title and metadata, plus strong anti-bot fetching; one row per page.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base, Polygon, Arbitrum, Monad, World Chain and Solana. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2) and 'exact' (EIP-3009) on EVM chains, and 'exact' (SPL USDC transfer, facilitator-paid fees) on Solana. 'upto' charges only for the rows delivered. 'exact' settles the full quoted amount (quoted rows x the row price) even when fewer rows than maxResults are delivered. Also accepts MPP (Machine Payments Protocol): pay the WWW-Authenticate Payment challenge (Tempo charge in USDC, signed transfer not broadcast) and retry with Authorization: Payment; the transfer is only broadcast once at least one row is delivered (Payment-Receipt header). Empty/0-row (404), invalid input (422), and upstream failures or timeouts (503, see error.code) are never charged. New wallets: the first 10 rows are free on 12 trial sites (apps-apple-com, booking-com, github-com, hackernews-com, huggingface-co, imdb-com, play-google-com, polymarket-com, tripadvisor-com, upwork-com, walmart-com, zillow-com), up to 5 per call; with exact, a call is free when maxResults <= 5. The wallet must hold at least the quoted USDC to pass payment verification, but free rows are not charged and never settled on-chain.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/stealth-web/v1/markdown":{"post":{"operationId":"stealth_web_markdown","summary":"Web Page to Markdown API: Convert web pages to Markdown","description":"Fetch 1 to 8 public pages and return each as Markdown (headings, lists, links, tables) with title, contentMode (main or full) and page metadata. onlyMainContent (default true) keeps the readable main content and falls back to the whole cleaned page when that is too short. Each URL gives one row, billed once; maxResults never drops URLs. Social networks, betting and adult sites are refused. Unit price: $0.003000/row USDC (default quote 1 rows, max 8 rows). Unsettled / 0-row / error responses are never charged.","tags":["stealth-web","Tools"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c000000000000000000000b9537d11c60e8b50"}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.003000","min":"0.003000","max":"0.024000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string"},"description":"Enter 1 to 40 full public HTTP or HTTPS URLs. Each unique URL produces at most one successful row; duplicates are removed. Empty input uses three example pages at normal prices. Private-network and localhost URLs are rejected.","minItems":1,"maxItems":8},"onlyMainContent":{"type":"boolean","description":"Markdown output only. Keep the main readable content and drop menus, sidebars and footers. Short pages fall back to the whole page without navigation, headers, footers and cookie banners; contentMode tells which was used.","default":true},"waitForSelector":{"type":"string","description":"Optional CSS selector that must appear before extraction. If it is not found, the page goes to the failures dataset without a successful-row charge."},"pageTimeout":{"type":"integer","description":"Page-loading allowance in seconds, from 30 to 120. This is separate from the overall run timeout, which defaults to 900 seconds.","default":45,"minimum":30,"maximum":45},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 8 (default 1). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":1,"minimum":1,"maximum":8}},"additionalProperties":false},"example":{"urls":["https://example.com/","https://example.org/","https://example.net/"],"maxResults":1}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}},"Payment-Receipt":{"description":"MPP receipt (when paid with Authorization: Payment).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_stealth_web"},"example":{"jobId":"job_stealth-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","url":"https://stealth.web/item/1","statusCode":10,"blocked":true,"title":"example_title"}],"meta":{"site":"stealth-web","endpoint":"markdown","maxResults":1,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":3000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}},"WWW-Authenticate":{"description":"MPP Payment challenge (Tempo charge) for the same quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/stealth-web/v1/scrape":{"post":{"operationId":"stealth_web_scrape","summary":"Web Page to Markdown API: Fetch web pages as text, HTML or Markdown","description":"Fetch 1 to 8 public pages and return text, rendered HTML, both, or Markdown per page, with optional CSS-selector extraction into extracted. Each URL gives one row, billed once; maxResults never drops URLs. Social networks, betting and adult sites are refused. Unit price: $0.003000/row USDC (default quote 1 rows, max 8 rows). Unsettled / 0-row / error responses are never charged.","tags":["stealth-web","Tools"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c000000000000000000000b9537d11c60e8b50"}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.003000","min":"0.003000","max":"0.024000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string"},"description":"Enter 1 to 40 full public HTTP or HTTPS URLs. Each unique URL produces at most one successful row; duplicates are removed. Empty input uses three example pages at normal prices. Private-network and localhost URLs are rejected.","minItems":1,"maxItems":8},"outputFormat":{"type":"string","description":"Choose plain text, rendered HTML, both, or Markdown. Markdown keeps headings, paragraphs, lists, links and tables, and adds page metadata, which suits LLM and RAG pipelines.","default":"text","enum":["html","text","both","markdown"]},"onlyMainContent":{"type":"boolean","description":"Markdown output only. Keep the main readable content and drop menus, sidebars and footers. Short pages fall back to the whole page without navigation, headers, footers and cookie banners; contentMode tells which was used.","default":true},"extractSelectors":{"type":"object","description":"Map your field names to CSS selectors, for example {\"heading\":\"h1\",\"price\":\".price\"}. Values appear in extracted; matching several elements returns a list. Leave empty for page content and available contact attributes.","default":{}},"waitForSelector":{"type":"string","description":"Optional CSS selector that must appear before extraction. If it is not found, the page goes to the failures dataset without a successful-row charge."},"pageTimeout":{"type":"integer","description":"Page-loading allowance in seconds, from 30 to 120. This is separate from the overall run timeout, which defaults to 900 seconds.","default":45,"minimum":30,"maximum":45},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 8 (default 1). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":1,"minimum":1,"maximum":8}},"additionalProperties":false},"example":{"urls":["https://example.com/","https://example.org/","https://example.net/"],"outputFormat":"text","maxResults":1}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}},"Payment-Receipt":{"description":"MPP receipt (when paid with Authorization: Payment).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_stealth_web"},"example":{"jobId":"job_stealth-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","url":"https://stealth.web/item/1","statusCode":10,"blocked":true,"title":"example_title"}],"meta":{"site":"stealth-web","endpoint":"scrape","maxResults":1,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":3000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}},"WWW-Authenticate":{"description":"MPP Payment challenge (Tempo charge) for the same quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/stealth-web/v1/health":{"get":{"operationId":"stealth_web_health","summary":"Web Page to Markdown API: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["stealth-web","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_stealth_web":{"type":"object","properties":{"rowType":{"type":["string","number","boolean","object","array","null"]},"id":{"type":["string","number","boolean","object","array","null"]},"url":{"type":["string","null"],"format":"uri","title":"URL"},"statusCode":{"type":["number","null"],"title":"Status"},"blocked":{"type":["boolean","null"],"title":"Blocked"},"title":{"type":["string","null"],"title":"Title"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"provider":{"type":["string","null"],"title":"Provider"},"siteClass":{"type":["string","null"],"title":"Site class"},"waitSelectorSatisfied":{"type":["boolean","null"],"title":"Wait selector"},"dataQuality":{"type":["string","null"],"title":"Quality"},"solver_status":{"type":["string","null"],"title":"Solver"},"scrapedAt":{"type":["string","null"],"format":"date-time","title":"Scraped at"}},"additionalProperties":true},"Response_stealth_web":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_stealth_web"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}