Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


This article needs a technical review. How you can help.

This API is available on Firefox OS for internal applications only.


The MozNetworkStatsData objects represent a chunk of data usage statistics.

It provides the total amount of data received and sent during a given amount of time. The exact amount of time is provided by the MozNetworkStatsManager.sampleRate property.


MozNetworkStatsData.rxBytes Read only
A number representing the number of bytes received at "date" for "sampleRate" seconds.
MozNetworkStatsData.txBytes Read only
A number representing the number of bytes sent at "date" for "sampleRate" seconds. Read only
A date representing the time when the number of bytes received and sent were stored.




Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, fscholz, jsx, kscarfone, teoli, Jeremie
 Last updated by: chrisdavidmills,