Skip to main content

Stats

Aggregate statistics for balance, sessions, traffic, and cost.

Overview

curl -X GET "https://api.nexalayer.net/v1/stats/overview" \
  -H "X-API-Key: <api_key>"

Traffic stats

curl -X GET "https://api.nexalayer.net/v1/stats/traffic?granularity=day&start_date=2026-02-01&end_date=2026-02-15" \
  -H "X-API-Key: <api_key>"

Cost stats

curl -X GET "https://api.nexalayer.net/v1/stats/cost?period=month" \
  -H "X-API-Key: <api_key>"

Usage report

curl -X GET "https://api.nexalayer.net/v1/billing/usage-report?period=week" \
  -H "X-API-Key: <api_key>"
Next: Errors, Best practices.