Web Extraction

Identify fonts and available font files used by a website.

get/web/fonts

Request

  • Base URL: https://api.context.dev/v1
  • URL: https://api.context.dev/v1/web/fonts
  • Auth: HTTP bearer

Query parameters

directUrlstring uri

Exact page to inspect. Provide either domain or directUrl.

domainstring

Domain name to extract fonts from (e.g., 'example.com', 'google.com'). The domain will be automatically normalized and validated. You must provide either 'domain' or 'directUrl', but not both.

maxAgeMsinteger nullable

Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. 0 refreshes.

millisecondsinteger required

Deadline in milliseconds.

behavior'fail' | 'return-partial'

"fail" returns 408 at the deadline. "return-partial" returns available results; inspect the response’s partial flag. "return-partial" requires at least 5000 ms.

tagsstring[]

Labels for filtering usage in the dashboard.

Comma-separated labels for filtering usage, e.g. production,team-alpha.

[
  "production",
  "team-alpha"
]

Response

Successful response

finalDOMState'loaded' | 'still-loading'

loaded, or still-loading when capture ended before the page finished loading.

statusstring required

Always ok on success.

domainstring required

The normalized domain that was processed

fontLinksobject

Available font files keyed by family name. Omitted when no downloadable fonts are found.

codeinteger required

HTTP status code, e.g., 200

request_idstring uuid required

Unique ID of this request, also in X-Request-Id. Include it when contacting support.

Example response

{
  "request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"
}

Changes

    • warning

      added the new NO_PUBLISHED_MARKDOWN enum value to the response property for the response status

    • warning

      added the new NO_PUBLISHED_MARKDOWN enum value to the response property for the response status

    • warning

      added the new NO_PUBLISHED_MARKDOWN enum value to the response property for the response status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status