Extract Styleguide
Extract a website's design system: colors, typography, spacing, shadows, and UI components with the Context.dev API. The sample response includes links and display names. Use the result as input for a related analysis or application. The GET request schema also lists domain, directUrl, maxAgeMs.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Extract Styleguide
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
codeintegerdomainstringfinalDOMStatestringkey_metadataobjectcredits_consumedinteger
request_idstringstatusstringstyleguideobjectcolorsobjectaccentstringbackgroundstringtextstring
componentsobjectbuttonobjectlinkobjectbackgroundColorstringborderColorstringborderRadiusstringborderStylestringborderWidthstringboxShadowstringcolorstringcssstringfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerminHeightstringminWidthstringpaddingstringtextDecorationstring
primaryobjectbackgroundColorstringborderColorstringborderRadiusstringborderStylestringborderWidthstringboxShadowstringcolorstringcssstringfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerminHeightstringminWidthstringpaddingstringtextDecorationstring
secondaryobjectbackgroundColorstringborderColorstringborderRadiusstringborderStylestringborderWidthstringboxShadowstringcolorstringcssstringfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerminHeightstringminWidthstringpaddingstringtextDecorationstring
cardobjectbackgroundColorstringborderColorstringborderRadiusstringborderStylestringborderWidthstringboxShadowstringcssstringpaddingstringtextColorstring
elementSpacingobjectlgstringmdstringsmstringxlstringxsstring
fontLinksobjectDotoobjectdisplayNamestringfilesobject100string200string300string400string500string600string700string800string900string
typestring
rethinkSansobjectdisplayNamestringfilesobject400string500string600string700string800string
typestring
modestringshadowsobjectinnerstringlgstringmdstringsmstringxlstring
typographyobjectheadingsobjecth1objectfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerletterSpacingstringlineHeightstring
h2objectfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerletterSpacingstringlineHeightstring
h3objectfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerletterSpacingstringlineHeightstring
h4objectfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerletterSpacingstringlineHeightstring
pobjectfontFallbacksstring[]fontFamilystringfontSizestringfontWeightintegerletterSpacingstringlineHeightstring
// 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;
key_metadata?: {
credits_consumed?: number;
};
request_id?: string;
status?: string;
styleguide?: {
colors?: {
accent?: string;
background?: string;
text?: string;
};
components?: {
button?: {
link?: {
backgroundColor?: string;
borderColor?: string;
borderRadius?: string;
borderStyle?: string;
borderWidth?: string;
boxShadow?: string;
color?: string;
css?: string;
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
minHeight?: string;
minWidth?: string;
padding?: string;
textDecoration?: string;
};
primary?: {
backgroundColor?: string;
borderColor?: string;
borderRadius?: string;
borderStyle?: string;
borderWidth?: string;
boxShadow?: string;
color?: string;
css?: string;
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
minHeight?: string;
minWidth?: string;
padding?: string;
textDecoration?: string;
};
secondary?: {
backgroundColor?: string;
borderColor?: string;
borderRadius?: string;
borderStyle?: string;
borderWidth?: string;
boxShadow?: string;
color?: string;
css?: string;
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
minHeight?: string;
minWidth?: string;
padding?: string;
textDecoration?: string;
};
};
card?: {
backgroundColor?: string;
borderColor?: string;
borderRadius?: string;
borderStyle?: string;
borderWidth?: string;
boxShadow?: string;
css?: string;
padding?: string;
textColor?: string;
};
};
elementSpacing?: {
lg?: string;
md?: string;
sm?: string;
xl?: string;
xs?: string;
};
fontLinks?: {
Doto?: {
displayName?: string;
files?: {
"100"?: string;
"200"?: string;
"300"?: string;
"400"?: string;
"500"?: string;
"600"?: string;
"700"?: string;
"800"?: string;
"900"?: string;
};
type?: string;
};
rethinkSans?: {
displayName?: string;
files?: {
"400"?: string;
"500"?: string;
"600"?: string;
"700"?: string;
"800"?: string;
};
type?: string;
};
};
mode?: string;
shadows?: {
inner?: string;
lg?: string;
md?: string;
sm?: string;
xl?: string;
};
typography?: {
headings?: {
h1?: {
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
letterSpacing?: string;
lineHeight?: string;
};
h2?: {
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
letterSpacing?: string;
lineHeight?: string;
};
h3?: {
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
letterSpacing?: string;
lineHeight?: string;
};
h4?: {
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
letterSpacing?: string;
lineHeight?: string;
};
};
p?: {
fontFallbacks?: Array<string>;
fontFamily?: string;
fontSize?: string;
fontWeight?: number;
letterSpacing?: string;
lineHeight?: string;
};
};
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
context-devCurrent Context.dev — Extract Styleguide · 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/styleguide- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/context-dev/v1/web/styleguide?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 |
|---|---|---|---|---|
domain | URL query parametersquery | string | 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. minLength: 3 |
directUrl | URL query parametersquery | string | No | Exact URL to inspect. Provide either `domain` or `directUrl`, not both. |
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. |
colorScheme | URL query parametersquery | string | No | Optional browser color scheme to emulate for websites that respond to prefers-color-scheme. This value is part of the styleguide cache key. enum: "light", "dark" |
zdr | URL query parametersquery | string | No | `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR. enum: "enabled", "disabled" |
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": 393740681,
"status": "hit"
},
"code": 200,
"domain": "context.dev",
"finalDOMState": "loaded",
"key_metadata": {
"credits_consumed": 0
},
"request_id": "b283620a-4ad2-401d-9ef4-564d4cc8202d",
"status": "ok",
"styleguide": {
"colors": {
"accent": "#2563eb",
"background": "#ffffff",
"text": "#000000"
},
"components": {
"button": {
"link": {
"backgroundColor": "transparent",
"borderColor": "transparent",
"borderRadius": "0px",
"borderStyle": "none",
"borderWidth": "0px",
"boxShadow": "none",
"color": "#4d4d4d",
"css": "color: #4d4d4d; font-size: 12.6px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;",
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "12.6px",
"fontWeight": 400,
"minHeight": "0px",
"minWidth": "0px",
"padding": "0px",
"textDecoration": "none"
},
"primary": {
"backgroundColor": "#ffffff",
"borderColor": "#2563eb",
"borderRadius": "9999px",
"borderStyle": "solid",
"borderWidth": "1px",
"boxShadow": "none",
"color": "#2563eb",
"css": "box-sizing: border-box; display: inline-block; min-width: 107px; min-height: 42px; background-color: #ffffff; color: #2563eb; border: 1px solid #2563eb; border-radius: 9999px; padding: 10.8px 18px; font-size: 14.4px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;",
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "14.4px",
"fontWeight": 400,
"minHeight": "42px",
"minWidth": "107px",
"padding": "10.8px 18px",
"textDecoration": "none"
},
"secondary": {
"backgroundColor": "transparent",
"borderColor": "transparent",
"borderRadius": "9999px",
"borderStyle": "solid",
"borderWidth": "1px",
"boxShadow": "none",
"color": "#ffffff",
"css": "box-sizing: border-box; display: inline-block; min-width: 107px; min-height: 42px; background-color: transparent; color: #ffffff; border: 1px solid transparent; border-radius: 9999px; padding: 10.8px 18px; font-size: 14.4px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;",
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "14.4px",
"fontWeight": 400,
"minHeight": "42px",
"minWidth": "107px",
"padding": "10.8px 18px",
"textDecoration": "none"
}
},
"card": {
"backgroundColor": "#ffffff",
"borderColor": "#e6e6e6",
"borderRadius": "7.2px",
"borderStyle": "solid",
"borderWidth": "0px",
"boxShadow": "oklab(0 0 0 / 0.08) 0px 0px 0px 1px",
"css": "background-color: #ffffff; color: #000000; border: 0px solid #e6e6e6; border-radius: 7.2px; padding: 28.8px; box-shadow: oklab(0 0 0 / 0.08) 0px 0px 0px 1px;",
"padding": "28.8px",
"textColor": "#000000"
}
},
"elementSpacing": {
"lg": "36px",
"md": "28px",
"sm": "14px",
"xl": "58px",
"xs": "6px"
},
"fontLinks": {
"Doto": {
"displayName": "Doto",
"files": {
"100": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"200": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"300": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"400": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"500": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"600": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"700": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"800": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"900": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2"
},
"type": "custom"
},
"rethinkSans": {
"displayName": "Rethink Sans",
"files": {
"400": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"500": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"600": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"700": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"800": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2"
},
"type": "custom"
}
},
"mode": "light",
"shadows": {
"inner": "color(display-p3 0.1608 0.1608 0.1608 / 0.06) 0px 3.6px 7.2px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.04) 0px 1.8px 3.6px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.04) 0px 0.9px 1.8px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.08) 0px 0px 0px 0.9px, color(display-p3 0.1608 0.1608 0.1608 / 0.08) 0px -0.45px 0.45px 0px inset",
"lg": "none",
"md": "none",
"sm": "oklab(0 0 0 / 0.08) 0px 0px 0px 1px",
"xl": "none"
},
"typography": {
"headings": {
"h1": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "56px",
"fontWeight": 400,
"letterSpacing": "-1.96px",
"lineHeight": "60.48px"
},
"h2": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "41px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "49px"
},
"h3": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "30px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "34.56px"
},
"h4": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "22px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "26px"
}
},
"p": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "16.2px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "26.325px"
}
}
}
}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
# Extract Styleguide
Extract a website's design system: colors, typography, spacing, shadows, and UI components with the Context.dev API. The sample response includes links and display names. Use the result as input for a related analysis or application. The GET request schema also lists domain, directUrl, maxAgeMs.
## Available implementations
context-dev · Context.dev — Extract Styleguide: https://openany.si/markets/apis/capabilities/context-dev-extract-styleguide?offering=204b490a-8246-429b-82d3-1d049060bb6a · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/apis/204b490a-8246-429b-82d3-1d049060bb6a
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/styleguide
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/styleguide?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 — Extract Styleguide",
"endpoint": "https://api.openany.si/v1/agent-apis/context-dev/v1/web/styleguide",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "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.",
"location": "query",
"min_length": 3,
"name": "domain",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Exact URL to inspect. Provide either `domain` or `directUrl`, not both.",
"location": "query",
"name": "directUrl",
"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"
},
{
"description": "Optional browser color scheme to emulate for websites that respond to prefers-color-scheme. This value is part of the styleguide cache key.",
"enum_values": [
"light",
"dark"
],
"location": "query",
"name": "colorScheme",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.",
"enum_values": [
"enabled",
"disabled"
],
"location": "query",
"name": "zdr",
"nullable": false,
"required": false,
"type": "string"
}
],
"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": 393740681,
"status": "hit"
},
"code": 200,
"domain": "context.dev",
"finalDOMState": "loaded",
"key_metadata": {
"credits_consumed": 0
},
"request_id": "b283620a-4ad2-401d-9ef4-564d4cc8202d",
"status": "ok",
"styleguide": {
"colors": {
"accent": "#2563eb",
"background": "#ffffff",
"text": "#000000"
},
"components": {
"button": {
"link": {
"backgroundColor": "transparent",
"borderColor": "transparent",
"borderRadius": "0px",
"borderStyle": "none",
"borderWidth": "0px",
"boxShadow": "none",
"color": "#4d4d4d",
"css": "color: #4d4d4d; font-size: 12.6px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;",
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "12.6px",
"fontWeight": 400,
"minHeight": "0px",
"minWidth": "0px",
"padding": "0px",
"textDecoration": "none"
},
"primary": {
"backgroundColor": "#ffffff",
"borderColor": "#2563eb",
"borderRadius": "9999px",
"borderStyle": "solid",
"borderWidth": "1px",
"boxShadow": "none",
"color": "#2563eb",
"css": "box-sizing: border-box; display: inline-block; min-width: 107px; min-height: 42px; background-color: #ffffff; color: #2563eb; border: 1px solid #2563eb; border-radius: 9999px; padding: 10.8px 18px; font-size: 14.4px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;",
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "14.4px",
"fontWeight": 400,
"minHeight": "42px",
"minWidth": "107px",
"padding": "10.8px 18px",
"textDecoration": "none"
},
"secondary": {
"backgroundColor": "transparent",
"borderColor": "transparent",
"borderRadius": "9999px",
"borderStyle": "solid",
"borderWidth": "1px",
"boxShadow": "none",
"color": "#ffffff",
"css": "box-sizing: border-box; display: inline-block; min-width: 107px; min-height: 42px; background-color: transparent; color: #ffffff; border: 1px solid transparent; border-radius: 9999px; padding: 10.8px 18px; font-size: 14.4px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;",
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "14.4px",
"fontWeight": 400,
"minHeight": "42px",
"minWidth": "107px",
"padding": "10.8px 18px",
"textDecoration": "none"
}
},
"card": {
"backgroundColor": "#ffffff",
"borderColor": "#e6e6e6",
"borderRadius": "7.2px",
"borderStyle": "solid",
"borderWidth": "0px",
"boxShadow": "oklab(0 0 0 / 0.08) 0px 0px 0px 1px",
"css": "background-color: #ffffff; color: #000000; border: 0px solid #e6e6e6; border-radius: 7.2px; padding: 28.8px; box-shadow: oklab(0 0 0 / 0.08) 0px 0px 0px 1px;",
"padding": "28.8px",
"textColor": "#000000"
}
},
"elementSpacing": {
"lg": "36px",
"md": "28px",
"sm": "14px",
"xl": "58px",
"xs": "6px"
},
"fontLinks": {
"Doto": {
"displayName": "Doto",
"files": {
"100": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"200": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"300": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"400": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"500": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"600": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"700": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"800": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2",
"900": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2"
},
"type": "custom"
},
"rethinkSans": {
"displayName": "Rethink Sans",
"files": {
"400": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"500": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"600": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"700": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2",
"800": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2"
},
"type": "custom"
}
},
"mode": "light",
"shadows": {
"inner": "color(display-p3 0.1608 0.1608 0.1608 / 0.06) 0px 3.6px 7.2px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.04) 0px 1.8px 3.6px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.04) 0px 0.9px 1.8px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.08) 0px 0px 0px 0.9px, color(display-p3 0.1608 0.1608 0.1608 / 0.08) 0px -0.45px 0.45px 0px inset",
"lg": "none",
"md": "none",
"sm": "oklab(0 0 0 / 0.08) 0px 0px 0px 1px",
"xl": "none"
},
"typography": {
"headings": {
"h1": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "56px",
"fontWeight": 400,
"letterSpacing": "-1.96px",
"lineHeight": "60.48px"
},
"h2": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "41px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "49px"
},
"h3": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "30px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "34.56px"
},
"h4": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "22px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "26px"
}
},
"p": {
"fontFallbacks": [
"rethinkSans",
"rethinkSans Fallback",
"system-ui",
"sans-serif"
],
"fontFamily": "rethinkSans",
"fontSize": "16.2px",
"fontWeight": 400,
"letterSpacing": "0px",
"lineHeight": "26.325px"
}
}
}
}
}
]
}
```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 5
Review these request fields before running. Keep the published provider and request method unchanged.
domain- 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.
directUrl- Exact URL to inspect. Provide either `domain` or `directUrl`, not both.
maxAgeMs- Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes.
colorScheme- Optional browser color scheme to emulate for websites that respond to prefers-color-scheme. This value is part of the styleguide cache key.
zdr- `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/context-dev/v1/web/styleguide?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": 393740681, "status": "hit" }, "code": 200, "domain": "context.dev", "finalDOMState": "loaded", "key_metadata": { "credits_consumed": 0 }, "request_id": "b283620a-4ad2-401d-9ef4-564d4cc8202d", "status": "ok", "styleguide": { "colors": { "accent": "#2563eb", "background": "#ffffff", "text": "#000000" }, "components": { "button": { "link": { "backgroundColor": "transparent", "borderColor": "transparent", "borderRadius": "0px", "borderStyle": "none", "borderWidth": "0px", "boxShadow": "none", "color": "#4d4d4d", "css": "color: #4d4d4d; font-size: 12.6px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;", "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "12.6px", "fontWeight": 400, "minHeight": "0px", "minWidth": "0px", "padding": "0px", "textDecoration": "none" }, "primary": { "backgroundColor": "#ffffff", "borderColor": "#2563eb", "borderRadius": "9999px", "borderStyle": "solid", "borderWidth": "1px", "boxShadow": "none", "color": "#2563eb", "css": "box-sizing: border-box; display: inline-block; min-width: 107px; min-height: 42px; background-color: #ffffff; color: #2563eb; border: 1px solid #2563eb; border-radius: 9999px; padding: 10.8px 18px; font-size: 14.4px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;", "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "14.4px", "fontWeight": 400, "minHeight": "42px", "minWidth": "107px", "padding": "10.8px 18px", "textDecoration": "none" }, "secondary": { "backgroundColor": "transparent", "borderColor": "transparent", "borderRadius": "9999px", "borderStyle": "solid", "borderWidth": "1px", "boxShadow": "none", "color": "#ffffff", "css": "box-sizing: border-box; display: inline-block; min-width: 107px; min-height: 42px; background-color: transparent; color: #ffffff; border: 1px solid transparent; border-radius: 9999px; padding: 10.8px 18px; font-size: 14.4px; font-weight: 400; font-family: rethinkSans, \"rethinkSans Fallback\", system-ui, sans-serif; text-decoration: none;", "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "14.4px", "fontWeight": 400, "minHeight": "42px", "minWidth": "107px", "padding": "10.8px 18px", "textDecoration": "none" } }, "card": { "backgroundColor": "#ffffff", "borderColor": "#e6e6e6", "borderRadius": "7.2px", "borderStyle": "solid", "borderWidth": "0px", "boxShadow": "oklab(0 0 0 / 0.08) 0px 0px 0px 1px", "css": "background-color: #ffffff; color: #000000; border: 0px solid #e6e6e6; border-radius: 7.2px; padding: 28.8px; box-shadow: oklab(0 0 0 / 0.08) 0px 0px 0px 1px;", "padding": "28.8px", "textColor": "#000000" } }, "elementSpacing": { "lg": "36px", "md": "28px", "sm": "14px", "xl": "58px", "xs": "6px" }, "fontLinks": { "Doto": { "displayName": "Doto", "files": { "100": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "200": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "300": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "400": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "500": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "600": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "700": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "800": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2", "900": "https://media.brand.dev/fonts/fca04d45068838ea4d8de4ef51ce887f73c82a0f67aad1c27391deaf51fea2ba.woff2" }, "type": "custom" }, "rethinkSans": { "displayName": "Rethink Sans", "files": { "400": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2", "500": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2", "600": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2", "700": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2", "800": "https://media.brand.dev/fonts/5239013b59abd712f67f27baaf105617590d07574435374ce7751cd08adce1e6.woff2" }, "type": "custom" } }, "mode": "light", "shadows": { "inner": "color(display-p3 0.1608 0.1608 0.1608 / 0.06) 0px 3.6px 7.2px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.04) 0px 1.8px 3.6px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.04) 0px 0.9px 1.8px 0px, color(display-p3 0.1608 0.1608 0.1608 / 0.08) 0px 0px 0px 0.9px, color(display-p3 0.1608 0.1608 0.1608 / 0.08) 0px -0.45px 0.45px 0px inset", "lg": "none", "md": "none", "sm": "oklab(0 0 0 / 0.08) 0px 0px 0px 1px", "xl": "none" }, "typography": { "headings": { "h1": { "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "56px", "fontWeight": 400, "letterSpacing": "-1.96px", "lineHeight": "60.48px" }, "h2": { "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "41px", "fontWeight": 400, "letterSpacing": "0px", "lineHeight": "49px" }, "h3": { "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "30px", "fontWeight": 400, "letterSpacing": "0px", "lineHeight": "34.56px" }, "h4": { "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "22px", "fontWeight": 400, "letterSpacing": "0px", "lineHeight": "26px" } }, "p": { "fontFallbacks": [ "rethinkSans", "rethinkSans Fallback", "system-ui", "sans-serif" ], "fontFamily": "rethinkSans", "fontSize": "16.2px", "fontWeight": 400, "letterSpacing": "0px", "lineHeight": "26.325px" } } } }