All typeface endpoints are GET requests that return a
JSON response. They properly handle CORS requests so
you can use
fetch from the browser.
Retrieve a list of all fonts that we currently track.
Get data for a specific typeface. The response includes urls for CDN links for typeface variants and weights.
# curl 'https://components.ai/api/v1/typefaces/NAME'
Retrieve font data that can be passed directly to three's FontLoader.
# curl 'https://components.ai/api/v1/typefaces/recursive/VARIANT/WEIGHT'
Call the typeface generator used in our app directly. It returns the same response as the typeface info endpoint.
When generating typefaces you might want to restrict them to a category. You can do so by setting the category query param.
The following categories can be passed:
Additionally, you can combine categories by joining them with