Query Traffic Usage Records
Basic Information
Interface Description: Get your wallet balance through the interface
Interface URL: https://api.thordata.com/api/account/usage-statistics
Request Method: GET
Request parameters
Params:
Parameter name
Type
Required
Describe
from_date
string
Yes
Start query date, format: yyyy-mm-dd
to_date
string
Yes
End query date, format: yyyy-mm-dd
Response example
{
"code": 200,
"data": {
"total_usage_traffic": 1500000,
"traffic_balance": 10000000,
"query_days": 3,
"range_usage_traffic": 1500000,
"data": [
{
"date": "2025-01-01",
"usage_traffic": 500000
},
{
"date": "2025-01-02",
"usage_traffic": 500000
},
{
"date": "2025-01-03",
"usage_traffic": 500000
}
]
},
"msg": "ok"
}
Parameter name
Type
Required
Describe
code
number
No
-
data
object
No
-
total_usage_traffic
number
Yes
Total traffic usage (kb)
traffic_balance
number
Yes
Remaining traffic (kb)
query_days
number
Yes
Query days
range_usage_traffic
number
Yes
Total traffic usage on query date (kb)
date
string
Yes
date
usage_traffic
number
Yes
Traffic usage on the day (kb)
msg
string
No
-
Last updated