# Context.dev — Extract Styleguide

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.

Documentation: https://openany.si/context-dev/context-dev-extract-styleguide/204b490a-8246-429b-82d3-1d049060bb6a/
API ID: 204b490a-8246-429b-82d3-1d049060bb6a
Provider: context-dev
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/styleguide
Page update time: 2026-12-03T02:49:45.692Z
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:45.242Z. 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 — 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.

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Context.dev — Extract Styleguide 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": {
        "domain": {
          "type": "string",
          "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.",
          "minLength": 3
        },
        "directUrl": {
          "type": "string",
          "description": "Exact URL to inspect. Provide either `domain` or `directUrl`, not both."
        },
        "maxAgeMs": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. `0` refreshes."
        },
        "colorScheme": {
          "type": "string",
          "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": [
            "light",
            "dark"
          ]
        },
        "zdr": {
          "type": "string",
          "description": "`enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.",
          "enum": [
            "enabled",
            "disabled"
          ]
        }
      }
    },
    "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"
    },
    "key_metadata": {
      "type": "object",
      "properties": {
        "credits_consumed": {
          "type": "integer"
        }
      }
    },
    "request_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "styleguide": {
      "type": "object",
      "properties": {
        "colors": {
          "type": "object",
          "properties": {
            "accent": {
              "type": "string"
            },
            "background": {
              "type": "string"
            },
            "text": {
              "type": "string"
            }
          }
        },
        "components": {
          "type": "object",
          "properties": {
            "button": {
              "type": "object",
              "properties": {
                "link": {
                  "type": "object",
                  "properties": {
                    "backgroundColor": {
                      "type": "string"
                    },
                    "borderColor": {
                      "type": "string"
                    },
                    "borderRadius": {
                      "type": "string"
                    },
                    "borderStyle": {
                      "type": "string"
                    },
                    "borderWidth": {
                      "type": "string"
                    },
                    "boxShadow": {
                      "type": "string"
                    },
                    "color": {
                      "type": "string"
                    },
                    "css": {
                      "type": "string"
                    },
                    "fontFallbacks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fontFamily": {
                      "type": "string"
                    },
                    "fontSize": {
                      "type": "string"
                    },
                    "fontWeight": {
                      "type": "integer"
                    },
                    "minHeight": {
                      "type": "string"
                    },
                    "minWidth": {
                      "type": "string"
                    },
                    "padding": {
                      "type": "string"
                    },
                    "textDecoration": {
                      "type": "string"
                    }
                  }
                },
                "primary": {
                  "type": "object",
                  "properties": {
                    "backgroundColor": {
                      "type": "string"
                    },
                    "borderColor": {
                      "type": "string"
                    },
                    "borderRadius": {
                      "type": "string"
                    },
                    "borderStyle": {
                      "type": "string"
                    },
                    "borderWidth": {
                      "type": "string"
                    },
                    "boxShadow": {
                      "type": "string"
                    },
                    "color": {
                      "type": "string"
                    },
                    "css": {
                      "type": "string"
                    },
                    "fontFallbacks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fontFamily": {
                      "type": "string"
                    },
                    "fontSize": {
                      "type": "string"
                    },
                    "fontWeight": {
                      "type": "integer"
                    },
                    "minHeight": {
                      "type": "string"
                    },
                    "minWidth": {
                      "type": "string"
                    },
                    "padding": {
                      "type": "string"
                    },
                    "textDecoration": {
                      "type": "string"
                    }
                  }
                },
                "secondary": {
                  "type": "object",
                  "properties": {
                    "backgroundColor": {
                      "type": "string"
                    },
                    "borderColor": {
                      "type": "string"
                    },
                    "borderRadius": {
                      "type": "string"
                    },
                    "borderStyle": {
                      "type": "string"
                    },
                    "borderWidth": {
                      "type": "string"
                    },
                    "boxShadow": {
                      "type": "string"
                    },
                    "color": {
                      "type": "string"
                    },
                    "css": {
                      "type": "string"
                    },
                    "fontFallbacks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fontFamily": {
                      "type": "string"
                    },
                    "fontSize": {
                      "type": "string"
                    },
                    "fontWeight": {
                      "type": "integer"
                    },
                    "minHeight": {
                      "type": "string"
                    },
                    "minWidth": {
                      "type": "string"
                    },
                    "padding": {
                      "type": "string"
                    },
                    "textDecoration": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "card": {
              "type": "object",
              "properties": {
                "backgroundColor": {
                  "type": "string"
                },
                "borderColor": {
                  "type": "string"
                },
                "borderRadius": {
                  "type": "string"
                },
                "borderStyle": {
                  "type": "string"
                },
                "borderWidth": {
                  "type": "string"
                },
                "boxShadow": {
                  "type": "string"
                },
                "css": {
                  "type": "string"
                },
                "padding": {
                  "type": "string"
                },
                "textColor": {
                  "type": "string"
                }
              }
            }
          }
        },
        "elementSpacing": {
          "type": "object",
          "properties": {
            "lg": {
              "type": "string"
            },
            "md": {
              "type": "string"
            },
            "sm": {
              "type": "string"
            },
            "xl": {
              "type": "string"
            },
            "xs": {
              "type": "string"
            }
          }
        },
        "fontLinks": {
          "type": "object",
          "properties": {
            "Doto": {
              "type": "object",
              "properties": {
                "displayName": {
                  "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"
                    },
                    "800": {
                      "type": "string"
                    },
                    "900": {
                      "type": "string"
                    }
                  }
                },
                "type": {
                  "type": "string"
                }
              }
            },
            "rethinkSans": {
              "type": "object",
              "properties": {
                "displayName": {
                  "type": "string"
                },
                "files": {
                  "type": "object",
                  "properties": {
                    "400": {
                      "type": "string"
                    },
                    "500": {
                      "type": "string"
                    },
                    "600": {
                      "type": "string"
                    },
                    "700": {
                      "type": "string"
                    },
                    "800": {
                      "type": "string"
                    }
                  }
                },
                "type": {
                  "type": "string"
                }
              }
            }
          }
        },
        "mode": {
          "type": "string"
        },
        "shadows": {
          "type": "object",
          "properties": {
            "inner": {
              "type": "string"
            },
            "lg": {
              "type": "string"
            },
            "md": {
              "type": "string"
            },
            "sm": {
              "type": "string"
            },
            "xl": {
              "type": "string"
            }
          }
        },
        "typography": {
          "type": "object",
          "properties": {
            "headings": {
              "type": "object",
              "properties": {
                "h1": {
                  "type": "object",
                  "properties": {
                    "fontFallbacks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fontFamily": {
                      "type": "string"
                    },
                    "fontSize": {
                      "type": "string"
                    },
                    "fontWeight": {
                      "type": "integer"
                    },
                    "letterSpacing": {
                      "type": "string"
                    },
                    "lineHeight": {
                      "type": "string"
                    }
                  }
                },
                "h2": {
                  "type": "object",
                  "properties": {
                    "fontFallbacks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fontFamily": {
                      "type": "string"
                    },
                    "fontSize": {
                      "type": "string"
                    },
                    "fontWeight": {
                      "type": "integer"
                    },
                    "letterSpacing": {
                      "type": "string"
                    },
                    "lineHeight": {
                      "type": "string"
                    }
                  }
                },
                "h3": {
                  "type": "object",
                  "properties": {
                    "fontFallbacks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fontFamily": {
                      "type": "string"
                    },
                    "fontSize": {
                      "type": "string"
                    },
                    "fontWeight": {
                      "type": "integer"
                    },
                    "letterSpacing": {
                      "type": "string"
                    },
                    "lineHeight": {
                      "type": "string"
                    }
                  }
                },
                "h4": {
                  "type": "object",
                  "properties": {
                    "fontFallbacks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fontFamily": {
                      "type": "string"
                    },
                    "fontSize": {
                      "type": "string"
                    },
                    "fontWeight": {
                      "type": "integer"
                    },
                    "letterSpacing": {
                      "type": "string"
                    },
                    "lineHeight": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "p": {
              "type": "object",
              "properties": {
                "fontFallbacks": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "fontFamily": {
                  "type": "string"
                },
                "fontSize": {
                  "type": "string"
                },
                "fontWeight": {
                  "type": "integer"
                },
                "letterSpacing": {
                  "type": "string"
                },
                "lineHeight": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
```

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

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "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
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.

### Which values can I use for colorScheme?
The selected schema accepts light, dark. Keep the documented string type and exact spelling for this input.

### 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-extract-styleguide/204b490a-8246-429b-82d3-1d049060bb6a/

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