{"uid":"cap_l0yAQ1yJwt6HbF7N_vfWR","slug":"agent-toolbox-structured-data-extraction-from-web-pdf-text-400c3093","name":"Agent Toolbox – Structured Data Extraction from Web/PDF/Text","description":"Extract structured JSON from a web page, PDF or text: name the fields you want (up to 25, with types) and get each value with the exact quote from the page that states it. Every quote is checked against the page itself (verified, quoted, unverified or not_found), so values are never invented. Charged only when at least one field is found.","url":"https://agent-toolbox.zafermemon87.workers.dev/v1/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"A public http(s) URL"},"text":{"type":"string","description":"Text to read instead of a URL (up to 60,000 characters)"},"fields":{"type":"object","description":"Field name -> \"type: what it is\" (types: string, number, integer, boolean), e.g. {\"price\": \"number: the current price\"}; a JSON Schema with properties also works","additionalProperties":{"type":"string"}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lmbTt9Fx7Ssyqgvxbj7l4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts named fields as structured JSON from a URL, PDF, or raw text, returning each value with the exact source quote and a verification status","exampleAgentPrompt":"Go to https://www.example.com/product/widget-pro and extract these fields for me: product_name (string: the product title), price (number: the listed price in USD), and availability (string: in stock or out of stock) — and show me the exact quote from the page for each one.","exampleUseCases":[{"title":"Extract product details from e-commerce page","prompt":"Scrape https://shop.acme.com/items/blue-sneakers and pull out product_name (string: the item title), price (number: current sale price), and sizes_available (string: the listed available sizes) — I want the exact quote from the page for each field so I can verify the data."},{"title":"Parse key terms from a contract PDF","prompt":"I have a PDF at https://docs.example.com/contract.pdf — can you extract effective_date (string: when the contract starts), party_a (string: first party's legal name), and liability_cap (number: maximum liability in USD)? Include the exact sentence from the document that backs up each value."},{"title":"Pull financial figures from a press release","prompt":"Extract revenue (number: total quarterly revenue in millions), net_income (number: net income in millions), and ceo_name (string: name of the CEO quoted) from this text: 'Acme Corp reported $4.2B in revenue and $310M in net income for Q2. CEO Jane Smith commented on the strong results.'"}],"resultDescription":"A JSON object mapping each requested field name to its extracted value, the exact verbatim quote from the source that supports that value, and a verification status (one of: verified, quoted, unverified, or not_found) indicating how confidently the quote was matched back to the source document.","failureModes":["URL is not publicly accessible or requires authentication — field returns not_found","PDF is encrypted or scanned image — text extraction fails","Requested field genuinely absent from document — returns not_found with null value","Text input exceeds 60,000 character limit — request rejected","More than 25 fields requested — request rejected","Malformed field definition (wrong type string) — validation error","Network timeout fetching URL — extraction error returned"],"whenToPreferThis":"Choose this endpoint when you need to extract specific named fields from an arbitrary web page, PDF, or block of text and require cited evidence (source quotes) for each value rather than a plain scrape. It is especially valuable when auditability matters — each extracted value is tied to a verbatim quote that is verified against the source, so values are never hallucinated. Prefer it over generic LLM extraction when you need structured JSON with provenance, or over raw scraping when you need selective field targeting rather than full-page content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:31:29.482Z","isFirstParty":false,"canonicalSlug":"agent-toolbox-structured-data-extraction-from-web-pdf-text-400c3093"}