{"slug":"netintel-dev-translate-structured-494a26","title":"Translate structured content — JSON, HTML, Markdown, templates, UI strings — wit","host":"netintel.dev","method":"POST","resource":"https://netintel.dev/translate/structured","category":"code","description":"Translate structured content — JSON, HTML, Markdown, templates, UI strings — without breaking structure. Preserves keys, tags, markdown, URLs, emails, variables, placeholders, code blocks, and brand names, honors a caller glossary, and validates that no placeholder was dropped, so agents can localiz","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":943,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"content":{"cta":"Click here to open the dashboard","greeting":"Hello {{name}}"},"glossary":{"dashboard":"tableau de bord"},"target":"fr"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"content":{"description":"The structured content to translate: a JSON object/array, or a string of HTML, Markdown, or template text. Max 32KB / 500 strings.","type":"object"},"content_type":{"description":"One of \"json\", \"html\", \"markdown\", \"template\", \"text\". Auto-detected when omitted; a non-string content is always treated as json.","type":"string"},"formality":{"description":"\"formal\", \"informal\", or \"neutral\" (default).","type":"string"},"glossary":{"description":"Enforced term mappings: {\"dashboard\":\"tableau de bord\"}. Compliance is reported per term; a missed term costs 10 points.","type":"object"},"locale":{"description":"Target locale for regional variants, e.g. \"fr-CA\".","type":"string"},"protected_values":{"description":"Strings that must pass through byte-for-byte — brand names, IDs, SKUs: [\"Acme\",\"SKU-1234\"]. Dropping one fails the call.","type":"array"},"source":{"description":"Source language. Auto-detected when omitted.","type":"string"},"target":{"description":"Target language — ISO 639-1 code (\"fr\") or English name (\"French\"). Aliases also accepted: target_lang, target_language, to, lang.","type":"string"},"tone":{"description":"Optional tone guidance, e.g. \"friendly and concise\".","type":"string"}},"required":["content","target"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"content_type":{"description":"The content type used (given or auto-detected)","type":"string"},"detected_language":{"description":"ISO 639-1 code of the source language","type":"string"},"findings":{"description":"Scored deductions, e.g. glossary_missed","type":"array"},"glossary_compliance":{"description":"Which glossary terms were applied and which were missed","type":"object"},"grade":{"description":"Letter grade A-F derived from score","type":"string"},"placeholder_validation":{"description":"Proof that every placeholder, tag, URL, email, code span, and protected value survived. A drop is a 502, never a 200.","type":"object"},"score":{"description":"0-100; 100 on a clean, structure-valid translation","type":"number"},"structure_validation":{"description":"Proof the document still parses: JSON keys intact, HTML tags balanced, markdown syntax preserved","type":"object"},"target_language":{"description":"ISO 639-1 code translated into","type":"string"},"translated":{"description":"The translated document, in the same shape and format as the input","type":"object"},"warnings":{"description":"Non-fatal notes, e.g. a missed glossary term","type":"array"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":943,"error":null}],"description_full":"Translate structured content — JSON, HTML, Markdown, templates, UI strings — without breaking structure. Preserves keys, tags, markdown, URLs, emails, variables, placeholders, code blocks, and brand names, honors a caller glossary, and validates that no placeholder was dropped, so agents can localize app content safely.","last_updated":"2026-09-03T00:28:05.711Z","schemes":["exact"]}