{"uid":"cap_rU8iXL8BT0RN1uyPNGnwj","slug":"freetier-agent-api-text-to-json-extraction-6c370553","name":"FreeTier Agent API — Text-to-JSON Extraction","description":"Pay-per-call data API for AI agents: AI model prices and cost calculator, 4,259 MCP servers, email domain checks, text-to-JSON extraction, country/holiday/currency lookup, page and link checks, page-to-markdown, 2,230 verified APIs. x402, USDC on Base, no signup. Sources cited in every response.","url":"https://freetier-agent-api.pages.dev/api/extract-json?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":["text","schema"],"properties":{"mode":{"enum":["auto","heuristic"],"type":"string"},"text":{"type":"string","description":"input text, max 6000 chars"},"schema":{"type":"string","description":"JSON Schema (type object with properties) as a JSON string"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"email":"billing@acme.example","total":1299,"company":"ACME GmbH","currency":"EUR","due_date":"2026-11-30","order_id":"4471"},"method":"workers-ai","missing":[],"sources":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_B2wlRdZ_ecNaKPYYvhN3h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured JSON data from unstructured text using a caller-supplied JSON Schema, returning typed fields with sourcing metadata.","exampleAgentPrompt":"Pull out the company name, total amount, currency, due date, order ID, and billing email from this invoice text and return it as JSON: 'ACME GmbH — Invoice #4471, due 2026-11-30, EUR 1,299.00, bill to billing@acme.example.'","exampleUseCases":[{"title":"Invoice field extraction for accounting","prompt":"I have this raw invoice text and I need to pull out the vendor name, order number, total, currency, and due date as structured JSON so I can feed it into our accounting system. Here's the text: 'ACME GmbH, Invoice #4471, EUR 1,299.00, due 2026-11-30.'"},{"title":"Email parsing for CRM ingestion","prompt":"Can you parse this customer inquiry email and extract the sender's name, company, email address, product mentioned, and urgency level into a JSON object? Here's the email body: 'Hi, I'm Jane from Globex Corp (jane@globex.com). We urgently need pricing for your Pro plan.'"},{"title":"Receipt data capture for expense reports","prompt":"Extract the merchant name, date, total amount, currency, and payment method from this receipt text and give it back as structured JSON: 'Starbucks, 2024-03-15, $12.75 USD, credit card.'"}],"resultDescription":"Returns a JSON object with a `data` field containing the extracted values keyed by your schema's property names, a `method` field indicating the extraction engine used (e.g. workers-ai), a `missing` array listing any schema fields that could not be extracted, and a `sources` array with citation references.","failureModes":["Missing required `text` or `schema` query params returns an error","Invalid JSON Schema string causes a parse error","Text exceeding 6000 characters may be truncated or rejected","Fields not present in the source text appear in the `missing` array rather than causing failure","Malformed or overly complex schemas may yield incomplete extractions","Payment failure (x402) if USDC balance insufficient"],"whenToPreferThis":"Choose this endpoint when you need to convert free-form or semi-structured text into a typed, schema-validated JSON object without running your own LLM pipeline. It is ideal for invoice parsing, document field extraction, and email parsing use cases where you supply a JSON Schema and want back a clean object. Prefer it over generic LLM prompting when you need consistent field names, missing-field tracking, and source citations, and when you want pay-per-call pricing with no signup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:39:36.222Z","isFirstParty":false,"canonicalSlug":"freetier-agent-api-text-to-json-extraction-6c370553"}