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' curl 'https://components.ai/api/v1/typefaces/recursive'
Retrieve font data that can be passed directly to three's FontLoader.
# curl 'https://components.ai/api/v1/typefaces/recursive/VARIANT/WEIGHT' curl 'https://components.ai/api/v1/typefaces/recursive/normal/400'
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: