Documentation

Fontlist

The Fontlist endpoint provides an object that contains a list of fonts and their associated properties.

HTTP Request

  • GET https://api.fontsource.org/fontlist
  • GET https://api.fontsource.org/fontlist?{query}

Response

The API response for the Fontlist endpoint is a JSON object that represents the available fonts and their corresponding types.

Attributes:

Returns an object of:

AttributeTypeDescription
[id]stringThe font ID
typegoogle | icons | otherThe font type

Response example:

⬤⬤

{
...
"abeezee": "google",
"material-icons": "icons",
"yakuhanjp": "other"
...
}

json

Queries

The Fontlist API supports the following queries without values:

QueryReturns ID PropertyProperty Type
familyFamily namesstring
subsetsSupported subsetsstring[]
weightsSupported weightsnumber[]
stylesSupported stylesstring[]
variableIf font is variableboolean
categoryFont categorystring
lastModifiedLast modified datestring
versionFont versionstring
typeFont typestring

Example:

  • GET https://api.fontsource.org/fontlist?family)
  • GET https://api.fontsource.org/fontlist?subsets)
  • GET https://api.fontsource.org/fontlist?lastModified

Note: You cannot query for multiple properties at once.