{"uid":"cap_ec6cdEPubVPEr0kKjBFdp","slug":"extract-api-web-document-extraction-33e1734a","name":"Extract API - Web & Document Extraction","description":"Paid web & document extraction (single or batch), rendering, screenshots, URL-to-PDF and site intelligence for AI agents. Payment via x402 (HTTP 402) in USDC on Base (eip155:8453). $0.01 per extract/sitemap/feed, $0.02 per render/screenshot/pdf, $0.03 per site-intel, $0.05 per 10-URL batch.","url":"https://extract-x402.vercel.app/v1/extract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute http(s) URL of the page or file to extract"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"text":"Extracted text...","type":"pdf","bytes":912344,"pages":12,"wordCount":5400,"processingMs":640}},"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":"unknown","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_Wfe7ezfEuLYgkkvwzH4oE","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":"Extracts text and metadata from any publicly accessible web page or document URL, returning cleaned text, word count, and processing stats.","exampleAgentPrompt":"Can you extract all the readable text from this page — https://example.com/article/ai-trends — so I can summarize it?","exampleUseCases":[{"title":"Research article text extraction","prompt":"Pull the full text from https://www.nature.com/articles/s41586-023-06792-0 so I can analyze what the paper says about AI and protein folding."},{"title":"PDF document content retrieval","prompt":"Extract all the readable text from this PDF — https://reports.example.com/annual-report-2024.pdf — I need the word count and full content for a summary."},{"title":"Competitor webpage content grab","prompt":"Grab the text content from https://competitor.com/pricing so I can compare their pricing structure to ours."}],"resultDescription":"Returns a JSON object containing the extracted plain text, document type (e.g. 'pdf', 'html'), total byte size, page count (for multi-page documents), word count, and processing time in milliseconds.","failureModes":["URL is not publicly accessible or requires authentication — returns error","URL points to a non-extractable resource (e.g. binary, media file) — returns error or empty text","Page uses heavy JavaScript rendering that the basic extract endpoint cannot process — may return incomplete text","Network timeout fetching the target URL — returns timeout error","Invalid or malformed URL supplied — returns validation error"],"whenToPreferThis":"Use this endpoint when you need clean, readable text extracted from a single publicly accessible URL — web page or document — quickly and cheaply ($0.01 per call). Prefer this over the render/screenshot endpoints when you only need text content, not a visual representation. Use the batch endpoint instead when processing 10+ URLs at once for cost efficiency ($0.05 per 10 URLs).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:31:27.771Z","isFirstParty":false,"canonicalSlug":"extract-api-web-document-extraction-33e1734a"}