> For the complete documentation index, see [llms.txt](https://doc.thordata.com/interface-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/interface-documentation/public-api/proxy-users/query-traffic-usage-records-by-hour.md).

# Query traffic usage records by hour

### Basic Information

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

**Interface URL:** <https://openapi.thordata.com/api/proxy-users/usage-statistics-hour>

**Request Method:** <mark style="color:green;">GET</mark>

### Request parameters

**Params：**

<table><thead><tr><th>Parameter name</th><th width="116">Type</th><th width="121">Required</th><th>Describe</th></tr></thead><tbody><tr><td><code>token</code></td><td>string</td><td>Yes</td><td>Please log in to the  <a href="https://dashboard.thordata.com/account-settings"><strong>Dashboard-MENU-My Account</strong></a> to view your token parameter value</td></tr><tr><td><code>proxy_type</code></td><td>number</td><td>Yes</td><td>Select the proxy type: 1 is Residential Proxies, 2 is Unlimited Proxy servers 3Mobile Proxies(default is 1)</td></tr><tr><td><code>username</code></td><td>string</td><td>Yes</td><td>The proxy username to be queried</td></tr><tr><td><code>from_date</code></td><td>string</td><td>Yes</td><td>Start query date, format: yyyy-mm-dd HH</td></tr><tr><td><code>to_date</code></td><td>string</td><td>Yes</td><td>End query date, format: yyyy-mm-dd  HH</td></tr></tbody></table>

### Response example

```json
{
    "code": 200,
    "data": {
        "traffic_limit": 0,
        "total_usage_traffic": 332,
        "traffic_balance": 0,
        "query_days": 35,
        "range_usage_traffic": 355509206,
        "data": [
            {
                "date": "2025-07-01 00",
                "usage_traffic": 4719123.98
            },
            {
                "date": "2025-07-01 01",
                "usage_traffic": 14928258.7
            },
            {
                "date": "2025-07-01 02",
                "usage_traffic": 12096429.29
            }
        ]
    },
    "msg": "ok"
}
```

{% hint style="info" %}
If the returned code value is not 200, please check the [**error code description list**](https://doc.thordata.com/interface-documentation/error-code/error-code-description) and modify it.
{% endhint %}

<table><thead><tr><th width="240">Parameter name</th><th>Type</th><th width="139">Required</th><th>Describe</th></tr></thead><tbody><tr><td><code>code</code></td><td>number</td><td>No</td><td>-</td></tr><tr><td><code>data</code></td><td>object</td><td>No</td><td>-</td></tr><tr><td><code>traffic_limit</code></td><td>number</td><td>Yes</td><td>Traffic limit (kb), 0 means no limit</td></tr><tr><td><code>total_usage_traffic</code></td><td>number</td><td>Yes</td><td>Total traffic usage (kb)</td></tr><tr><td><code>traffic_balance</code></td><td>number</td><td>Yes</td><td>Remaining traffic (kb)</td></tr><tr><td><code>query_days</code></td><td>number</td><td>Yes</td><td>Query days</td></tr><tr><td><code>range_usage_traffic</code></td><td>number</td><td>Yes</td><td>Total traffic usage on query date (kb)</td></tr><tr><td><code>date</code></td><td>string</td><td>Yes</td><td>date</td></tr><tr><td><code>usage_traffic</code></td><td>number</td><td>Yes</td><td>Traffic usage on the day (kb)</td></tr><tr><td><code>msg</code></td><td>string</td><td>No</td><td>-</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.thordata.com/interface-documentation/public-api/proxy-users/query-traffic-usage-records-by-hour.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
