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 / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (5)
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.
Exact URL to inspect. Provide either `domain` or `directUrl`, not both.
Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes.
Optional browser color scheme to emulate for websites that respond to prefers-color-scheme. This value is part of the styleguide cache key.
`enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.

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"
      }
    }
  }
}

Response result

Response structure

Inferred from examples
  • cache_metadataobject
    • age_msinteger
    • statusstring
  • codeinteger
  • domainstring
  • finalDOMStatestring
  • key_metadataobject
    • credits_consumedinteger
  • request_idstring
  • statusstring
  • styleguideobject
    • colorsobject
      • accentstring
      • backgroundstring
      • textstring
    • componentsobject
      • buttonobject
        • linkobject
          • backgroundColorstring
          • borderColorstring
          • borderRadiusstring
          • borderStylestring
          • borderWidthstring
          • boxShadowstring
          • colorstring
          • cssstring
          • fontFallbacksstring[]
          • fontFamilystring
          • fontSizestring
          • fontWeightinteger
          • minHeightstring
          • minWidthstring
          • paddingstring
          • textDecorationstring
        • primaryobject
          • backgroundColorstring
          • borderColorstring
          • borderRadiusstring
          • borderStylestring
          • borderWidthstring
          • boxShadowstring
          • colorstring
          • cssstring
          • fontFallbacksstring[]
          • fontFamilystring
          • fontSizestring
          • fontWeightinteger
          • minHeightstring
          • minWidthstring
          • paddingstring
          • textDecorationstring
        • secondaryobject
          • backgroundColorstring
          • borderColorstring
          • borderRadiusstring
          • borderStylestring
          • borderWidthstring
          • boxShadowstring
          • colorstring
          • cssstring
          • fontFallbacksstring[]
          • fontFamilystring
          • fontSizestring
          • fontWeightinteger
          • minHeightstring
          • minWidthstring
          • paddingstring
          • textDecorationstring
      • cardobject
        • backgroundColorstring
        • borderColorstring
        • borderRadiusstring
        • borderStylestring
        • borderWidthstring
        • boxShadowstring
        • cssstring
        • paddingstring
        • textColorstring
    • elementSpacingobject
      • lgstring
      • mdstring
      • smstring
      • xlstring
      • xsstring
    • fontLinksobject
      • Dotoobject
        • displayNamestring
        • filesobject
          • 100string
          • 200string
          • 300string
          • 400string
          • 500string
          • 600string
          • 700string
          • 800string
          • 900string
        • typestring
      • rethinkSansobject
        • displayNamestring
        • filesobject
          • 400string
          • 500string
          • 600string
          • 700string
          • 800string
        • typestring
    • modestring
    • shadowsobject
      • innerstring
      • lgstring
      • mdstring
      • smstring
      • xlstring
    • typographyobject
      • headingsobject
        • h1object
          • fontFallbacksstring[]
          • fontFamilystring
          • fontSizestring
          • fontWeightinteger
          • letterSpacingstring
          • lineHeightstring
        • h2object
          • fontFallbacksstring[]
          • fontFamilystring
          • fontSizestring
          • fontWeightinteger
          • letterSpacingstring
          • lineHeightstring
        • h3object
          • fontFallbacksstring[]
          • fontFamilystring
          • fontSizestring
          • fontWeightinteger
          • letterSpacingstring
          • lineHeightstring
        • h4object
          • fontFallbacksstring[]
          • fontFamilystring
          • fontSizestring
          • fontWeightinteger
          • letterSpacingstring
          • lineHeightstring
      • pobject
        • fontFallbacksstring[]
        • fontFamilystring
        • fontSizestring
        • fontWeightinteger
        • letterSpacingstring
        • lineHeightstring

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Extract Styleguide with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.