API referenceAnalytics
Usage time series
GET
Usage over time by minute, hour or day. Minute data covers the last 48 hours. Points without traffic are returned as zeros.
ApiKeyheader
X-API-Key<token>prx_live_<40 base62>
preset?stringSets from/to/interval.
Value in
"last_hour""last_day""last_week""last_30_days""last_90_days"from?stringRequired without preset.
Format
date-timeto?stringExclusive; max 90 days after from.
Format
date-timeinterval?stringminute ≤ 24 h span, hour ≤ 31 d, day.
Value in
"minute""hour""day"network?stringValue in
"residential""mobile"proxy_user_id?stringOK
application/json- response
data*message*stringHuman-readable status, safe to show to end users.
curl -X GET "https://example.com/v1/analytics/graph"{ "data": { "from": "2019-08-24T14:15:22Z", "interval": "minute", "points": [ { "bytes": 0, "bytes_mobile": 0, "bytes_residential": 0, "error": 0, "requests": 0, "successful": 0, "ts": "2019-08-24T14:15:22Z" } ], "to": "2019-08-24T14:15:22Z", "totals": { "bytes": 0, "error": 0, "requests": 0, "successful": 0 } }, "message": "OK"}Account snapshot GET
Returns the Customer object. Also works for a suspended account.
Buy GB from credit POST
Pays for the cart from the account's credit and returns 201 with the order; the data is added to the balance once the order is provisioned. Requires an Idempotency-Key header. Errors: 402 insufficient_credit; 422 with the reason the cart cannot be bought; 409 idempotency_conflict or idempotency_in_flight.