Skip to main content
GET
Get sub-user traffic

Authorizations

Authorization
string
header
required

API key from the dashboard (Settings → API Keys), sent as is without a Bearer prefix.

Path Parameters

sub_user_id
integer
required

Sub-user ID, as returned by GET /v2/sub-users.

Required range: x >= 0

Query Parameters

type
enum<string>
required

Period to count traffic for. With custom, use from and to; when left out they default to the sub-user's creation date and today.

Available options:
24h,
7days,
month,
custom
from
string<date>

Start date (inclusive) for type=custom, in YYYY-MM-DD format.

to
string<date>

End date (inclusive) for type=custom, in YYYY-MM-DD format.

service_type
enum<string>
default:residential_proxies

Proxy service type. The legacy serviceType name is also accepted.

Available options:
residential_proxies,
shared_proxies

Response

Traffic used in the period.

traffic
number
required

Total traffic in GB.

Example:

4.7

traffic_rx
number
required

Received traffic in GB.

Example:

4.2

traffic_tx
number
required

Sent traffic in GB.

Example:

0.5