GET/analytics/usage
Get usage analytics
Returns organization-wide bandwidth and request totals (total, 30d, 7d, 24h) plus a 30-day daily series.
Requires the analytics:read scope.
Responses
| Status | Meaning |
|---|---|
200 | Usage analytics. |
401 | Missing, invalid, expired, or revoked API token. |
403 | The token lacks a required scope. |
Response body (200)
| Field | Type | Description |
|---|---|---|
usage | object | Traffic totals for the account and a daily series. |
usage.periods | object | Traffic over four windows of time. |
usage.periods.total | object | All traffic on record. |
usage.periods.last_30d | object | Traffic over the last 30 days. |
usage.periods.last_7d | object | Traffic over the last 7 days. |
usage.periods.last_24h | object | Traffic over the last 24 hours. |
usage.daily | array of objects | Last 30 days, zero-filled. |
usage.daily[].day | string | UTC date, YYYY-MM-DD. |
usage.daily[].bytes_in | integer | Bytes downloaded: data that came back from the sites reached through the proxy. |
usage.daily[].bytes_out | integer | Bytes uploaded: data sent to those sites through the proxy. |
usage.daily[].requests | integer | Number of requests. |
json
{
"usage": {
"periods": {
"total": {
"bytes_in": 0,
"bytes_out": 0,
"requests": 0
},
"last_30d": {
"bytes_in": 0,
"bytes_out": 0,
"requests": 0
},
"last_7d": {
"bytes_in": 0,
"bytes_out": 0,
"requests": 0
},
"last_24h": {
"bytes_in": 0,
"bytes_out": 0,
"requests": 0
}
},
"daily": [
{
"day": "string",
"bytes_in": 0,
"bytes_out": 0,
"requests": 0
}
]
}
}Example request
curl
curl "https://falconproxy.com/api/v1/analytics/usage" \
-H "Authorization: Bearer $FALCONPROXY_API_KEY"