{"openapi":"3.1.0","info":{"title":"Number API","version":"1.0.0","description":"A fast, fully-local number toolkit: spell numbers out in English words (great for amount-in-words on invoices and cheques), format ordinals (1st, 2nd, 112th), convert integers to and from Roman numerals (1 to 3999), convert numbers between any bases from 2 to 36, and format numbers locale-aware as decimal, currency or percent. Every endpoint accepts input via the query string or the request body. Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for invoicing and billing, localization, education and developer formatting tooling.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/number-api","description":"oanor gateway"}],"tags":[{"name":"Number"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/base":{"get":{"operationId":"get_v1_base","tags":["Number"],"summary":"Base conversion (2-36)","description":"","parameters":[{"name":"number","in":"query","required":true,"description":"Number in the source base","schema":{"type":"string"},"example":"ff"},{"name":"from","in":"query","required":false,"description":"Source base (default 10)","schema":{"type":"string"},"example":"16"},{"name":"to","in":"query","required":false,"description":"Target base (default 10)","schema":{"type":"string"},"example":"2"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"to":2,"from":16,"input":"ff","value":255,"result":"11111111"},"meta":{"timestamp":"2026-05-30T10:10:55.975Z","request_id":"5c8125db-c4c8-4d18-b0a1-5678bee5cbab"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/format":{"get":{"operationId":"get_v1_format","tags":["Number"],"summary":"Locale number formatting","description":"","parameters":[{"name":"number","in":"query","required":true,"description":"Number","schema":{"type":"string"},"example":"1234567.89"},{"name":"locale","in":"query","required":false,"description":"BCP-47 locale (default en-US)","schema":{"type":"string"},"example":"de-DE"},{"name":"style","in":"query","required":false,"description":"decimal, currency or percent","schema":{"type":"string"},"example":"currency"},{"name":"currency","in":"query","required":false,"description":"ISO 4217 code (for currency)","schema":{"type":"string"},"example":"EUR"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"style":"currency","locale":"de-DE","number":1234567.89,"formatted":"1.234.567,89 €"},"meta":{"timestamp":"2026-05-30T10:10:56.053Z","request_id":"07deeeab-cb92-4901-a50f-ea6b000aaa16"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/ordinal":{"get":{"operationId":"get_v1_ordinal","tags":["Number"],"summary":"Ordinal form","description":"","parameters":[{"name":"number","in":"query","required":true,"description":"Integer","schema":{"type":"string"},"example":"112"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"number":112,"ordinal":"112th","ordinal_words":"one hundred twelve"},"meta":{"timestamp":"2026-05-30T10:10:56.137Z","request_id":"b24e2592-f79d-4190-b0ba-afc8df358e37"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/roman":{"get":{"operationId":"get_v1_roman","tags":["Number"],"summary":"Roman numeral conversion","description":"","parameters":[{"name":"value","in":"query","required":false,"description":"Integer 1-3999 (value to roman)","schema":{"type":"string"},"example":"1994"},{"name":"roman","in":"query","required":false,"description":"Roman numeral (roman to value)","schema":{"type":"string"},"example":"MCMXCIV"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"roman":"MCMXCIV","value":1994},"meta":{"timestamp":"2026-05-30T10:10:56.211Z","request_id":"cf02fba5-7d14-4fd6-b34c-a791e4a87d09"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/words":{"get":{"operationId":"get_v1_words","tags":["Number"],"summary":"Number to English words","description":"","parameters":[{"name":"number","in":"query","required":true,"description":"Integer","schema":{"type":"string"},"example":"1234567"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"words":"one million two hundred thirty-four thousand five hundred sixty-seven","number":"1234567"},"meta":{"timestamp":"2026-05-30T10:10:56.279Z","request_id":"96783902-62b2-405c-a227-042a8319cb50"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":17000,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":400,"monthly_call_quota":270000,"rps_limit":12,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1200,"monthly_call_quota":1600000,"rps_limit":40,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":3200,"monthly_call_quota":8500000,"rps_limit":150,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/number-api"}