The devtools.network API lets a devtools extension get information about network requests associated with the window that the devtools are attached to (the inspected window).

Like all the devtools APIs, this API is only available to code running in the document defined in the devtools_page manifest.json key, or in other devtools documents created by the extension (such as the panel's own document). See Extending the developer tools for more.

Functions

devtools.network.getHAR()
Get a HAR log for the page loaded in the current tab.

Events

devtools.network.onNavigated
Fired when the user navigates the inspected window to a new page.
devtools.network.onRequestFinished
Fired when the a network request has finished and its details are available to the extension.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaFirefox for Android
getHARChrome Full support YesEdge No support NoFirefox Full support 60
Notes
Full support 60
Notes
Notes The returned HAR log will be empty unless the user has previously activated the browser's network panel at least once.
Opera Full support YesFirefox Android No support No
onNavigatedChrome Full support YesEdge No support NoFirefox Full support 54Opera Full support YesFirefox Android No support No
onRequestFinishedChrome Full support YesEdge No support NoFirefox Full support 61
Full support 61
No support 60 — 61
Notes
Notes This event will only start firing after the user has activated the browser's network panel at least once.
Opera Full support YesFirefox Android No support No

Legend

Full support  
Full support
No support  
No support
See implementation notes.
See implementation notes.

Acknowledgements

This API is based on Chromium's chrome.devtools.network API.

Document Tags and Contributors

Contributors to this page: wbamberg, andrewtruongmoz
Last updated by: wbamberg,