{"uid":"cap_LC5acEmk3EjgZPQSVC9Y-","slug":"quant-agent-shop-structured-extraction-8386900d","name":"Quant Agent Shop Structured Extraction","description":"Structured extraction. Send text (up to 20,000 characters; 20 KB of UTF-8 is read) or a public page or PDF URL, plus a JSON Schema (up to 8,000 characters, no pattern keywords, $ref only inside it); returns JSON checked against your schema, after one repair attempt if needed. Use to pull fields from invoices, listings, filings or emails. Not for free-form summaries (use /v1/summarize). Typical response 3 to 10 s. Failed calls are not charged.","url":"https://quantagentshop.com/v1/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["json_schema"],"properties":{"url":{"anyOf":[{"type":"string","format":"uri","maxLength":2083,"minLength":1},{"type":"null"}],"title":"Url","default":null,"description":"Or a public page or PDF to extract from. Send text or url."},"text":{"anyOf":[{"type":"string","maxLength":20000,"minLength":1},{"type":"null"}],"title":"Text","default":null,"description":"The text to extract from."},"json_schema":{"type":"object","title":"Json Schema","description":"JSON Schema the result must match, up to 8,000 characters and 16 levels deep. No pattern or patternProperties; $ref only to #/ inside the schema, not recursive.","additionalProperties":true},"instructions":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Instructions","default":null,"description":"Optional: what to extract, in plain words."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_pdx8zrdSL9sdE8J5gxaF5","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 structured JSON fields from text, web pages, or PDFs according to a caller-supplied JSON Schema, with one automatic repair attempt if validation fails.","exampleAgentPrompt":"Extract the vendor name, invoice number, total amount, and line items from this invoice text and return them as structured JSON: 'Invoice #INV-2045 from Acme Supplies dated 2024-03-15. Item: 50x Widget A @ $4.00 = $200.00. Item: 10x Widget B @ $12.00 = $120.00. Total: $320.00.'","exampleUseCases":[{"title":"Invoice field extraction for accounting","prompt":"Pull the vendor name, invoice date, invoice number, line items with quantities and prices, subtotal, tax, and total amount from this invoice PDF at https://mybusiness.com/invoices/march2024.pdf and give it back as structured JSON."},{"title":"Job listing data structuring","prompt":"Extract the job title, company name, location, salary range, required skills, and application deadline from this job posting text and return them as a JSON object: 'Senior Backend Engineer at Stripe, San Francisco or Remote. $180k–$230k. Skills: Go, Kubernetes, PostgreSQL. Apply by April 30, 2024.'"},{"title":"SEC filing key metrics parsing","prompt":"From this 10-K filing page at https://www.sec.gov/Archives/edgar/data/320193/000032019324000006/aapl-20231230.htm, extract the company name, fiscal year end date, total revenue, net income, and total assets as structured JSON."}],"resultDescription":"A JSON object matching the caller-supplied JSON Schema, containing the fields extracted from the provided text or URL. If the initial extraction fails schema validation, one automatic repair attempt is made. If the call fails entirely, no charge is applied. Typical response time is 3–10 seconds.","failureModes":["Schema exceeds 8,000 characters or 16 nesting levels — request rejected","Text input exceeds 20,000 characters — truncated or rejected","URL is not publicly accessible or returns non-200 — extraction fails","JSON Schema uses disallowed keywords (pattern, patternProperties) — rejected","Extracted content does not match schema after one repair attempt — error returned","PDF is encrypted or requires authentication — extraction fails","Ambiguous or missing fields in source content — fields may be null or omitted"],"whenToPreferThis":"Choose this endpoint when you need to extract specific, schema-defined fields from text, HTML pages, or PDFs and want the output validated against a JSON Schema automatically. Prefer it over generic LLM extraction when you need guaranteed schema compliance and a deterministic structure. Not appropriate for free-form summaries (use /v1/summarize instead) or when the source document requires authentication or is behind a paywall.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:36:41.454Z","isFirstParty":false,"canonicalSlug":"quant-agent-shop-structured-extraction-8386900d"}