Context.Dev Extract Styleguide API
Get Context.Dev Extract Styleguide 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.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Context.Dev Extract Styleguide API
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
Overview
Context.dev — Extract Styleguide API
Extract a website's design system: colors, typography, spacing, shadows, and UI components 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.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: domain, directUrl, maxAgeMs, colorScheme, zdr |
| Selected implementation | context-dev · Context.dev — Extract Styleguide |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
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 |
key_metadata.credits_consumed |
Returned credits consumed field |
request_id |
Request identifier |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
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'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published Context.dev — Extract Styleguide API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
context-devCurrent Context.dev — Extract Styleguide · GET · View API reference | $0.002 / billing credit | 0 | —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: 4. 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
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.
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
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.
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" } } } }