POST
/api/v1/translation-qa/segment-check$0.03 USDCCheck up to 500 source and target segments for placeholder, HTML or XML tag, number, URL and email, untranslated, length ratio, quote style, whitespace, and glossary defects using each locale's CLDR number symbols and
An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
curl -i -X POST "https://www.brainiac.software/api/v1/translation-qa/segment-check" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"sourceLocale": "en-US",
"targetLocale": "de-DE",
"segments": [
{
"id": "price-bad",
"source": "Price: 1,234.50 EUR",
"target": "Preis: 1.234,00 EUR"
},
{
"id": "price-ok",
"source": "Price: 1,234.50 EUR",
"target": "Preis: 1.234,50 EUR"
}
],
"glossary": [
{
"source": "Price",
"target": "Preis"
}
]
}
JSON{
"status": "complete",
"sourceLocale": "en-US",
"targetLocale": "de-DE",
"segments": 2,
"issues": [
{
"id": "price-bad",
"check": "number_mismatch",
"severity": "error",
"detail": "Numbers read with en-US symbols [1234.5] differ from numbers read with de-DE symbols [1234]."
}
],
"summary": {
"byCheck": {
"number_mismatch": 1
},
"segmentsWithIssues": 1,
"errors": 1,
"warnings": 0
},
"cldrVersion": "49.0.0",
"sources": [
{
"source": "Unicode CLDR JSON 49.0.0 (cldr-core, cldr-numbers-full, cldr-dates-full, cldr-misc-full, cldr-localenames-full), 40 locales",
"url": "https://github.com/unicode-org/cldr-json",
"licence": "Unicode-3.0",
"retrievedAt": "2026-12-03",
"status": "ok"
}
],
"limitations": [
"Numbers are read with each locale's CLDR decimal and group symbols; dates and ranges written with separators (3.12.2026) can be read differently in the two",
"Placeholder, tag, number, and link checks compare multisets of tokens, not their order; translators may reorder them."
]
}HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; status failed or empty payloads return non-2xx and are not charged.
locale and segment-check read a vendored snapshot in src/data/translation-qa for 40 common locales; no CLDR or translation service is called at request time. segment-check finds format defects (placeholders, tags, numbers, links, quotes, whitespace, length, glossary), not meaning, grammar, or tone. number-formats uses the CLDR release bundled with the server's Node.js ICU, which can lag CLDR 49.