{"uid":"cap_z0yJsANAIef0g-_z0lekb","slug":"stack-facts-bcp47-language-tag-lookup-46862165","name":"Stack Facts BCP47 Language Tag Lookup","description":"Check a package before install: malware, known vulnerabilities (OSV), exploited CVEs (CISA KEV) and end-of-life, plus LLM prices; signed answers, pay per call in USDC, no account or API key.","url":"https://g5joilnmeep4ntz3nwezxt5dmu.srv.us/v1/bcp47/%7Btag%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"tag":"en-au","parts":[{"found":true,"subtag":"en","records":[{}]}],"registered":true},"meta":{"date":"2026-09-17","stale":false,"notice":"IANA Language Subtag Registry, …","source":"https://www.iana.org/assignment…","dataset":"bcp47","version":"2026-09-17","attribution":"IANA Language Subtag Registry, …","retrieved_at":"2026-10-14T20:53:46.534Z"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_opZc_CKiLIxagfUkAFkFR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a BCP47 language tag in the IANA Language Subtag Registry, returning registration status and subtag breakdown, signed and paid per-call in USDC.","exampleAgentPrompt":"Is 'en-AU' a valid, registered BCP47 language tag? Look it up in the IANA Language Subtag Registry and tell me its subtag breakdown and registration status.","exampleUseCases":[{"title":"Validate locale before app deployment","prompt":"Before we ship our app, can you check whether 'zh-Hant-HK' is a properly registered BCP47 language tag in the IANA registry and break down its subtags for me?"},{"title":"Resolve subtags for i18n pipeline","prompt":"I need to know the official IANA subtag records for the language tag 'sr-Latn-RS' — is it registered and what are its component subtags?"},{"title":"Audit locale strings in a dataset","prompt":"We have the locale code 'es-419' in our database — can you verify it's a valid, registered BCP47 tag and show me when the registry data was last updated?"}],"resultDescription":"Returns a JSON object with: the queried tag string, a list of subtag objects each with a 'found' flag and associated IANA records, a top-level 'registered' boolean, and a 'meta' block containing the registry version date, staleness flag, source URL, dataset name, and retrieval timestamp. Responses are signed and sourced directly from the IANA Language Subtag Registry.","failureModes":["Unknown or malformed tag returns found:false for one or more subtags","Stale registry data indicated by meta.stale:true if the dataset hasn't been refreshed","Payment not sent or insufficient USDC results in HTTP 402 before data is returned","Invalid tag format (not conforming to BCP47 syntax) may return an error or empty subtag records","Network timeout on the upstream IANA data source"],"whenToPreferThis":"Choose this endpoint when you need authoritative, machine-verifiable BCP47 language tag validation sourced directly from the IANA Language Subtag Registry, with no API key or account setup required. Ideal for agents that need to validate or resolve locale strings on-demand at low cost ($0.002 USDC per call) with signed, trustworthy responses. Prefer this over ad-hoc regex validation or unofficial locale lists when correctness and auditability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:30:18.126Z","isFirstParty":false,"canonicalSlug":"stack-facts-bcp47-language-tag-lookup-46862165"}