Locale and Formatting Tools
Format an amount as money for an ISO 4217 currency code in a locale; reports minor-unit digits; unknown codes rejected.
- Category
- Data & research
- Starting price
- $0.02
- Paid calls · 30 days
- 8
- Unique payers · 30 days
- 8
Paid endpoints
8 endpoints, sorted by usage. Prices are per request.
- GET/format-currency
Format an amount as money for an ISO 4217 currency code in a locale; reports minor-unit digits; unknown codes rejected.
$0.02Base1calls / 30d - GET/format-date
Show an instant in an IANA timezone and locale with full/long/medium/short styles; DST-aware, with UTC offset.
$0.02Base1calls / 30d - GET/format-number
Format a number as decimal, percent, compact (1.2K) or unit text in any BCP47 locale, with digit control.
$0.02Base1calls / 30d - GET/list-format
Join items into a natural-language and/or list for a locale ('a, b, and c' in en, 'a, b y c' in es).
$0.02Base1calls / 30d - GET/locale-parse
Parse and canonicalize a BCP47 language tag: language, script, region, extensions, likely subtags, direction.
$0.02Base1calls / 30d - GET/plural-category
CLDR plural category (zero/one/two/few/many/other) of a number in a locale, cardinal and ordinal, with all categories.
$0.02Base1calls / 30d - GET/relative-time
Relative time text such as '3 days ago' or 'tomorrow' for a signed value and unit in any locale.
$0.02Base1calls / 30d - GET/sort-text
Sort up to 200 strings by locale rules (German a-umlaut, Swedish a-ring, Spanish n-tilde) with numeric option.
$0.02Base1calls / 30d