GETPOST
v2.0.0stable

Get Price

Retrieve device pricing filtered by type (instant/review), warranty, and device type. Returns the user IP address

GET | POST/api/price
Auth:API Key
Limit:120/minute

Request Parameters

All parameters can be passed via Query or Body

ParameterTypeRequiredDescription
token
stringRequired
User API token
Example: your_api_token_here
type
stringOptional
Price type: instant or review. Empty or 'all' returns all types
instantreviewall
Example: instant
warranty
stringOptional
Warranty type: 0/1/2/3/4/6. Empty or 'all' returns all warranty types
012346all
Example: 1
deviceType
stringOptional
Device type: iphone or ipad. Empty or 'all' returns all device types
iphoneipadall
Example: iphone

Response

ParameterTypeRequiredDescription
code
numberRequired
Status code: 1=success, 0=failure
Example: 1
msg
stringRequired
Response message
Example: 查询成功
time
numberRequired
Server timestamp (Unix seconds)
Example: 1769675945
data
objectRequired
Response payload
data.ip
stringRequired
User IP address
Example: 192.168.1.100
data.instant
object | arrayRequired
Instant price (object for single, array for multiple). Only returned when type is empty, 'all', or 'instant'
data.review
object | arrayRequired
Review price (object for single, array for multiple). Only returned when type is empty, 'all', or 'review'
*.warranty
stringRequired
Warranty type code
Example: 1
*.warrantyName
stringRequired
Warranty type name
Example: 标准版
*.deviceType
stringRequired
Device type
Example: iphone
*.price
numberRequired
Price (unit: CNY)
Example: 10
ysucc
stringRequired
Success flag, returns "Ysucc" on success
Example: Ysucc
Response Example
{
"code":1,
"msg":"Query successful",
"time":1769675945,
"data":
{
"ip":"192.168.1.100",
"instant":
{
"type":"instant",
"typeName":"秒出",
"warranty":"1",
"warrantyName":"标准版",
"deviceType":"iphone",
"price":10
}
,
"review":
{
"type":"review",
"typeName":"审核",
"warranty":"1",
"warrantyName":"标准版",
"deviceType":"iphone",
"price":8
}
}
,
"ysucc":"Ysucc"
}

Query all prices

Without type, warranty, deviceType params, returns all combinations

Query all prices
{
"code":1,
"msg":"Query successful",
"time":1769675945,
"data":
{
"ip":"192.168.1.100",
"instant":
[
{
"warranty":"0",
"warrantyName":"躺平版",
"deviceType":"iphone",
"price":5
}
,
{
"warranty":"1",
"warrantyName":"标准版",
"deviceType":"iphone",
"price":10
}
,
{
"warranty":"0",
"warrantyName":"躺平版",
"deviceType":"ipad",
"price":6
}
]
,
"review":
[
{
"warranty":"0",
"warrantyName":"躺平版",
"deviceType":"iphone",
"price":4
}
,
{
"warranty":"1",
"warrantyName":"标准版",
"deviceType":"iphone",
"price":8
}
]
}
,
"ysucc":"Ysucc"
}

Query instant prices only

type=instant, returns all instant prices

Query instant prices only
{
"code":1,
"msg":"Query successful",
"time":1769675945,
"data":
{
"ip":"192.168.1.100",
"type":"instant",
"typeName":"秒出",
"warranty":"1",
"warrantyName":"标准版",
"deviceType":"iphone",
"price":10
}
,
"ysucc":"Ysucc"
}

Error Codes

Error Codes3 defined
0
Invalid token
Invalid or expired token
0
Basic and High-Basic plans do not support iPad devices
Warranty type 4 and 6 do not support iPad devices
0
Basic and High-Basic plans do not support review/reservation
Warranty type 4 and 6 do not support review/reservation

Response Language

Customize the API response language with the X-Lang header. The code examples below automatically use your current site language.

Recommended Header
X-Lang: en
Supported Languages
zh, en, zh-TW, vi, ar

Accept-Language is also supported; X-Lang takes priority. Unsupported languages fall back to English.

Code Examples

curl -X GET "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/price?token=your_api_token_here&type=instant&warranty=1&deviceType=iphone" \
  -H "X-Lang: en"

Notes

  • Send parameters via Query or x-www-form-urlencoded
  • Warranty 4 (摆烂版) and 6 (高摆烂版) only support instant + iPhone, no iPad or review
  • Price may vary by user level (user-specific pricing)
  • The returned price is the cost for adding a single device

Try it in Console

Fill in the parameters below and send a request to test. Requests only go to this site's API; the URL is locked and cannot be changed, and your current login cookie is included.

https://testypro.iwai.cc/api/price?token=your_api_token_here&type=instant&warranty=1&deviceType=iphoneLocked to this site
stringRequired

User API token

string

Price type: instant or review. Empty or 'all' returns all types

string

Warranty type: 0/1/2/3/4/6. Empty or 'all' returns all warranty types

string

Device type: iphone or ipad. Empty or 'all' returns all device types