{"uid":"cap_hF79jWjMtehhC4en5Lpr5","slug":"agent-tools-document-extract-url-7dfdd7c2","name":"Agent Tools Document Extract (URL)","description":"Pay-per-call utilities for AI agents over x402, USDC on Base.","url":"https://agents.crowdspark.me/v1/document/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":"Public PDF or image URL"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"kind":"pdf","text":"INVOICE\nInvoice #: INV-1042\nDate: 2026-10-01\nTotal: $1,250.00","pages":1,"fields":{"urls":[],"dates":["2026-10-01"],"emails":[],"phones":[],"tables":[],"totals":[{"label":"total","value":"$1,250.00"}],"amounts":["$1,250.00"],"key_values":{"Date":"2026-10-01","Invoice":"INV-1042"},"identifiers":["Invoice #: INV-1042"]},"characters":1840}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_25Q2eoW_l5tk-SLmcHy5H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a PDF or image URL using OCR and extracts full text plus structured fields (dates, amounts, totals, identifiers, tables, key-value pairs, emails, phones, URLs)","exampleAgentPrompt":"Can you parse this invoice PDF and pull out the invoice number, date, totals, and any other key fields? Here's the URL: https://example.com/invoice-1042.pdf","exampleUseCases":[{"title":"Automated invoice data entry","prompt":"I have a supplier invoice at https://acme.com/invoices/inv-2045.pdf — can you extract the invoice number, date, line item totals, tax, and amount due so I can enter them into our accounting system?"},{"title":"Receipt total extraction for expense reports","prompt":"Here's a receipt image from our last team lunch: https://cdn.company.com/receipts/lunch-mar21.jpg — can you pull out the total, tax, date, and any line items so I can file my expense report?"},{"title":"Scanned form field parsing","prompt":"I've got a scanned onboarding form as a PDF at https://storage.example.com/forms/client-intake-signed.pdf — can you extract all the filled-in fields like name, email, phone, and any dates or amounts?"}],"resultDescription":"A JSON object containing: the document kind (pdf or image), the full extracted text, page count, character count, and a structured fields object with arrays of dates, email addresses, phone numbers, URLs, monetary amounts, totals (with labels like 'total', 'tax', 'amount due'), identifiers (invoice/order numbers), simple tables, and key-value pairs extracted from the document.","failureModes":["URL is not publicly accessible or requires authentication — returns an error","URL does not point to a supported format (PDF, PNG, JPEG, WebP) — format error","PDF has no extractable text layer and no embedded image for OCR — empty text result","Document is too large or times out during download — timeout error","Scanned image is too low resolution for accurate OCR — degraded field extraction","Malformed or invalid URL — bad request error"],"whenToPreferThis":"Use this endpoint when you have a publicly accessible URL pointing to a PDF or image document (invoice, receipt, form, statement, scanned page) and need both the raw text and structured field extraction in a single call. Prefer this over the POST upload variant when the document is already hosted at a reachable URL. Prefer this over general-purpose LLM vision when you need reliably structured output fields (amounts, dates, identifiers, tables) rather than free-form description.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:52.148Z","isFirstParty":false,"canonicalSlug":"agent-tools-document-extract-url-7dfdd7c2"}