Scrape Fonts
Detect the fonts a website uses, with usage statistics with the Context.dev API. The sample response includes status information. Use the result as input for a related analysis or application. The GET request schema also lists directUrl, domain, maxAgeMs.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Scrape Fonts
Prepare your request, then continue with your agent.
Selected price
$0.002 / billing credit
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
cache_metadataobjectage_msintegerstatusstring
codeintegerdomainstringfinalDOMStatestringfontLinksobjectIBM Plex Monoobjectcategorystringfilesobject100string200string300string400string500string600string700string
typestring
IBM Plex Sansobjectcategorystringfilesobject100string200string300string400string500string600string700string
typestring
fontsobject[]fallbacksstring[]fontstringnum_elementsintegernum_wordsintegerpercent_elementsintegerpercent_wordsintegerusesstring[]
key_metadataobjectcredits_consumedinteger
request_idstringstatusstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cache_metadata?: {
age_ms?: number;
status?: string;
};
code?: number;
domain?: string;
finalDOMState?: string;
fontLinks?: {
"IBM Plex Mono"?: {
category?: string;
files?: {
"100"?: string;
"200"?: string;
"300"?: string;
"400"?: string;
"500"?: string;
"600"?: string;
"700"?: string;
};
type?: string;
};
"IBM Plex Sans"?: {
category?: string;
files?: {
"100"?: string;
"200"?: string;
"300"?: string;
"400"?: string;
"500"?: string;
"600"?: string;
"700"?: string;
};
type?: string;
};
};
fonts?: Array<{
fallbacks?: Array<string>;
font?: string;
num_elements?: number;
num_words?: number;
percent_elements?: number;
percent_words?: number;
uses?: Array<string>;
}>;
key_metadata?: {
credits_consumed?: number;
};
request_id?: string;
status?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
context-devCurrent Context.dev — Scrape Fonts · GET · View API reference | $0.002 / billing credit | — | —successP50— |
- Unit price
- $0.002
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/context-dev/v1/web/fonts- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/context-dev/v1/web/fonts?domain=context.dev' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
directUrl | URL query parametersquery | string | No | Exact page to inspect. Provide either `domain` or `directUrl`. |
domain | URL query parametersquery | string | No | 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. minLength: 3 |
maxAgeMs | URL query parametersquery | integer | null | No | Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"cache_metadata": {
"age_ms": 3801133800,
"status": "hit"
},
"code": 200,
"domain": "context.dev",
"finalDOMState": "loaded",
"fontLinks": {
"IBM Plex Mono": {
"category": "monospace",
"files": {
"100": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6pfjptAgt5VM-kVkqdyU8n3kwq0n1hj-sNFQ.ttf",
"200": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3uAL8ldPg-IUDNg.ttf",
"300": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3oQI8ldPg-IUDNg.ttf",
"400": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F63fjptAgt5VM-kVkqdyU8n5igg1l9kn-s.ttf",
"500": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3twJ8ldPg-IUDNg.ttf",
"600": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3vAO8ldPg-IUDNg.ttf",
"700": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3pQP8ldPg-IUDNg.ttf"
},
"type": "google"
},
"IBM Plex Sans": {
"category": "sans-serif",
"files": {
"100": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6lhzAKI5loa26g.ttf",
"200": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDallzAKI5loa26g.ttf",
"300": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDtFlzAKI5loa26g.ttf",
"400": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6llzAKI5loa26g.ttf",
"500": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD2FlzAKI5loa26g.ttf",
"600": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDNF5zAKI5loa26g.ttf",
"700": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDDV5zAKI5loa26g.ttf"
},
"type": "google"
}
},
"fonts": [
{
"fallbacks": [
"IBM Plex Sans Fallback",
"system-ui",
"sans-serif"
],
"font": "IBM Plex Sans",
"num_elements": 575,
"num_words": 14715,
"percent_elements": 75,
"percent_words": 98,
"uses": [
"body",
"div",
"style",
"script",
"section",
"main",
"svg",
"line",
"header",
"a",
"span",
"path",
"button",
"p",
"circle",
"img",
"canvas",
"h1",
"form",
"label",
"input",
"h2",
"h3",
"ol",
"li",
"br",
"nav",
"blockquote",
"strong",
"article",
"time",
"details",
"summary",
"footer",
"ul",
"g",
"defs",
"filter",
"feflood",
"fecolormatrix",
"feoffset",
"fegaussianblur",
"fecomposite",
"feblend",
"next-route-announcer"
]
},
{
"fallbacks": [
"IBM Plex Mono Fallback",
"ui-monospace",
"monospace"
],
"font": "IBM Plex Mono",
"num_elements": 116,
"num_words": 185,
"percent_elements": 15,
"percent_words": 1,
"uses": [
"p",
"span",
"div",
"pre",
"code",
"a"
]
},
{
"fallbacks": [
"monospace"
],
"font": "ui-monospace",
"num_elements": 76,
"num_words": 130,
"percent_elements": 10,
"percent_words": 1,
"uses": [
"p",
"span",
"div"
]
},
{
"fallbacks": [],
"font": "Overused Grotesk",
"num_elements": 2,
"num_words": 2,
"percent_elements": 0,
"percent_words": 0,
"uses": [
"text",
"tspan"
]
}
],
"key_metadata": {
"credits_consumed": 5
},
"request_id": "f85b0f21-14a7-48d2-8f13-3f332b080f83",
"status": "ok"
}Usage billing
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Scrape Fonts
Detect the fonts a website uses, with usage statistics with the Context.dev API. The sample response includes status information. Use the result as input for a related analysis or application. The GET request schema also lists directUrl, domain, maxAgeMs.
## Available implementations
context-dev · Context.dev — Scrape Fonts: https://openany.si/markets/apis/capabilities/context-dev-scrape-fonts?offering=8cba39c4-c068-4914-aff2-f278e3833cb2 · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/apis/8cba39c4-c068-4914-aff2-f278e3833cb2
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/fonts
Price: $0.002 / billing credit
Pricing note: A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Provider: context-dev
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/context-dev/v1/web/fonts?domain=context.dev' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Context.dev — Scrape Fonts",
"endpoint": "https://api.openany.si/v1/agent-apis/context-dev/v1/web/fonts",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Exact page to inspect. Provide either `domain` or `directUrl`.",
"location": "query",
"name": "directUrl",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "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.",
"location": "query",
"min_length": 3,
"name": "domain",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes.",
"location": "query",
"name": "maxAgeMs",
"nullable": true,
"required": false,
"type": "integer"
}
],
"billing": {
"currency": "USD",
"mode": "usage",
"priceMicroUsd": "2000",
"rounding": "ceil",
"unit": "credit",
"unitQuantity": "1"
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"domain": "context.dev"
}
},
"response_body": {
"cache_metadata": {
"age_ms": 3801133800,
"status": "hit"
},
"code": 200,
"domain": "context.dev",
"finalDOMState": "loaded",
"fontLinks": {
"IBM Plex Mono": {
"category": "monospace",
"files": {
"100": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6pfjptAgt5VM-kVkqdyU8n3kwq0n1hj-sNFQ.ttf",
"200": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3uAL8ldPg-IUDNg.ttf",
"300": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3oQI8ldPg-IUDNg.ttf",
"400": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F63fjptAgt5VM-kVkqdyU8n5igg1l9kn-s.ttf",
"500": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3twJ8ldPg-IUDNg.ttf",
"600": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3vAO8ldPg-IUDNg.ttf",
"700": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3pQP8ldPg-IUDNg.ttf"
},
"type": "google"
},
"IBM Plex Sans": {
"category": "sans-serif",
"files": {
"100": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6lhzAKI5loa26g.ttf",
"200": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDallzAKI5loa26g.ttf",
"300": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDtFlzAKI5loa26g.ttf",
"400": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6llzAKI5loa26g.ttf",
"500": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD2FlzAKI5loa26g.ttf",
"600": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDNF5zAKI5loa26g.ttf",
"700": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDDV5zAKI5loa26g.ttf"
},
"type": "google"
}
},
"fonts": [
{
"fallbacks": [
"IBM Plex Sans Fallback",
"system-ui",
"sans-serif"
],
"font": "IBM Plex Sans",
"num_elements": 575,
"num_words": 14715,
"percent_elements": 75,
"percent_words": 98,
"uses": [
"body",
"div",
"style",
"script",
"section",
"main",
"svg",
"line",
"header",
"a",
"span",
"path",
"button",
"p",
"circle",
"img",
"canvas",
"h1",
"form",
"label",
"input",
"h2",
"h3",
"ol",
"li",
"br",
"nav",
"blockquote",
"strong",
"article",
"time",
"details",
"summary",
"footer",
"ul",
"g",
"defs",
"filter",
"feflood",
"fecolormatrix",
"feoffset",
"fegaussianblur",
"fecomposite",
"feblend",
"next-route-announcer"
]
},
{
"fallbacks": [
"IBM Plex Mono Fallback",
"ui-monospace",
"monospace"
],
"font": "IBM Plex Mono",
"num_elements": 116,
"num_words": 185,
"percent_elements": 15,
"percent_words": 1,
"uses": [
"p",
"span",
"div",
"pre",
"code",
"a"
]
},
{
"fallbacks": [
"monospace"
],
"font": "ui-monospace",
"num_elements": 76,
"num_words": 130,
"percent_elements": 10,
"percent_words": 1,
"uses": [
"p",
"span",
"div"
]
},
{
"fallbacks": [],
"font": "Overused Grotesk",
"num_elements": 2,
"num_words": 2,
"percent_elements": 0,
"percent_words": 0,
"uses": [
"text",
"tspan"
]
}
],
"key_metadata": {
"credits_consumed": 5
},
"request_id": "f85b0f21-14a7-48d2-8f13-3f332b080f83",
"status": "ok"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 3
Review these request fields before running. Keep the published provider and request method unchanged.
directUrl- Exact page to inspect. Provide either `domain` or `directUrl`.
domain- 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.
maxAgeMs- Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/context-dev/v1/web/fonts?domain=context.dev' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "cache_metadata": { "age_ms": 3801133800, "status": "hit" }, "code": 200, "domain": "context.dev", "finalDOMState": "loaded", "fontLinks": { "IBM Plex Mono": { "category": "monospace", "files": { "100": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6pfjptAgt5VM-kVkqdyU8n3kwq0n1hj-sNFQ.ttf", "200": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3uAL8ldPg-IUDNg.ttf", "300": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3oQI8ldPg-IUDNg.ttf", "400": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F63fjptAgt5VM-kVkqdyU8n5igg1l9kn-s.ttf", "500": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3twJ8ldPg-IUDNg.ttf", "600": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3vAO8ldPg-IUDNg.ttf", "700": "https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3pQP8ldPg-IUDNg.ttf" }, "type": "google" }, "IBM Plex Sans": { "category": "sans-serif", "files": { "100": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6lhzAKI5loa26g.ttf", "200": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDallzAKI5loa26g.ttf", "300": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDtFlzAKI5loa26g.ttf", "400": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6llzAKI5loa26g.ttf", "500": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD2FlzAKI5loa26g.ttf", "600": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDNF5zAKI5loa26g.ttf", "700": "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDDV5zAKI5loa26g.ttf" }, "type": "google" } }, "fonts": [ { "fallbacks": [ "IBM Plex Sans Fallback", "system-ui", "sans-serif" ], "font": "IBM Plex Sans", "num_elements": 575, "num_words": 14715, "percent_elements": 75, "percent_words": 98, "uses": [ "body", "div", "style", "script", "section", "main", "svg", "line", "header", "a", "span", "path", "button", "p", "circle", "img", "canvas", "h1", "form", "label", "input", "h2", "h3", "ol", "li", "br", "nav", "blockquote", "strong", "article", "time", "details", "summary", "footer", "ul", "g", "defs", "filter", "feflood", "fecolormatrix", "feoffset", "fegaussianblur", "fecomposite", "feblend", "next-route-announcer" ] }, { "fallbacks": [ "IBM Plex Mono Fallback", "ui-monospace", "monospace" ], "font": "IBM Plex Mono", "num_elements": 116, "num_words": 185, "percent_elements": 15, "percent_words": 1, "uses": [ "p", "span", "div", "pre", "code", "a" ] }, { "fallbacks": [ "monospace" ], "font": "ui-monospace", "num_elements": 76, "num_words": 130, "percent_elements": 10, "percent_words": 1, "uses": [ "p", "span", "div" ] }, { "fallbacks": [], "font": "Overused Grotesk", "num_elements": 2, "num_words": 2, "percent_elements": 0, "percent_words": 0, "uses": [ "text", "tspan" ] } ], "key_metadata": { "credits_consumed": 5 }, "request_id": "f85b0f21-14a7-48d2-8f13-3f332b080f83", "status": "ok" }