Skip to main content
GET
/
brand
/
fonts
JavaScript
import BrandDev from 'brand.dev';

const client = new BrandDev({
  apiKey: 'My API Key',
});

const response = await client.brand.fonts({ domain: 'domain' });

console.log(response.code);
{
  "status": "<string>",
  "domain": "<string>",
  "fonts": [
    {
      "font": "<string>",
      "uses": [
        "<string>"
      ],
      "fallbacks": [
        "<string>"
      ],
      "num_elements": 123,
      "num_words": 123,
      "percent_words": 123,
      "percent_elements": 123
    }
  ],
  "code": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

domain
string
required

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).

Required range: 1 <= x <= 300000

Response

Successful response

status
string
required

Status of the response, e.g., 'ok'

domain
string
required

The normalized domain that was processed

fonts
object[]
required

Array of font usage information

code
integer
required

HTTP status code, e.g., 200