Skip to content

Analytics API reference

Bandwidth and request usage. 1 endpoint, each with its scope, parameters, answers and an example call.

1 endpointBearer keyhttps://falconproxy.com/api/v1

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

Responses of Get usage analytics
StatusMeaning
200Usage analytics.
401Missing, invalid, expired, or revoked API token.
403The token lacks a required scope.

Response body (200)

Response 200 fields of Get usage analytics
FieldTypeDescription
usageobjectTraffic totals for the account and a daily series.
usage.periodsobjectTraffic over four windows of time.
usage.periods.totalobjectAll traffic on record.
usage.periods.last_30dobjectTraffic over the last 30 days.
usage.periods.last_7dobjectTraffic over the last 7 days.
usage.periods.last_24hobjectTraffic over the last 24 hours.
usage.dailyarray of objectsLast 30 days, zero-filled.
usage.daily[].daystringUTC date, YYYY-MM-DD.
usage.daily[].bytes_inintegerBytes downloaded: data that came back from the sites reached through the proxy.
usage.daily[].bytes_outintegerBytes uploaded: data sent to those sites through the proxy.
usage.daily[].requestsintegerNumber 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"

Ready to create your own proxies?

2-hour free trial, no card—pair your phone in minutes.

Already have an account? Sign in

FalconProxy