GET/v1/fonts
Fonts available to text layers
Any Google Fonts family works by name; this list is the curated set with their weights. System fonts need no loading.
REQUEST
curl "https://api.imageapis.com/v1/fonts" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.imageapis.com/v1/fonts", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.imageapis.com/v1/fonts", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"fonts": [
{
"name": "Inter",
"category": "sans-serif",
"weights": "100..900"
},
{
"name": "Playfair Display",
"category": "serif",
"weights": "400..900"
}
],
"system": [
"Arial",
"Georgia",
"system-ui"
],
"note": "Other Google Fonts families load at weight 400 when named"
}