IPCola
  1. traffic package
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
      • query traffic package price
    • traffic package
      • buy traffic package
        POST
      • query traffic package
        POST
    • 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. traffic package

query traffic package

POST
https://api.ipcola.com/api/traffic_package/query
traffic package

Request

Header Params
Authorization
string 
optional
Default:
Bearer {{AUTH_TOKEN}}
Body Params application/json
filter
object 
optional
query condition
buy_end_date
string 
optional
required, end date, format: 2023-02-10
buy_start_date
string 
optional
required, start date, format: 2023-01-10
id
integer 
optional
optional, specific record id
traffic_type
string 
required
one of the following traffic type:"rotation_residential" or "rotation_datacenter"
from_db
boolean 
required
from db or cache
limit
integer 
optional
query quantity for pagination
offset
integer 
optional
query offset for pagination
Example
{
  "from_db": true,
  "offset": 0,
  "limit": 10,
  "filter": {
    "traffic_type": "rotation_residential",
    "buy_start_date": "2023-06-01",
    "buy_end_date": "2023-06-30"
  }
}

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/traffic_package/query' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "from_db": true,
    "offset": 0,
    "limit": 10,
    "filter": {
        "traffic_type": "rotation_residential",
        "buy_start_date": "2023-06-01",
        "buy_end_date": "2023-06-30"
    }
}'

Responses

🟢200result
application/json
Body
current_unixtime
integer 
optional
current time stamp from server
data
$ref(#/definitions/48894394)[]
optional
query result
Could not resolve '#/definitions/48894394'
#/definitions/48894394
optional
Could not resolve '#/definitions/48894394'
meta_message
string 
optional
success or other error msg
meta_status
integer 
optional
1 for success, negative for error
total_count
integer 
optional
total record quantity
Example
Previous
buy traffic package
Next
query rotation proxy distribution
Built with