# Browser Support (Can I use + browserslist) API

> Browser support of ~550 web features with global and per-country usage, browserslist queries, CSS checks against your target and User-Agent tests.

- Endpoint: `GET | POST https://apibox.io.vn/v1/caniuse`
- Category: Developer utilities
- HTML docs: https://apibox.io.vn/docs/caniuse/ (Vietnamese: https://apibox.io.vn/vi/docs/caniuse/)
- Online tool: https://apibox.io.vn/tools/caniuse/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

Look up browser support for about 550 web platform features from the Can I use database: `feature=` (an id like `css-container-queries`, `webp`, `dialog`, or a name such as "container queries") returns the spec status, each browser's current support, the version full support starts from, prefix / flag notes, links and the share of users with full or partial support worldwide and in a country (`region=VN`, any ISO code, or continents `alt-as`, `alt-eu`…). `versions=all` adds the whole version-by-version table; `search=` finds feature ids.

`query=` runs a browserslist query (`> 0.5% in VN, last 2 versions, not dead`, `defaults`, `baseline widely available`, `supports css-has`…) and returns the browser versions and their coverage worldwide and in the region of the query. `features=` (comma-separated) or `css=` (a CSS snippet — container queries, :has(), nesting, grid, oklch(), view transitions and ~90 other features are detected) checks each feature against the target and lists the versions that fail, with a fallback hint. `ua=` tells whether a User-Agent is inside the target and, with `features=`, what that browser supports.

Data: Can I use by Alexis Deveria (CC BY 4.0) with usage shares from StatCounter GlobalStats (CC BY-SA 3.0), refreshed weekly; queries run on browserslist (MIT). Attribution is included in every answer. One region per query.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `feature` | query | string | no |  | Feature id or name (e.g. `css-container-queries`, `webp`, "flexbox gap"). |
| `search` | query | string | no |  | Find feature ids by keyword. |
| `query` | query | string | no |  | browserslist query (max 500 characters); target for features / css / ua (default `defaults`). |
| `features` | body|query | string | no |  | Comma-separated features to check against `query` (max 100). |
| `css` | body | string | no |  | CSS snippet: features used are detected and checked against `query`. |
| `ua` | query | string | no |  | User-Agent string to test against `query`. |
| `region` | query | string | no |  | Country code (VN, US…) or `alt-as` / `alt-eu` / `alt-na` / `alt-sa` / `alt-af` / `alt-oc` / `alt-ww` for usage shares. |
| `browsers` | query | string | no |  | Limit the feature table to these browser ids (chrome, safari, ios_saf, firefox, edge, samsung, and_chr…). |
| `versions` | query | string | no |  | `all`: include the support of every version. |
| `action` | query | string | no |  | Optional: `feature`, `search`, `query`, `check`, `ua` or `browsers` (list of browsers with current versions). Inferred from the parameters. |

## Example request

```bash
curl "https://apibox.io.vn/v1/caniuse?feature=css-container-queries&region=VN&browsers=chrome,safari,ios_saf,firefox" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Example response

```json
{
  "id": "css-container-queries",
  "title": "CSS Container Queries (Size)",
  "description": "Size queries in Container Queries provide a way to query the size of a container, and conditionally apply CSS to the content of that container.",
  "spec": "https://www.w3.org/TR/css-contain-3/",
  "status": "wd",
  "status_name": "W3C Working Draft",
  "categories": [
    "CSS"
  ],
  "keywords": "container query,@container,container-name,container-type",
  "url": "https://caniuse.com/css-container-queries",
  "usage": {
    "global": {
      "full": 95.96,
      "partial": 0.07,
      "total": 96.03
    },
    "region": {
      "code": "VN",
      "name": "Vietnam",
      "month": "2026-10",
      "full": 90.82,
      "partial": 0.33,
      "total": 91.15
    }
  },
  "browsers": [
    {
      "id": "firefox",
      "name": "Firefox",
      "type": "desktop",
      "current_version": "160",
      "current": "yes",
      "supported_since": "110"
    },
    {
      "id": "chrome",
      "name": "Chrome",
      "type": "desktop",
      "current_version": "157",
      "current": "yes",
      "supported_since": "106"
    },
    {
      "id": "safari",
      "name": "Safari",
      "type": "desktop",
      "current_version": "27.2",
      "current": "yes",
      "supported_since": "16.0"
    },
    {
      "id": "ios_saf",
      "name": "Safari on iOS",
      "type": "mobile",
      "current_version": "27.0",
      "current": "yes",
      "supported_since": "16.0"
    }
  ],
  "links": [
    {
      "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries",
      "title": "MDN article"
    },
    "…"
  ],
  "fallback": "Use media queries as the baseline and wrap container rules in @supports (container-type: inline-size).",
  "meta": {
    "data_updated": "2026-11-11",
    "features": 554
  },
  "source": {
    "data": "Can I use (https://caniuse.com) by Alexis Deveria, CC BY 4.0",
    "usage": "Usage share: StatCounter GlobalStats (https://gs.statcounter.com) via caniuse, CC BY-SA 3.0",
    "queries": "browserslist (MIT)"
  }
}
```

## Use cases

- Decide whether a CSS / JS feature is safe for your Vietnamese audience
- Fail a CI build when the stylesheet uses features outside the browserslist target
- Show supported-browser requirements in product docs or a help desk bot
- Check a customer's User-Agent against your supported browsers

## FAQ

### Where do the usage numbers come from?

From the Can I use data, which uses StatCounter GlobalStats shares per browser version, worldwide and per country, refreshed weekly.

### Does it support "> 1% in VN" queries?

Yes. Country and continent clauses are resolved from the same data; one region per query.

### How is CSS detected?

A static scan maps properties, values, at-rules and selectors to Can I use ids (e.g. @container → css-container-queries). It does not parse JavaScript.
