List named ratios
API · /modularscale-api
Modular Scale API
Generate a modular (geometric) scale for typography and spacing. Pick a base size and a ratio — a named musical interval (minor-second, major-second, minor-third, major-third, perfect-fourth, augmented-fourth, perfect-fifth, minor-sixth, golden, major-sixth, minor-seventh, major-seventh, octave and more), a plain number like 1.25, or an interval written as 3:2 — and the scale endpoint returns a harmonious set of sizes stepping up and down from the base, where each value is base × ratio^step (step 0 is the base). Choose how many steps above and below, the rounding, and an optional unit suffix (px, rem, em) so the values come back ready to paste into CSS or design tokens. The ratios endpoint lists every named ratio with its decimal value. A modular scale gives type, spacing and layout a consistent rhythm instead of arbitrary pixel values. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This produces a numeric size scale; for colour scales and gradients use the Gradient API.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 90 ms
- Server probes · 24h
- Subscribers
- 3,497
- active
- Total calls
- 39
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 2,035 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 2,035 calls/month
- 2 req/sec
- All ratios + custom
- No credit card
Starter
€3.55 /month
- 11,550 calls / month
- 8 requests / second
- Hard cap (429 above quota, no overage)
- 11.55k calls/month
- 8 req/sec
- Units + rounding
- Email support
Pro
€23.45 /month
- 166,500 calls / month
- 20 requests / second
- Hard cap (429 above quota, no overage)
- 166.5k calls/month
- 20 req/sec
- Design-token pipelines
- Priority support
Mega
€61.45 /month
- 875,000 calls / month
- 50 requests / second
- Hard cap (429 above quota, no overage)
- 875k calls/month
- 50 req/sec
- Platform scale
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
Golden Ratio & Scale API
Design-proportion maths as an API, computed locally and deterministically. The divide endpoint splits a length by the golden section, the division beloved of artists and designers in which the whole is to the longer part as the longer is to the shorter, both ratios equal to φ = (1+√5)/2 ≈ 1.618 — so 100 splits into a 61.8 longer segment and a 38.2 shorter one — and can also extend a single segment to its larger or smaller golden partner. The rectangle endpoint gives the other side and the area of a golden rectangle from either side, the shape that leaves a smaller golden rectangle when you remove a square. The scale endpoint builds a modular (typographic) scale — base · ratio^step across a range of steps up and down — for harmonious type sizes and spacing, taking a numeric ratio or a named musical one such as minor-third (1.2), major-third (1.25), perfect-fourth (1.333) or golden (φ); a 16-base major-third scale gives 16, 20, 25, 31.25 and so on. Lengths are unit-agnostic. Everything is computed locally and deterministically, so it is instant and private. Ideal for graphic-design, web-design, UI, typography, layout and architecture app developers, type-scale and proportion tools, and design systems. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is proportion and scale; for pixel-density and print sizing use a PPI/DPI API.
api.oanor.com/goldenratio-api
Fonts API
The Google Fonts catalogue as an API — 1,900+ open-source font families with everything you need to pick and embed a typeface. Look up a family (e.g. Roboto → category, available weights, variable-font axes, subsets and a ready-to-use CSS embed URL); search by name, category (Sans Serif, Serif, Display, Handwriting, Monospace), subset, weight or variable-font support; or list the most popular families. Each record carries the weights/styles, variable axes (wght, wdth, …), language subsets, designers, popularity rank and a Google Fonts CSS2 embed URL. Ideal for design tools, website builders, font pickers and theming systems.
api.oanor.com/fonts-api
Color Name API
Name any colour. The nearest endpoint takes a colour as a hex, an rgb() value, an r,g,b triple or another name and returns the closest of the 140+ CSS named colours — matched perceptually with CIE76 Lab distance, not naive RGB, so the name actually looks right — along with the distance and whether it is an exact match. The name endpoint resolves a CSS colour keyword (e.g. rebeccapurple, cornflowerblue) to its hex and RGB, and list returns the whole named-colour set. Perfect for design tools and pickers, accessibility and theming, turning brand hex codes into human labels, and naming colours in generated palettes. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. Distinct from colour conversion / palette / contrast tooling, which does not name colours.
api.oanor.com/colorname-api
Data URI API
Encode content into a data: URI and decode a data: URI back to its content (RFC 2397). data: URIs inline a file directly into HTML, CSS, JSON or email — perfect for small images, SVG, fonts and icons that you want to embed without a separate HTTP request. The encode endpoint wraps your content (given as UTF-8 text, base64 or hex for binary) with a chosen media type and charset, in either base64 or URL (percent) encoding; the decode endpoint parses any data: URI and returns its media type, charset, whether it was base64, the byte size, and the payload as text and/or base64. Pure local computation — no key, no third-party service, instant; up to 4 MB via POST. Live, nothing stored. 3 endpoints. Distinct from a plain base64/hex encoder and from SVG-specific tooling.
api.oanor.com/dataurl-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Modular Scale API?
What's the rate limit for Modular Scale API?
How much does Modular Scale API cost?
Can I cancel my subscription anytime?
Is Modular Scale API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/modularscale-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/modularscale-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/modularscale-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/modularscale-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.