Variable
The Variable endpoint allows you get specific axis data for a variable font.
HTTP Request
GET https://api.fontsource.org/v1/variable/{id}
Response
The API response for the Variable endpoint is a JSON object that provides axis data for a variable font.
Attributes
Returns an object with:
Attribute | Type | Description |
---|---|---|
family | string | Font family |
axes | Record<string, AxesData> | Axis data |
AxesData
Attribute | Type | Description |
---|---|---|
default | number | Default value |
min | number | Minimum value |
max | number | Maximum value |
step | number | Step value |
Response example
⬤⬤
json
Example
GET https://api.fontsource.org/v1/variable/inter
GET https://api.fontsource.org/v1/variable/roboto-flex
GET https://api.fontsource.org/v1/variable/wavefont