Traffics
Get city and state list
Authorizations
AuthorizationstringRequired
Responses
200
Success
application/json
400
fail
application/json
get
/customer/traffic/city-and-stateGET /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
Authorizations
AuthorizationstringRequired
Responses
200
Success
application/json
400
fail
application/json
get
/customer/traffic/available-countries-mobGET /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
Authorizations
AuthorizationstringRequired
Responses
200
Success
application/json
400
fail
application/json
get
/customer/traffic/available-countriesGET /v1/customer/traffic/available-countries HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": ""
}Traffic
Authorizations
AuthorizationstringRequired
Body
byDatebooleanOptionalExample:
Show the list grouped by date
truedateRangestringOptionalExample:
Date range (max: 30 days)
2022-10-01,2022-11-01byCountriesbooleanOptionalExample:
Show the list grouped by countries
truecountriesCodesstringOptionalExample:
Filter by specific country code
123,32byErrorsbooleanOptionalExample:
Show the list grouped by errors
truepagenumberOptionalExample:
Show requested page(only when show by domains is on)
0errorCodesstring · enumOptionalExample:
Filter by specific error code
200 , OtherErrorPossible values: bySubUserbooleanOptionalExample:
Show the list grouped by sub-users
truesubUsersstringOptionalExample:
Filter by specific sub-user
12345678, 23456789paginationRowsPerPagenumberOptionalExample:
Pagination Rows Per Page when using domains.
10paginationPagenumberOptionalExample:
pagination Page when using domains.
5productstringOptionalExample:
filters by product, options: Res-Stc-Dc,Data Center,Residential,Static Residential,Mobile
MobileResponses
200
Success
application/json
400
fail
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
