Query Traffic Usage Records

Basic Information

Interface Description: Get Thordata Residential Proxies or Unlimited Proxy Server proxy user traffic usage log through the interface

Interface URL: https://api.thordata.com/api/proxy-users/usage-statistics

Request Method: GET

Request parameters

Params:

Parameter name
Type
Required
Describe

token

string

Yes

Please log in to the Dashboard-MENU-My Account to view your token parameter value

key

string

Yes

Please log in to the Dashboard-MENU-My Account to view your key parameter value

proxy_type

number

Yes

Select the proxy type: 1 is Residential Proxies, 2 is Unlimited Proxy servers (default is 1)

username

string

Yes

The proxy username to be queried

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": {
        "traffic_limit": 200000,
        "total_usage_traffic": 150000,
        "traffic_balance": 50000,
        "query_days": 3,
        "range_usage_traffic": 150000,
        "data": [
            {
                "date": "2025-01-01",
                "usage_traffic": 50000
            },
            {
                "date": "2025-01-02",
                "usage_traffic": 50000
            },
            {
                "date": "2025-01-03",
                "usage_traffic": 50000
            }
        ]
    },
    "msg": "ok"
}

If the returned code value is not 200, please check the error code description list and modify it.

Parameter name
Type
Required
Describe

code

number

No

-

data

object

No

-

traffic_limit

number

Yes

Traffic limit (kb), 0 means no limit

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