{"uid":"cap_ehXErBtpHYdmPXEkoNj1V","slug":"x402tools-docparse-2e7f2080","name":"x402tools DocParse","description":"Parse any public HTML page or PDF URL into clean structured JSON. Auto-detects articles, invoices, and research papers. Use for web scraping, document extraction, content cleaning, and PDF-to-JSON conversion.","url":"https://docparse.x402tools.xyz/parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public URL of HTML page or PDF to parse"},"options":{"type":"object","properties":{"language":{"type":"string","description":"Preferred output language (ISO 639-1)"},"max_sections":{"type":"number","description":"Max sections to extract, 1-100 (default: 20)"},"output_schema":{"enum":["auto","article","invoice","research","generic"],"type":"string","description":"Force output schema or auto-detect"},"include_raw_text":{"type":"boolean","description":"Include raw extracted text (default: false)"}}}}},"responseSchema":{"type":"json","example":{"title":"Example Article","content":{"topics":["technology"],"summary":"Brief summary...","sections":[{"body":"...","heading":"Introduction"}],"key_points":["Point 1"]},"doc_type":"article","metadata":{"language":"en","truncated":false,"source_url":"https://example.com/article","word_count":1200,"parse_duration_ms":2100,"detected_content_type":"html"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oOpvP435truGisyLSpDIq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses any public HTML page or PDF URL into clean structured JSON, auto-detecting document type and returning sections, summaries, and metadata.","exampleAgentPrompt":"Can you parse this PDF into structured JSON for me — https://arxiv.org/pdf/2301.07041.pdf — and extract up to 30 sections using the research schema?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the document title, detected doc_type (article, invoice, research, or generic), structured content sections with headings and body text, a summary, key points, topic tags, and metadata including language, word count, source URL, parse duration in milliseconds, and a truncation flag.","failureModes":["URL is not publicly accessible or requires authentication — returns an error indicating the resource could not be fetched","URL points to an unsupported file type — returns an error or falls back to generic schema","PDF is scanned/image-based with no extractable text — returns minimal or empty content","max_sections out of range (not 1-100) — returns a validation error","Network timeout fetching the remote URL — returns a timeout error","Malformed URL input — returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need to convert any public HTML page or PDF into structured, machine-readable JSON in a single pay-per-call request without setting up scraping infrastructure. It is ideal when document type is unknown and auto-detection is desired, or when you need specific schemas like article, invoice, or research. Prefer it over generic scrapers when you need clean sectioned content, summaries, and key points rather than raw HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T16:27:52.844Z","isFirstParty":false,"canonicalSlug":"x402tools-docparse-2e7f2080"}