IPCola
  1. price
IPCola
  • User
    • user
      • send email VCode
      • get user info
      • user login
      • user register
      • get captcha
      • user reset password
    • balance
      • get user balance
    • deposit
      • deposit
      • coinbase(deprecated)
      • query deposit record
      • stripe(deprecated)
  • Rotation proxy
    • account
      • create new account
      • delete account
      • query account
      • update account
    • ip whitelist
      • add ip whitelist
      • delete ip whitelist
      • query ip whitelist
      • update ip whitelist
    • api proxy list
      • get proxy list for ip whitelist auth
    • price
      • query pay as you go price
        GET
      • query traffic package price
        POST
    • traffic package
      • buy traffic package
      • query traffic package
    • distribution
      • query rotation proxy distribution
    • proxy traffic
      • query daily traffic data
  • Static proxy
    • static direct proxy
      • buy static direct proxy
      • buy traffic
      • query static direct proxy
      • offline ip refund static direct proxy
      • online ip refund static direct proxy
      • renew
      • set ip whitelist
      • replace ip
    • static indirect proxy
      • buy static indirect proxy
      • buy traffic
      • query static transfer proxy
      • offline ip refund static transfer proxy
      • online ip refund static transfer proxy
      • renew
      • replace ip
    • distribution
      • query static indirect connect proxy distribution
      • query static direct connect proxy distribution
    • price
      • query static direct residential proxy price
      • query static direct datacenter proxy price
      • query static transfer residential proxy price
      • query static transfer datacenter proxy price
  • Common
    • public ip
      • get public ip
    • proxy address
      • query proxy address
  1. price

query traffic package price

POST
https://api.ipcola.com/api/price/traffic_package
price
return data array defined the traffic amount range, price and valid days, valid days is 30,
data array sorted by traffic amount
example:
[
        {
            "id": 1,
            "traffic_type": "rotation_residential",
            "traffic_amount_gb": 20,
            "valid_days": 30,
            "price_per_gb": 3,
            "created_unixtime": 1678606170
        },
        {
            "id": 2,
            "traffic_type": "rotation_residential",
            "traffic_amount_gb": 100,
            "valid_days": 30,
            "price_per_gb": 3,
            "created_unixtime": 1678606188
        },
        {
            "id": 24,
            "traffic_type": "rotation_residential",
            "traffic_amount_gb": 500,
            "valid_days": 30,
            "price_per_gb": 2,
            "created_unixtime": 1686552755
        },
        {
            "id": 3,
            "traffic_type": "rotation_residential",
            "traffic_amount_gb": 99999999999999,
            "valid_days": 30,
            "price_per_gb": 1.5,
            "created_unixtime": 1678606217
        }
    ]
means
traffic 20-100GB $3.00/GB
traffic 100-500GB $2.00/GB
traffic 500+GB $1.50/GB

Request

Body Params application/json
filter
object 
optional
query condition
traffic_type
string 
optional
one of the following traffic type:"rotation_residential" or "rotation_datacenter"
from_db
boolean 
required
from db or cache
limit
integer 
required
query quantity for pagination
offset
integer 
required
query offset for pagination
Example
{
  "from_db": true,
  "limit": 10,
  "offset": 0,
  "filter": {
    "traffic_type": "rotation_residential"
  }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ipcola.com/api/price/traffic_package' \
--header 'Content-Type: application/json' \
--data-raw '{
    "from_db": true,
    "limit": 10,
    "offset": 0,
    "filter": {
        "traffic_type": "rotation_residential"
    }
}'

Responses

🟢200result
application/json
Body
data
array [object {6}] 
required
query result
created_unixtime
integer 
required
id
integer 
required
price_per_gb
number 
required
traffic_amount_gb
integer 
required
traffic_type
string 
required
valid_days
integer 
required
meta_message
string 
required
success or other error msg
meta_status
integer 
required
1 for success, negative for error
total_count
integer 
required
total record quantity
Example
{
  "data": [
    {
      "created_unixtime": 0,
      "id": 0,
      "price_per_gb": 0,
      "traffic_amount_gb": 0,
      "traffic_type": "string",
      "valid_days": 0
    }
  ],
  "meta_message": "string",
  "meta_status": 0,
  "total_count": 0
}
Previous
query pay as you go price
Next
buy traffic package
Built with