Retrieve traffic data
GET /analytics/traffic
GET
/analytics/traffic
Returns traffic data for a specific IP address over a given time period.
Parameters
Query Parameters
ip
string
The IP address to retrieve traffic data for
unit
required
string
The unit of measurement for traffic data (megabits per second or packets per second)
time
required
integer
The time period in seconds for which to retrieve traffic data
Responses
200
Successful retrieval of traffic data
object
data
object
interval
The number of minutes between each data point
integer
traffic
Array of traffic data points [timestamp, allowed traffic, dropped traffic]
Array<Array<number>>
success
boolean
400
Bad request (e.g., invalid parameters)
object
success
boolean
message
string