{"id":4933,"date":"2025-06-02T13:11:37","date_gmt":"2025-06-02T13:11:37","guid":{"rendered":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/?page_id=4933"},"modified":"2026-03-30T11:25:52","modified_gmt":"2026-03-30T11:25:52","slug":"list-data-usage-statistics","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/reports\/list-data-usage-statistics\/","title":{"rendered":"List data usage statistics"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2>List data usage statistics<\/h2>\n<p>Returns the data usage statistics associated with a device.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"15%\"><strong>Parameter<\/strong><\/th>\n<th width=\"12%\"><strong>Type<\/strong><\/th>\n<th width=\"30%\"><strong>Accepted values<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>range<\/td>\n<td>Integer<\/td>\n<td>Values ranging from 1 to 30 where 1 denotes <em>today<\/em>.<\/td>\n<\/tr>\n<tr>\n<td>startdate &amp; enddate<\/td>\n<td>Integer<\/td>\n<td>Any date of the format <strong>mmddyyyy<\/strong> with a maximum difference of 90 days between \u2018startdate\u2019 and \u2018enddate\u2019.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>(<strong>Important<\/strong>: A time parameter is mandatory. Provide either <em>range<\/em>, or both <em>startdate<\/em> and <em>enddate<\/em>.)\n<\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\n<p>HTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">GET https:\/\/.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/datausage\/datausagestatistics\/\r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\">curl  -H \"Authorization: \" https:\/\/.hexnodemdm.com\/api\/v1\/devices\/{DEVICE_ID}\/datausage\/datausagestatistics\/\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\n<p>HTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">{ \r\n\"datausagestatistics\": \r\n[ \r\n\"total_usage\":897098 \r\n\"wifi_usage\":83649 \r\n\"mobile_data_usage\":67890 \r\n\"other_usage\":67890 \r\n] \r\n} \r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>List data usage statistics Returns the data usage statistics associated with a device. Parameter Type Accepted values range Integer Values ranging from 1 to 30 where 1 denotes today. startdate &amp; enddate Integer Any date of the format mmddyyyy with a maximum difference of 90 days between \u2018startdate\u2019 and \u2018enddate\u2019. (Important: A time parameter is [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":4929,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-4933","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=4933"}],"version-history":[{"count":6,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4933\/revisions"}],"predecessor-version":[{"id":5028,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4933\/revisions\/5028"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4929"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=4933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}