Client API
For submitting POST requests use the application/x-www-form-urlencoded MIME content type, other formats aren't supported.
Get traffic usage
https://dashboard.infatica.io/includes/api/client/get_traffic.php
If you do not send the login parameter, it will return you all the traffic of the package/subscription.
If the login parameter is sent, it will return you all the traffic of the package/subscription.
Traffic is calculated in bytes. API works with a cache, updated every 10 minutes.
- Method:
POST
- Summary:
Get traffic usage
- Parameters in body:
"email"
- required, your email of account"password"
- required, password of account"pid"
- required, package id, can be found in the URL when you go to package in account"login"
optional, (login of proxy list from the package)
- Responses:
- You get a response in JSON format
Curl command line sample:
curl -X POST --data "email=me@example.com&password=your_password&pid=your_pid" https://dashboard.infatica.io/includes/api/client/get_traffic.php
Example of success response:
{
"YYYY-MM-DD HH:mm:ss": "47354668",
"YYYY-MM-DD HH:mm:ss": "9673457u8",
"YYYY-MM-DD HH:mm:ss": "9673457u8",
"YYYY-MM-DD HH:mm:ss": "536345643016",
"YYYY-MM-DD HH:mm:ss": "1687569911"
}
Get traffic statistics (subscription)
https://dashboard.infatica.io/includes/api/client/remaining_traffic.php
- Method:
POST
- Summary:
Get traffic statistics
- Parameters in body:
"email"
- required, your email of account"password"
- required, password of account"pid"
- required, package id, can be found in the URL when you go to package in account
- Responses:
"trafInPackage"
- total traffic in the package (bytes)"trafUsed"
- total used traffic (bytes)"trafLeft"
- total of remaining traffic (bytes)
Curl command line sample:
curl -X POST --data "email=me@example.com&password=your_password&pid=your_pid" https://dashboard.infatica.io/includes/api/client/remaining_traffic.php
Example of success response:
{
"trafInPackage": 429496729600,
"trafUsed": 1175719925,
"trafLeft": 428321009675
}
Get balance
https://dashboard.infatica.io/includes/api/client/get_balance.php
Method:
POST
Summary:
Get balance
Parameters in body:
"email"
- required, your email of account"password"
- required, password of account
Responses:
- The request will return the balance of money on your account
Curl command line sample:
curl -X POST --data "email=me@example.com&password=your_password" https://dashboard.infatica.io/includes/api/client/get_balance.php
Example of success response:
{
"balance": "100.00"
}
Get active online locations
https://dashboard.infatica.io/includes/api/client/count_nodes.php
Data is updated every 5 minutes.
Method:
POST
Summary:
Get active online locations of Residential or Mobile proxies
Parameters in body:
"email"
- required, your email of account"password"
- required, password of account"mobile"
- optional, send parameter "mobile" with value "1" to get online locations for Mobile proxies
Responses:
- The request will return list of online by countries
Curl command line sample (Residential):
curl -X POST --data "email=me@example.com&password=your_password" https://dashboard.infatica.io/includes/api/client/count_nodes.php
Curl command line sample (Mobile):
curl -X POST --data "email=me@example.com&password=your_password&mobile=1" https://dashboard.infatica.io/includes/api/client/count_nodes.php
Example of success response:
[
{
"AD": 100,
"AE": 200,
"AF": 300,
"AG": 400,
"XK": 500,
"YE": 600,
"YT": 10,
"ZA": 700,
"ZM": 800,
"ZW": 300
}
]
Get active online locations (detailed)
https://dashboard.infatica.io/includes/api/client/geo_nodes.php
Data is updated every 5 minutes.
Method:
POST
Summary:
Get active online locations of Residential or Mobile proxies
Parameters in body:
"email"
- required, your email of account"password"
- required, password of account"mobile"
- optional, send parameter "mobile" with value "1" to get online locations for Mobile proxies
Responses:
- The request will return active online locations in JSON format
Curl command line sample (Residential):
curl -X POST --data "email=me@example.com&password=your_password" https://dashboard.infatica.io/includes/api/client/geo_nodes.php
Curl command line sample (Mobile):
curl -X POST --data "email=me@example.com&password=your_password&mobile=1" https://dashboard.infatica.io/includes/api/client/geo_nodes.php
Example of success response:
[
[
{
"county": "US",
"subdivision": "New York",
"city": "Albany",
"isp": "UUNET",
"nodes": 100
},
{
"county": "US",
"subdivision": "New York",
"city": "Albany",
"isp": "VIRTUALSHIELD",
"nodes": 90
}
]
]
Get ISP codes
https://dashboard.infatica.io/includes/api/client/isp_codes.php
Method:
POST
Summary:
Get ISP codes
Parameters in body:
"email"
- required, your email of account"password"
- required, password of account
Responses:
- The request will return list of all available ISP codes
Curl command line sample:
curl -X POST --data "email=me@example.com&password=your_password" https://dashboard.infatica.io/includes/api/client/isp_codes.php
Example of success response:
[
[
{
"isp": "# 160,North Usman Road, Third Floor",
"code": 1
},
{
"isp": "# 203, Express tower",
"code": 2
}
]
]
Get subdivision codes
https://dashboard.infatica.io/includes/api/client/subdivision_codes.php
Method:
POST
Summary:
Get subdivision codes
Parameters in body:
"email"
- required, your email of account"password"
- required, password of account
Responses:
- The request will return list of all available subdivision codes
Curl command line sample:
curl -X POST --data "email=me@example.com&password=your_password" https://dashboard.infatica.io/includes/api/client/subdivision_codes.php
Example of success response:
[
[
{
"subdivision": "'Asir Region",
"code": 1
},
{
"subdivision": "A'ana",
"code": 2
},
{
"subdivision": "Aargau",
"code": 3
}
]
]