{"openapi":"3.1.0","info":{"title":"Scientific Notation API","version":"1.0.0","description":"Scientific number representation as an API. The scientific endpoint expresses a number in both scientific notation (one digit before the decimal point × a power of ten) and engineering notation (the exponent a multiple of three, lining up with SI prefixes), and reports the mantissa and exponent. The sigfigs endpoint rounds a number to a chosen number of significant figures, and counts the significant figures in a value — respecting the rules for leading zeros, trailing zeros and the decimal point, and flagging the ambiguous cases such as \"1200\". The si-prefix endpoint formats a number with the right metric prefix (1500 → 1.5 k, 2.3×10⁹ → 2.3 G, 0.0023 → 2.3 m) with an optional unit, and parses a prefixed value back to a plain number (2.2 MΩ → 2,200,000). Everything is computed locally and deterministically, so it is instant and private. Ideal for science and engineering tools, lab and measurement software, electronics and signal work, and education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This is scientific number representation; for locale number formatting use a number-format API and for number-to-words or Roman numerals use a number API.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/sigfig-api","description":"oanor gateway"}],"tags":[{"name":"Numbers"},{"name":"Meta"}],"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/scientific":{"get":{"operationId":"get_v1_scientific","tags":["Numbers"],"summary":"Scientific & engineering notation","description":"","parameters":[{"name":"value","in":"query","required":true,"description":"A number","schema":{"type":"string"},"example":"1500"},{"name":"sigfigs","in":"query","required":false,"description":"Mantissa sig figs (default 6)","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"value":1500,"exponent":3,"mantissa":1.5,"scientific":"1.5e+3","engineering":"1.5e+3","scientific_pretty":"1.5 × 10^3","engineering_pretty":"1.5 × 10^3","engineering_exponent":3,"engineering_mantissa":1.5},"meta":{"timestamp":"2026-06-03T17:42:03.238Z","request_id":"74cbd299-d352-40ec-bf45-55417200cfee"},"status":"ok","message":"Scientific notation","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/si-prefix":{"get":{"operationId":"get_v1_si_prefix","tags":["Numbers"],"summary":"SI metric prefix","description":"","parameters":[{"name":"value","in":"query","required":false,"description":"A number","schema":{"type":"string"},"example":"2300000000"},{"name":"unit","in":"query","required":false,"description":"Optional unit","schema":{"type":"string"},"example":"Hz"},{"name":"parse","in":"query","required":false,"description":"Or a prefixed string","schema":{"type":"string"},"example":"2.2 MΩ"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"input":"2.2 MΩ","value":2200000,"prefix":"M"},"meta":{"timestamp":"2026-06-03T17:42:03.344Z","request_id":"12216ad6-62ca-4238-b132-8aef030314f8"},"status":"ok","message":"SI prefix","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/sigfigs":{"get":{"operationId":"get_v1_sigfigs","tags":["Numbers"],"summary":"Round / count significant figures","description":"","parameters":[{"name":"value","in":"query","required":true,"description":"A number","schema":{"type":"string"},"example":"3.14159"},{"name":"round_to","in":"query","required":false,"description":"Round to N sig figs","schema":{"type":"string"},"example":"3"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"value":"3.14159","rounded":3.14,"round_to":3,"rounded_string":"3.14","significant_figures":{"note":"trailing zeros after a decimal point are significant","count":6}},"meta":{"timestamp":"2026-06-03T17:42:03.452Z","request_id":"4da87a57-16c9-4ed1-83f1-ffa7c589f00d"},"status":"ok","message":"Significant figures","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/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"name":"Scientific Notation API","notes":"Engineering notation uses exponents that are multiples of 3. SI prefixes from yocto (10⁻²⁴) to yotta (10²⁴). µ and u both mean micro. Nothing is stored.","version":"v1","endpoints":[{"path":"/v1/scientific","params":{"value":"a number","sigfigs":"mantissa significant figures (default 6)"},"returns":"scientific and engineering notation"},{"path":"/v1/sigfigs","params":{"value":"a number","round_to":"round to N significant figures"},"returns":"the rounded value and/or the significant-figure count"},{"path":"/v1/si-prefix","params":{"unit":"optional unit","parse":"or a prefixed string to parse","value":"a number"},"returns":"the SI-prefixed form (or the parsed value)"},{"path":"/v1/meta","params":[],"returns":"this document"}],"description":"Scientific number representation as an API. The scientific endpoint expresses a number in both scientific notation (one digit before the decimal point × a power of ten) and engineering notation (the exponent a multiple of three, lining up with SI prefixes), and reports the mantissa and exponent. The sigfigs endpoint rounds a number to a chosen number of significant figures, and counts the significant figures in a value (respecting the rules for leading zeros, trailing zeros and the decimal point, and flagging the ambiguous cases). The si-prefix endpoint formats a number with the right metric prefix (1500 → 1.5 k, 2.3×10⁹ → 2.3 G, 0.0023 → 2.3 m) with an optional unit, and parses a prefixed value back to a plain number (2.2 MΩ → 2200000). Everything is computed locally and deterministically, so it is instant and private. Ideal for science and engineering tools, lab and measurement software, electronics, and education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This is scientific number representation; for locale number formatting use a number-format API and for number-to-words or Roman numerals use a number API."},"meta":{"timestamp":"2026-06-03T17:42:03.571Z","request_id":"5c49da00-ab55-4d2f-8f44-31754b9234e1"},"status":"ok","message":"Meta","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":8635,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":1015,"monthly_call_quota":18150,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":3005,"monthly_call_quota":232500,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":6805,"monthly_call_quota":1205000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/sigfig-api"}