Get Price
Retrieve device pricing filtered by type (instant/review), warranty, and device type. Returns the user IP address
/api/priceRequest Parameters
All parameters can be passed via Query or Body
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | Required | User API token Example: your_api_token_here |
type | string | Optional | Price type: instant or review. Empty or 'all' returns all types instantreviewall Example: instant |
warranty | string | Optional | Warranty type: 0/1/2/3/4/6. Empty or 'all' returns all warranty types 012346all Example: 1 |
deviceType | string | Optional | Device type: iphone or ipad. Empty or 'all' returns all device types iphoneipadall Example: iphone |
Response
| Parameter | Type | Required | Description |
|---|---|---|---|
code | number | Required | Status code: 1=success, 0=failure Example: 1 |
msg | string | Required | Response message Example: 查询成功 |
time | number | Required | Server timestamp (Unix seconds) Example: 1769675945 |
data | object | Required | Response payload |
data.ip | string | Required | User IP address Example: 192.168.1.100 |
data.instant | object | array | Required | Instant price (object for single, array for multiple). Only returned when type is empty, 'all', or 'instant' |
data.review | object | array | Required | Review price (object for single, array for multiple). Only returned when type is empty, 'all', or 'review' |
*.warranty | string | Required | Warranty type code Example: 1 |
*.warrantyName | string | Required | Warranty type name Example: 标准版 |
*.deviceType | string | Required | Device type Example: iphone |
*.price | number | Required | Price (unit: CNY) Example: 10 |
ysucc | string | Required | Success flag, returns "Ysucc" on success Example: Ysucc |
Query all prices
Without type, warranty, deviceType params, returns all combinations
Query instant prices only
type=instant, returns all instant prices
Error Codes
000Response Language
Customize the API response language with the X-Lang header. The code examples below automatically use your current site language.
X-Lang: enzh, en, zh-TW, vi, arAccept-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 siteUser API token
Price type: instant or review. Empty or 'all' returns all types
Warranty type: 0/1/2/3/4/6. Empty or 'all' returns all warranty types
Device type: iphone or ipad. Empty or 'all' returns all device types