The Fontsource API provides developers with access to information about the fonts supported by the Fontsource repository.
Note: The API servers are generously sponsored by JSDelivr. We recommend using them as other CDNs may impose restrictions due to certain package sizes exceeding their limits.
To access the Fontsource API, you can use the following URL:
You can include additional queries in the URL to filter the responses based on specific criteria. For example,
api.fontsource.org/v1/fonts?subsets=latin,latin-ext&variable=truewill return fonts that match subsets
latin-ext, as well as if it is a variable font.
- Fontlist: Retrieve a list of available fonts.
- Fonts: Get detailed information about specific fonts.
- Font ID: Access information about a font based on its ID.
Please refer to the respective sections for more detailed documentation on each topic.