# Context.dev — Scrape Fonts

Get Context.Dev Scrape Fonts data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Context-dev, pass parameters such as domain, and retrieve structured data including business status code, reported status, returned age ms field, returned domain field, and returned final domstate field to search interfaces and source review, and integration reference.

Documentation: https://openany.si/context-dev/context-dev-scrape-fonts/8cba39c4-c068-4914-aff2-f278e3833cb2/
API ID: 8cba39c4-c068-4914-aff2-f278e3833cb2
Provider: context-dev
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/fonts
Page update time: 2026-12-03T02:49:45.611Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
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.
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:44.862Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "2000",
  "rounding": "ceil",
  "unit": "credit",
  "unitQuantity": "1"
}
```

## Usage and limits
## Context.dev — Scrape Fonts API

Detect the fonts a website uses, with usage statistics with the Context.dev API. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Search interfaces and source review**: Keep returned sources and query context together.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `code` | Business status code |
| `status` | Reported status |
| `cache_metadata.status` | Reported status |
| `cache_metadata.age_ms` | Returned age ms field |
| `domain` | Returned domain field |
| `finalDOMState` | Returned final domstate field |
| `fontLinks.IBM Plex Mono.category` | Returned category field |
| `fontLinks.IBM Plex Mono.files` | Returned files field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Context.dev — Scrape Fonts request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "directUrl": {
          "type": "string",
          "description": "Exact page to inspect. Provide either `domain` or `directUrl`."
        },
        "domain": {
          "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.",
          "minLength": 3
        },
        "maxAgeMs": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cache_metadata": {
      "type": "object",
      "properties": {
        "age_ms": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "code": {
      "type": "integer"
    },
    "domain": {
      "type": "string"
    },
    "finalDOMState": {
      "type": "string"
    },
    "fontLinks": {
      "type": "object",
      "properties": {
        "IBM Plex Mono": {
          "type": "object",
          "properties": {
            "category": {
              "type": "string"
            },
            "files": {
              "type": "object",
              "properties": {
                "100": {
                  "type": "string"
                },
                "200": {
                  "type": "string"
                },
                "300": {
                  "type": "string"
                },
                "400": {
                  "type": "string"
                },
                "500": {
                  "type": "string"
                },
                "600": {
                  "type": "string"
                },
                "700": {
                  "type": "string"
                }
              }
            },
            "type": {
              "type": "string"
            }
          }
        },
        "IBM Plex Sans": {
          "type": "object",
          "properties": {
            "category": {
              "type": "string"
            },
            "files": {
              "type": "object",
              "properties": {
                "100": {
                  "type": "string"
                },
                "200": {
                  "type": "string"
                },
                "300": {
                  "type": "string"
                },
                "400": {
                  "type": "string"
                },
                "500": {
                  "type": "string"
                },
                "600": {
                  "type": "string"
                },
                "700": {
                  "type": "string"
                }
              }
            },
            "type": {
              "type": "string"
            }
          }
        }
      }
    },
    "fonts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fallbacks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "font": {
            "type": "string"
          },
          "num_elements": {
            "type": "integer"
          },
          "num_words": {
            "type": "integer"
          },
          "percent_elements": {
            "type": "integer"
          },
          "percent_words": {
            "type": "integer"
          },
          "uses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "key_metadata": {
      "type": "object",
      "properties": {
        "credits_consumed": {
          "type": "integer"
        }
      }
    },
    "request_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```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'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "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
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### What type does maxAgeMs use?
maxAgeMs uses the JSON type integer in query. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- context-dev: https://openany.si/context-dev/context-dev-scrape-fonts/8cba39c4-c068-4914-aff2-f278e3833cb2/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
