x402 Forge is part of Fizzlfizzl.eu ↗
x402 Forge Upgrade your toolBundlesCatalog

Catalog / country-locale-facts

Country locale facts (ISO, phone, currency, CLDR)

Gives the codes, phone prefix, currency and number, date and week conventions of a country in one call.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

For one ISO 3166-1 country or territory (all 249 assigned codes; alpha-2, alpha-3 or numeric) returns: the ISO codes and English short name (Debian iso-codes spelling of the ISO 3166-1 short name); the international calling code, national trunk prefix (0 for DE, 1 for US, 8 for RU, null for IT), leading digits that pick the region inside a shared code (+1 787|939 for PR, +358 18 for AX) and the other regions on that code, from Google libphonenumber 9.0.43 (phone is null for AQ, BV, GS, HM, PN, TF, UM, which have no numbering plan there); the ISO 4217 currencies with numeric code and minor units from list one of 2026-09-17, in list order, funds codes such as USN and CHE left out (none for AQ, GS, PS: ISO lists no universal currency), with cldr_digits next to minor_units because CLDR displays other decimals for 15 codes (ISO/CLDR: AFN 2/0, ALL 2/0, COP 2/0, HUF 2/0, IDR 2/0, IQD 3/0, IRR 2/0, KPW 2/0, LAK 2/0, LBP 2/0, MGA 2/0, MMK 2/0, SOS 2/0, SYP 2/0, YER 2/0); and from Unicode CLDR 49 (cldr-json 49.0.0, released 2026-10-22) the likely subtags and the language-REGION tag of the locale used, decimal and group separators (with code points, for the default numbering system and for Latin digits), decimal pattern, minimum grouping digits, gregorian short date pattern, preferred calendar, first day of the week, weekend days, minimum days in the first week, measurement system (metric, US or UK) and the official and de facto official languages with population share. Node.js 22 Intl still ships CLDR 48 and gives other values for some regions (ID short date dd/MM/yy vs CLDR 49 d/M/yy, KG d/M/yy vs dd.MM.yy, TO group separator ',' vs U+00A0, PKR display digits 0 vs 2). Differences stated in the answer: cldr_tender_currencies gives CLDR's current tender list, which differs from ISO 4217 for GS, PS, SV, VE, ZW. When cldr-json 49 (which ships locales at basic coverage or above) has no locale for the likely language in that region, the formats come from the first official or de facto official language, by population, that has a CLDR 49 locale for the region, with locale.fallback_reason and a warning (AS en-AS, BQ nl-BQ, CC en-CC, CW nl-CW, HT fr-HT, PG en-PG, PW en-PW, PY es-PY, TK en-TK, TV en-TV, VU en-VU, WS en-WS); where no such locale exists (AQ, BV, HM, MV, TF) region_specific is false and the formats are the language's or CLDR root's. Unassigned codes give valid:false with the ISO 3166/MA category as reason, first match in this order: exceptionally_reserved (EU, UK is read as GB, SU/SUN, FX/FXX, ASC), transitionally_reserved (YU/YUG, CS, AN/ANT, ROM, SCG), indeterminately_reserved (DY, RH, WIPO codes AP, EP, WO; UNA, UNK, CDN, ROK), user_assigned (XK, AA, QM-QZ, XA-XZ, ZZ, AAA, XXA, 900-999), not_assigned; formerly_used says whether the code is withdrawn or formerly used (ISO 3166-3 or the deleted-code lists: deleted alpha-2/alpha-3, withdrawn numeric such as 280 and 891, transitionally reserved codes). Numeric codes have no reserved categories. Static embedded data; facts_as_of 2026-11-17 is the date the sources were fetched; no network, no clock.

Example input
{"country":"CH"}
Answer
{"ok":true,"result":{"valid":true,"input_type":"alpha_2","country":{"alpha_2":"CH","alpha_3":"CHE","numeric":"756","name":"Switzerland"},"phone":{"calling_code":"+41","trunk_prefix":"0","leading_digits":null,"main_region_for_code":"CH","code_shared_with":[],"other_plans_in_territory":[]},"currencies":[{"code":"CHF","numeric":"756","minor_units":2,"cldr_digits":2,"name":"Swiss Franc"}],"cldr_tender_currencies":["CHF"],"locale":{"likely_subtags":"de-Latn-CH","tag":"de-CH","cldr_locale":"de-CH","region_specific":true,"fallback_reason":null},"number":{"numbering_system":"latn","decimal_separator":".","decimal_separator_code_point":"U+002E","group_separator":"'","group_separator_code_point":"U+0027","decimal_pattern":"#,##0.###","minimum_grouping_digits":1,"latn_decimal_separator":".","latn_group_separator":"'"},"short_date_pattern":"dd.MM.yy","calendar":"gregorian","first_day_of_week":"mon","weekend":["sat","sun"],"min_days_in_first_week":4,"measurement_system":"metric","official_languages":[{"tag":"de","status":"official","population_percent":76},{"tag":"gsw","status":"de_facto_official","population_percent":66},{"tag":"fr","status":"official","population_percent":39},{"tag":"it","status":"official","population_percent":15}],"facts_as_of":"2026-11-17","sources":{"iso_3166_1":"ISO 3166-1 codes and English short names as published in Debian iso-codes (main branch, fetched 2026-11-17); reserved-code categories from the ISO 3166/MA reserved-code tables as listed on Wikipedia 'ISO 3166-1 alpha-2' and 'alpha-3' (fetched 2026-11-17); withdrawn or formerly used codes from ISO 3166-3 (Debian iso-codes) and the deleted-code lists of Wikipedia 'ISO 3166-1 alpha-2', 'alpha-3' and 'numeric' (after Clive Feather's table of codes withdrawn from use)","iso_4217":"ISO 4217 list one (SIX, published 2026-09-17)","phone":"Google libphonenumber metadata 9.0.43 (libphonenumber-js 1.13.16, released 2026-11-10)","cldr":"Unicode CLDR 49 (cldr-json 49.0.0, released 2026-10-22): likelySubtags, numbers, gregorian dateFormats, weekData, measurementData, calendarPreferenceData, territoryInfo, currencyData. Node.js 22 Intl (ICU 78) still ships CLDR 48 and differs for ID and KG short dates, the TO group separator and PKR display digits"}},"warnings":[]}
Try it free
/try/country-locale-facts

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/country-locale-facts?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/country-locale-facts?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/country-locale-facts?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?

Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/country-locale-facts/update with your receipt. No money back through this form.

Missing a tool?

Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.