Fonti Kuziva API
Kuziva mafonti kubva kune letterform traits kana kuoneka, kusangana nelibrary yemahara open-source fonts. Free for humans on this site - this API is for programmatic and bulk use.
Endpoint
POST https://fonts.free/api/identify/
Maitiro maviri. Tsanangura mazano emubatsiri seJSON, kana sechifananidzo sedata refomu rakaomarara. Ziva?top=N (1-48) kuti uise kuti ndezvipi zvinosangana zvinodzokera.
1. Ne letterform hunhu
curl -X POST "https://fonts.free/api/identify/?top=8" \
-H "Content-Type: application/json" \
-d '{"answers": {"serif": ["none"], "contrast": ["low"], "a": ["double"]}}'
2. Kubva paImage (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"])
Kutenda
{
"ok": true,
"mode": "wizard",
"matches": [
{"slug": "roboto", "family": "Roboto",
"url": "https://fonts.free/fonts/roboto/",
"css": "…", "score": 3}
]
}
Kuzivana uye miganhu
Pasina chiratidzo, chiratidzo chinoshanda asi chine mwero wakaderera we IP - zvakanaka kuti uzviedza. Chiratidzo chinowedzera huwandu hwako hwekurambidzwa nechikwereti chemwedzi. Tsigira se header kana query parameter:
-H "X-Api-Key: your_key" # or ?key=your_key
Plans
Hapana kiyi inodiwa kune yakajeka kushandisa. Yakanaka kune prototypes uye maturusi epasi-volume.
Yekugadzira maapplication uye batch identification. Priority kusangana.
High-throughput kana embedded kushandiswa. Priority kusangana.
Ona mapurogiramu uye ugare uine
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.