Traffics

Get city and state list

get

Get city and state list

Authorizations
AuthorizationstringRequired
Responses
200

Success

application/json
get
/customer/traffic/city-and-state
GET /v1/customer/traffic/city-and-state HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": ""
}

Get city and state mob list

get

Get city and state mob list

Authorizations
AuthorizationstringRequired
Responses
200

Success

application/json
get
/customer/traffic/available-countries-mob
GET /v1/customer/traffic/available-countries-mob HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": ""
}

Available countries list

get

Available countries list

Authorizations
AuthorizationstringRequired
Responses
200

Success

application/json
get
/customer/traffic/available-countries
GET /v1/customer/traffic/available-countries HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": ""
}

Get traffic usage

post

Traffic

Authorizations
AuthorizationstringRequired
Body
byDatebooleanOptional

Show the list grouped by date

Example: true
dateRangestringOptional

Date range (max: 30 days)

Example: 2022-10-01,2022-11-01
byCountriesbooleanOptional

Show the list grouped by countries

Example: true
countriesCodesstringOptional

Filter by specific country code

Example: 123,32
byErrorsbooleanOptional

Show the list grouped by errors

Example: true
pagenumberOptional

Show requested page(only when show by domains is on)

Example: 0
errorCodesstring · enumOptional

Filter by specific error code

Example: 200 , OtherErrorPossible values:
bySubUserbooleanOptional

Show the list grouped by sub-users

Example: true
subUsersstringOptional

Filter by specific sub-user

Example: 12345678, 23456789
paginationRowsPerPagenumberOptional

Pagination Rows Per Page when using domains.

Example: 10
paginationPagenumberOptional

pagination Page when using domains.

Example: 5
productstringOptional

filters by product, options: Res-Stc-Dc,Data Center,Residential,Static Residential,Mobile

Example: Mobile
Responses
200

Success

application/json
post
/customer/traffic/
POST /v1/customer/traffic/ HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 267

{
  "byDate": true,
  "dateRange": "2022-10-01,2022-11-01",
  "byCountries": true,
  "countriesCodes": "123,32",
  "byErrors": true,
  "page": 0,
  "errorCodes": "200 , OtherError",
  "bySubUser": true,
  "subUsers": "12345678, 23456789",
  "paginationRowsPerPage": 10,
  "paginationPage": 5,
  "product": "Mobile"
}
{
  "success": true,
  "token": "text"
}

Last updated