{"uid":"cap_KWE_5xLjhMsCqg3dcKr48","slug":"netintel-dev-text-to-json-b8c7d1b7","name":"netintel.dev Text-to-JSON","description":"Turn unstructured text into structured JSON matching a caller-supplied schema using Claude Haiku — the agent declares the fields and types it wants, and gets back populated JSON with values pulled from the text and coerced to the right types, so agents can structure any prose into the exact shape their pipeline expects.","url":"https://netintel.dev/text-to-json","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":["text","schema"],"properties":{"text":{"type":"string","description":"The unstructured prose to extract structured data from. Max 10000 words or 50KB."},"schema":{"type":"object","description":"A map of field name → type token. Supported tokens: string, number, boolean, date, string[], number[], object. Max 50 fields. Each field is extracted from the text as the declared type; output keys are forced to exactly these field names."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"grade":{"type":"string","description":"Letter grade A-F."},"score":{"type":"number","description":"Quality score 0-100."},"cached":{"type":"boolean","description":"True if served from the in-memory cache."},"result":{"type":"object","description":"The extracted data: keys are exactly the schema field names, values pulled from the text and cast to the declared types, unfindable fields null."},"findings":{"type":"array","items":{"type":"string"},"description":"Informational findings (e.g. schema_mismatch_corrected, mostly_nulled)."},"schema_match":{"type":"boolean","description":"True when the model's output keys were exactly the schema field names. False when code had to force-conform (strip extra / add missing) keys."},"fields_nulled":{"type":"number","description":"Number of null fields in the output."},"fields_in_schema":{"type":"number","description":"Number of fields in the schema."},"fields_populated":{"type":"number","description":"Number of non-null fields in the output."}}}}}}},"responseSchema":{"type":"json","example":{"grade":"A","score":100,"cached":false,"result":{"company":"Acme Corp","employees":250,"is_public":false,"locations":["San Francisco","London"],"founded_year":2010},"findings":[],"schema_match":true,"fields_nulled":0,"fields_in_schema":5,"fields_populated":5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7XeqAJxvEE6MMLf5yAWpj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts unstructured text into structured JSON using a provided schema, with grading, field validation, and schema conformance scoring","exampleAgentPrompt":"Parse this company bio into structured JSON: 'Acme Corp was founded in 2010 and has 250 employees across offices in San Francisco and London. It is a private firm.' — use a schema with fields: company, employees, is_public, locations, and founded_year.","exampleUseCases":null,"resultDescription":"Returns a graded JSON object including: a letter grade (A–F) and numeric score (0–100), the extracted result object with schema fields populated, a schema_match boolean, counts of fields populated vs. total fields in schema, fields_nulled count, cached flag, and an array of validation findings or anomalies.","failureModes":["Malformed or missing schema causes extraction failure or low grade","Text lacks sufficient information to populate schema fields, resulting in nulled fields and low score","Ambiguous or contradictory text produces incorrect field mappings","Overly complex nested schemas may not be fully supported","Payment failure via x402 returns 402 before any processing occurs"],"whenToPreferThis":"Use this endpoint when you need to reliably convert unstructured or semi-structured natural language text into a validated JSON object conforming to a specific schema, and you want graded feedback on extraction quality. Prefer it over generic LLM JSON extraction when you need per-field population metrics, schema conformance scoring, and structured validation findings — particularly for business intelligence, data pipelines, or form-filling workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:33:49.239Z","isFirstParty":false}