Context.dev — Extract Styleguide
context_dev_get_v1_web_styleguideExtract a website's design system: colors, typography, spacing, shadows, and UI components. Uses the caller's OpenAny gateway credentials. Charges and authorization are determined by the gateway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zdr | No | `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR. | |
| domain | No | Domain name to extract styleguide 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 | No | Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes. | |
| directUrl | No | Exact URL to inspect. Provide either `domain` or `directUrl`, not both. | |
| colorScheme | No | Optional browser color scheme to emulate for websites that respond to prefers-color-scheme. This value is part of the styleguide cache key. |