This website uses Browserslist and Can I Use to display the compatible browsers for a browsers query.
You can use the site API in your own applications.
https://browsersl.ist/api/browsers?q=defaults®ion=alt-as
q
— query or config. If config is provided it should be in.browserslist
file format, notpackage.json
-like. Examples are available on the website or in the browserslist repository.defaults
by default.region
— region code (optional). List of all region codes can be found at caniuse-lite/data/regions.
// https://browsersl.ist/api/browsers?q=defaults+and+supports+es6-module®ion=alt-as
{
"config": ">0.3%",
"lint": [
{
"id": "countryWasIgnored",
"message": "Less than 80% coverage in `China`, `Nigeria`, `Tanzania`, `Ghana`, and `Uganda` regions"
}
],
"region": "alt-as",
"coverage": 88.44,
"versions": {
"browserslist": "4.21.3",
"caniuse": "1.0.30001381"
},
"updated": 1675156330646,
"browsers": [
{
"id": "chrome",
"name": "Chrome",
"coverage": 17.06,
"versions": {
"102": 0.72,
"103": 16.32
}
}
...
]
}
If you send a request with an error, you will receive error message with the status 400.
// https://browsersl.ist/api/browsers?q=>0%®ion=XX
{
"message": "Unknown region name `XX`."
}
We recommend installing Prettier and EditorConfig plugins to your text editor.
To run a local copy for development:
-
Install Node.js 22 and pnpm 9.
-
Install dependencies:
pnpm install
-
Run local server with client-side watcher.
pnpm start
To run local server in production mode:
pnpm ssdeploy run