/v1/fonts endpoint
Detected font families from CSS declarations, Google Fonts links, and style blocks.
Language:
POST
/v1/fonts
5 creditsFetches the page and its stylesheets, then extracts all font families from font-family CSS declarations and Google Fonts <link> tags. Returns an ordered list of up to 10 unique font families.
Request body
| field | type | req | description |
|---|---|---|---|
url | string | yes | Full URL of the site. Must include protocol (https://). |
options.timeout | number | no | Timeout in ms. Default: 30000. Max: 60000. |
Example
curl -X POST https://contextforai.ashutoshswamy.in/v1/fonts \
-H "Authorization: Bearer cfai_your_key_here" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Response
200 OK
{
"url": "https://example.com",
"fonts": ["Inter", "Geist Sans", "Geist Mono"],
"count": 3,
"extractedAt": "2026-07-01T10:00:00Z"
}