{"openapi":"3.1.0","info":{"title":"Vigilix Reader — web page & PDF to Markdown (x402)","version":"1.0.0","description":"Web page or PDF to Markdown for AI agents: read any URL, get clean LLM-ready text (reader mode): title, author, language, date, word count, links. URL to markdown, PDF to text, extract article. Static pages only (no JavaScript), respects robots.txt, reads only the public part of pages (no paywall bypass; paywall_suspected flags teasers). Never charged when the read fails (blocked, robots, timeout, site error, unsupported or empty content); invalid input: free 400.","contact":{"email":"zekinht@gmail.com","url":"https://read.vigilix.fr/"},"x-guidance":"Read a page with GET /v1/read?url={absolute http(s) URL}[&format=markdown|text][&max_chars=1000-100000][&links=true]. Without payment you get a 402 with a PAYMENT-REQUIRED header (x402 v2, USDC on Base). Sign it and replay the same request with a PAYMENT-SIGNATURE header. HTML and PDF are detected automatically. Invalid parameters get a free 400. A failed read (private address, robots.txt, DNS, timeout, site error, unsupported type, too large, empty or JavaScript-only page) returns an error with \"charged\": false and nothing is settled. Results are cached 15 minutes (cached: true).","x-keywords":["web page to markdown","URL to markdown","reader","read URL","extract article","readability","clean text for LLM","PDF to markdown","PDF to text","scrape page"]},"servers":[{"url":"https://read.vigilix.fr"}],"tags":[{"name":"web-to-markdown"},{"name":"url-to-markdown"},{"name":"reader"},{"name":"readability"},{"name":"pdf-to-text"},{"name":"scraping"},{"name":"llm"}],"x-discovery":{"ownershipProofs":[]},"paths":{"/v1/read":{"get":{"operationId":"readUrl","tags":["web-to-markdown","url-to-markdown","reader","readability","pdf-to-text","scraping","llm"],"summary":"Web page or PDF URL to clean Markdown","description":"Web page or PDF to Markdown for AI agents: read any URL, get clean LLM-ready text (reader mode): title, author, language, date, word count, links. URL to markdown, PDF to text, extract article. Static pages only (no JavaScript), respects robots.txt, reads only the public part of pages (no paywall bypass; paywall_suspected flags teasers). Never charged when the read fails (blocked, robots, timeout, site error, unsupported or empty content); invalid input: free 400.","parameters":[{"name":"url","in":"query","required":true,"description":"Page or PDF to read: absolute http(s) URL, ports 80/443, max 2048 chars, e.g. https://en.wikipedia.org/wiki/Markdown","schema":{"type":"string","maxLength":2048,"example":"https://en.wikipedia.org/wiki/Markdown"}},{"name":"format","in":"query","required":false,"description":"markdown (default) or text (plain text, no Markdown syntax)","schema":{"type":"string","enum":["markdown","text"],"default":"markdown"}},{"name":"max_chars","in":"query","required":false,"description":"Maximum length of the content; cut at a paragraph end, with truncated: true","schema":{"type":"integer","minimum":1000,"maximum":100000,"default":30000}},{"name":"links","in":"query","required":false,"description":"Also return the absolute links found in the main content (max 200)","schema":{"type":"boolean","default":false}}],"security":[],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"x-sample-url":"https://read.vigilix.fr/v1/sample/read","responses":{"200":{"description":"Page read (charged)","content":{"application/json":{"schema":{"type":"object","required":["url","final_url","content_type","word_count","truncated","paywall_suspected","links","fetched_at","cached"],"properties":{"url":{"type":"string","description":"Requested URL (normalized)"},"final_url":{"type":"string","description":"URL after redirects"},"content_type":{"type":"string","enum":["text/html","application/xhtml+xml","text/plain","application/pdf"]},"title":{"type":["string","null"],"description":"Page or document title"},"byline":{"type":["string","null"],"description":"Author"},"lang":{"type":["string","null"],"description":"ISO 639 language code, e.g. en, fr"},"published":{"type":["string","null"],"description":"Publication date YYYY-MM-DD"},"markdown":{"type":"string","description":"Content as Markdown (format=markdown). Images are dropped; meaningful alt text is kept as [Image : text]"},"text":{"type":"string","description":"Content as plain text (format=text), instead of markdown"},"word_count":{"type":"integer","description":"Words in the returned content"},"truncated":{"type":"boolean","description":"true if cut to max_chars, or PDF longer than 50 pages"},"paywall_suspected":{"type":"boolean","description":"true if the page looks cut by a paywall: only its public part was read (no paywall bypass)"},"pages":{"type":["integer","null"],"description":"PDF page count (null for web pages)"},"links":{"type":"array","items":{"type":"string"},"description":"Absolute links in the main content (links=true), else empty"},"fetched_at":{"type":"string","description":"UTC time of the read (ISO 8601)"},"cached":{"type":"boolean","description":"Served from the 15-minute cache"}}},"example":{"url":"https://en.wikipedia.org/wiki/Markdown","final_url":"https://en.wikipedia.org/wiki/Markdown","content_type":"text/html","title":"Markdown","byline":"Contributors to Wikimedia projects","lang":"en","published":"2005-08-09","markdown":"# Markdown\n\n**Markdown** is a [lightweight markup language](https://en.wikipedia.org/wiki/Lightweight_markup_language) for creating formatted text using a plain-text editor. John Gruber created Markdown in 2004…","word_count":2942,"truncated":false,"paywall_suspected":false,"pages":null,"links":[],"fetched_at":"2026-11-13T10:11:26Z","cached":false}}}},"400":{"description":"Invalid parameters: refused before any payment (free, no 402)"},"402":{"description":"Payment Required: sign the PAYMENT-REQUIRED header (x402 v2) and replay with PAYMENT-SIGNATURE."},"403":{"description":"Not charged: robots_disallowed (robots.txt does not allow reading this page)","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}},"413":{"description":"Not charged: too_large (Larger than 5 MB (HTML/text) or 15 MB (PDF))","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}},"415":{"description":"Not charged: unsupported_type (Not HTML, XHTML, plain text or PDF)","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}},"422":{"description":"Not charged: blocked_address (The host resolves to a private, local or reserved address); blocked_url (A redirect points to a refused URL (scheme, port, credentials, private IP)); empty_content (No readable text (JavaScript-only page, scanned PDF)); unreadable_pdf (Damaged or password-protected PDF)","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}},"500":{"description":"Not charged: internal_error (Unexpected error)","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}},"502":{"description":"Not charged: robots_unreachable (robots.txt unreachable (5xx/timeout): disallow all, per RFC 9309); dns_error (Host name not found); upstream_error (The site answered with an error (upstream_status) or a broken redirect); too_many_redirects (More than 5 redirects); fetch_error (Connection or TLS error)","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}},"503":{"description":"Not charged: busy (Too many reads in progress, retry in a few seconds)","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}},"504":{"description":"Not charged: timeout (No complete answer within 10 seconds)","content":{"application/json":{"schema":{"type":"object","required":["error","message","charged"],"properties":{"error":{"type":"string","enum":["blocked_address","blocked_url","robots_disallowed","robots_unreachable","dns_error","upstream_error","too_many_redirects","fetch_error","timeout","unsupported_type","too_large","empty_content","unreadable_pdf","busy","internal_error"]},"message":{"type":"string"},"upstream_status":{"type":"integer","description":"HTTP status returned by the site (upstream_error)"},"charged":{"type":"boolean","const":false}}}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"Service status (free)","security":[],"responses":{"200":{"description":"OK"},"503":{"description":"Degraded"}}}},"/":{"get":{"operationId":"free_index","tags":["discovery"],"summary":"Service description (JSON; HTML for browsers) (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/llms.txt":{"get":{"operationId":"free_llms_txt","tags":["discovery"],"summary":"Guide for LLM agents (llmstxt.org) (free)","security":[],"responses":{"200":{"description":"OK","content":{"text/plain":{}}}}}},"/robots.txt":{"get":{"operationId":"free_robots_txt","tags":["discovery"],"summary":"Robots policy (free)","security":[],"responses":{"200":{"description":"OK","content":{"text/plain":{}}}}}},"/openapi.json":{"get":{"operationId":"free_openapi_json","tags":["discovery"],"summary":"This OpenAPI document (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/.well-known/x402":{"get":{"operationId":"free_well_known_x402","tags":["discovery"],"summary":"x402scan discovery document (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/.well-known/x402.json":{"get":{"operationId":"free_well_known_x402_json","tags":["discovery"],"summary":"x402scan discovery document (same as /.well-known/x402) (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/x402-resources":{"get":{"operationId":"free_x402_resources","tags":["discovery"],"summary":"Paid resources with price, network, payTo and schemas (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/.well-known/x402-resources":{"get":{"operationId":"free_well_known_x402_resources","tags":["discovery"],"summary":"Same as /x402-resources (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/.well-known/x402-payto.json":{"get":{"operationId":"free_well_known_x402_payto_json","tags":["discovery"],"summary":"Payment address (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/.well-known/agent.json":{"get":{"operationId":"free_well_known_agent_json","tags":["discovery"],"summary":"open-402 agent manifest (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/.well-known/mcp/server-card.json":{"get":{"operationId":"free_well_known_mcp_server_card_json","tags":["discovery"],"summary":"MCP Server Card (local stdio MCP server on npm, no remote MCP endpoint) (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/v1/sample/read":{"get":{"operationId":"free_v1_sample_read","tags":["discovery"],"summary":"Free sample of GET /v1/read: real response for the fixed public example URL, refreshed at most once a day (sample: true, paid_url) (free)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{}}}}}},"/favicon.svg":{"get":{"operationId":"free_favicon_svg","tags":["discovery"],"summary":"Icon (free)","security":[],"responses":{"200":{"description":"OK","content":{"image/svg+xml":{}}}}}},"/favicon.ico":{"get":{"operationId":"free_favicon_ico","tags":["discovery"],"summary":"Icon (free)","security":[],"responses":{"200":{"description":"OK","content":{"image/x-icon":{}}}}}}}}