JavaScript APIs

Chrome provides {{platform}}s with many special-purpose APIs like chrome.runtime and chrome.alarms.

{{?stable_apis}}

Stable APIs

{{+partials.api_table apis:stable_apis is_stable:true/}}

{{/stable_apis}} {{?beta_apis}}

Beta APIs

These APIs are only available in the Chrome Beta and Dev channels: {{+partials.api_table apis:beta_apis is_stable:false/}}

{{/beta_apis}} {{?dev_apis}}

Dev APIs

These APIs are only available in the Chrome Dev channel: {{+partials.api_table apis:dev_apis is_stable:false/}}

{{/dev_apis}}

Experimental APIs

Chrome also has experimental APIs, some of which will become supported APIs in future releases of Chrome.

API conventions

Unless the doc says otherwise, methods in the chrome.* APIs are asynchronous: they return immediately, without waiting for the operation to finish. If you need to know the outcome of an operation, then you pass a callback function into the method. For more information, watch this video: