Font Identification API
Identify fonts from letterform traits or an image, matched against a library of free open-source fonts. Free for humans on this site - this API is for programmatic and bulk use.
Endpoint
POST https://fonts.free/api/identify/
Moɗa biyu. Aika amsawar mai shiryawa kamar JSON, ko kuma hoton kamar bayanan fom mai sassa da yawa. Ƙara? sama=N (1-48) don ƙayyade adadin ma'auni da za'a dawo dasu.
1. By letterform traits
curl -X POST "https://fonts.free/api/identify/?top=8" \
-H "Content-Type: application/json" \
-d '{"answers": {"serif": ["none"], "contrast": ["low"], "a": ["double"]}}'
2. Daga wani hoton (beta)
curl -X POST "https://fonts.free/api/identify/" \
-F "image=@sample.png"
Python
import requests
H = {"X-Api-Key": "your_key"}
# by traits
r = requests.post("https://fonts.free/api/identify/?top=8", headers=H,
json={"answers": {"serif": ["none"], "contrast": ["low"]}})
# from an image
r = requests.post("https://fonts.free/api/identify/", headers=H,
files={"image": open("sample.png", "rb")})
for m in r.json()["matches"]:
print(m["family"], m["score"], m["url"])
Mawallafi
{
"ok": true,
"mode": "wizard",
"matches": [
{"slug": "roboto", "family": "Roboto",
"url": "https://fonts.free/fonts/roboto/",
"css": "…", "score": 3}
]
}
Authentication and limits
Without a key the endpoint works but is rate-limited per IP - fine for trying it out. A key raises your limit against a monthly quota. Send it as a header or query parameter:
-H "X-Api-Key: your_key" # or ?key=your_key
Plans
Ba'a buƙatar maɓalli don amfani mai haske. Mai kyau ga siffofin farko da kayan aikin ƙarancin adadin.
Domin aikace-aikacen samarwa da ganewar bangare.
High-throughput or embedded use. Priority matching.
Ka duba shirye-shirye da kuma shiga
The free tier needs no key - just call the endpoint, it is rate-limited per IP. Subscribe on the pricing page for a key with a higher monthly quota. Every match the API returns is a free, open-licensed font, so there is nothing to license downstream.