Get order traffic usage
curl --request GET \
--url https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"period": "<string>",
"from_at": "<string>",
"to_at": "<string>",
"summary": {},
"points": [
{}
]
}Orders
Get order traffic usage
Retrieve traffic usage chart data for one order.
GET
/
orders
/
{order_id}
/
traffic-usage
Get order traffic usage
curl --request GET \
--url https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.proxyjam.com/public/v1/orders/{order_id}/traffic-usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"period": "<string>",
"from_at": "<string>",
"to_at": "<string>",
"summary": {},
"points": [
{}
]
}Returns pre-aggregated traffic usage points for a single order and summary values for the selected period.
Path parameters
string
required
UUID of the order.
Query parameters
string
default:"last_7d"
One of:
last_24h, last_7d, last_30d.Response
string
Selected period preset.
string
Inclusive UTC start timestamp of the selected window.
string
Exclusive UTC end timestamp of the selected window.
object
Aggregated values:
total_used_gbavg_per_period_gb
array
Chart points, each with:
timestampused_delta_gbused_total_gbtotal_limit_gb
Example
curl "https://api.proxyjam.com/public/v1/orders/997b4450-e7ae-4ad9-8a25-996e582049c9/traffic-usage?period=last_7d" \
-H "X-API-Key: pj_AbCdEf..."
from proxyjam import ProxyJamClient
with ProxyJamClient(api_key="pj_live_...") as proxyjam:
usage = proxyjam.orders.traffic_usage(
"997b4450-e7ae-4ad9-8a25-996e582049c9",
)
print(usage.summary.total_used_gb, "GB used")
for point in usage.points:
print(point.timestamp, point.used_delta_gb)
{
"period": "last_7d",
"from_at": "2026-04-05T00:00:00Z",
"to_at": "2026-04-12T00:00:00Z",
"summary": {
"total_used_gb": 6.2,
"avg_per_period_gb": 0.885714
},
"points": [
{
"timestamp": "2026-04-05T00:00:00Z",
"used_delta_gb": 0.7,
"used_total_gb": 2.1,
"total_limit_gb": 10.0
}
]
}
⌘I