← Back to Context.dev
GET/web/fonts

Scrape Fonts

Scrape font information from a website including font families, usage statistics, fallbacks, and element/word counts.

Context.dev·$0.03 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "context-dev", path: "/web/fonts", query: { "domain": "example" } }); console.log(output);

Query parameters

domainrequired
string

Domain name to extract fonts from (e.g., 'example.com', 'google.com'). The domain will be automatically normalized and validated.

timeoutMS
integer

Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).

Response

code
number
fonts.0.font
string
fonts.0.uses.0
string
fonts.0.fallbacks.0
string
fonts.0.num_words
number
fonts.0.num_elements
number
fonts.0.percent_words
number
fonts.0.percent_elements
number
domain
string
status
string
key_metadata.credits_consumed
number
key_metadata.credits_remaining
number
    Orthogonal - Giving AI agents the tools they need.