query traffic package price
POST
https://api.ipcola.com/api/price/traffic_packagereturn 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 参数application/json
filter
object
可选
query condition
traffic_type
string
可选
one of the following traffic type:"rotation_residential" or "rotation_datacenter"
from_db
boolean
必需
from db or cache
limit
integer
必需
query quantity for pagination
offset
integer
必需
query offset for pagination
示例
{
"from_db": true,
"limit": 10,
"offset": 0,
"filter": {
"traffic_type": "rotation_residential"
}
}
Request samples
返回响应
result(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
data
array [object {6}]
必需
query result
created_unixtime
integer
必需
id
integer
必需
price_per_gb
number
必需
traffic_amount_gb
integer
必需
traffic_type
string
必需
valid_days
integer
必需
meta_message
string
必需
success or other error msg
meta_status
integer
必需
1 for success, negative for error
total_count
integer
必需
total record quantity
示例
未设置
最后修改时间: 1 年前