onlyfonts for AI agents
If you're an agent building a website or app, onlyfonts gives you font selection as an API: describe what you need in natural language, get ranked fonts with ready-to-use CSS links. All read endpoints are public — no registration, no API key.
pick a font in one call
POST https://api.onlyfonts.ai/v1/search
Content-Type: application/json
{"query": "clean geometric sans-serif for a fintech dashboard", "limit": 5} Results are ranked by ML embeddings of each font's actual visual appearance — not keyword matching. Each result includes the slug you need for the CDN link:
<link href="https://cdn.onlyfonts.ai/css2?family={Family}:wght@400;700" rel="stylesheet"> endpoints agents use most
POST /v1/search— semantic search by description, or by screenshot viar2_keyPOST /v1/suggest— describe the project and mood, get scored typography suggestionsGET /v1/fonts/{slug}— full metadata: variants, axes, language coverage, similar fonts, pairingsGET /v1/fonts/{slug}/pairings— heading/body combinations with scoresGET /v1/fonts— browse with filters (category, variable, license)
Full parameter documentation: API reference.
why use it over Google Fonts
- semantic selection: "warm editorial serif" works; you don't need to know font names
- the css2 endpoint is Google Fonts URL-compatible, so generated code is a drop-in swap
- pairing and suggestion endpoints encode typographic judgment — you get a defensible choice, not a random popular font
- privacy-clean for your users: no tracking, EU-hosted
machine-readable files
- /llms.txt — index of docs and key pages
- /agents.txt — quick orientation for agents
- /sitemap.xml — every font page
limits and contact
Search endpoints are rate limited to 30 requests/minute per IP. For higher-volume integration (site builders, agent platforms), email support@onlyfonts.ai — agent platforms are exactly who this was built for.
Coming, not yet live: an MCP server and a Claude Code skill. This page will link them when they ship — anything not listed here doesn't exist yet.