Documentation
Fonts
The Fonts endpoint provides an array of individual font objects. You can access this endpoint using the URL
api.fontsource.org/v1/fonts
.Response
The API response for the Fonts endpoint is an array of font objects. Each font object represents a specific font and provides detailed information about it.
Example response:
⬤⬤
json
Queries
The Fonts endpoint allows you to send queries to filter the list of fonts. Multiple queries can be combined using the & operator.
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=true
will return fonts that match subsets latin
and latin-ext
, as well as if it is a variable font.Options
You can use the following queries to filter the list of fonts:
Query | Type | Example |
---|---|---|
id | string | id=roboto |
family | string | family=Roboto |
subsets | string | subsets=latin,latin-ext |
weights | number[] | weights=100,900 |
styles | string[] | styles=normal,italic |
defSubset | string | defSubset=arabic |
variable | boolean | variable=true |
lastModified | string | lastModified=2020-09-02 |
category | string | category=display |
version | string | version=v14 |
type | string | type=google |
Known values
- subsets:
latin, latin-ext, sinhala, greek, kannada, telugu, vietnamese, hebrew, cyrillic, cyrillic-ext, greek-ext, arabic, devanagari, khmer, tamil, thai, bengali, gujarati, oriya, malayalam, gurmukhi, korean, all, japanese, classic, classic-mini, modern, modern-mini, seggchan, seggchan-mini, cherokee, tibetan, kayah-li, chinese-simplified, base, music, adlam, anatolian-hieroglyphs, armenian, avestan, balinese, bamum, bassa-vah, batak, bhaiksuki, brahmi, buginese, buhid, canadian-aboriginal, carian, caucasian-albanian, chakma, cham, coptic, cuneiform, cypriot, deseret, duployan, egyptian-hieroglyphs, elbasan, elymaic, georgian, glagolitic, gothic, grantha, gunjala-gondi, hanifi-rohingya, hanunoo, hatran, chinese-hongkong, imperial-aramaic, indic-siyaq-numbers, inscriptional-pahlavi, inscriptional-parthian, javanese, kaithi, kharoshthi, khojki, khudawadi, lao, lepcha, limbu, linear-a, linear-b, lisu, lycian, lydian, mahajani, mandaic, manichaean, marchen, masaram-gondi, math, mayan-numerals, medefaidrin, meetei-mayek, meroitic, miao, modi, mongolian, mro, multani, myanmar, nko, nabataean, new-tai-lue, newa, nushu, ogham, ol-chiki, old-hungarian, old-italic, old-north-arabian, old-permic, old-persian, old-sogdian, old-south-arabian, old-turkic, osage, osmanya, pahawh-hmong, palmyrene, pau-cin-hau, phags-pa, phoenician, psalter-pahlavi, rejang, runic, samaritan, saurashtra, sharada, shavian, siddham, sogdian, sora-sompeng, soyombo, sundanese, syloti-nagri, symbols, syriac, tagalog, tagbanwa, tai-le, tai-tham, tai-viet, takri, tamil-supplement, chinese-traditional, thaana, tifinagh, tirhuta, ugaritic, vai, wancho, warang-citi, yi, zanabazar-square, ahom, dogra, ethiopic, nyiakeng-puachue-hmong, tangut, yezidi, farsi-digits, farsi-digits-without-latin, without-latin, latin-oblique
- weights:
100,200,300,400,500,600,700,800,900
- styles:
italic, normal