苹果型号查询 Model Check
- 相关
- 苹果保修查询
- 接口:http://api.3023data.com/apple/model?sn=FK1ST6G4G5QY / sn=353335079865302
- 方式:GET
- 价格:0.05元/次 价格优惠,最低至2.5折
- 2.5折时:0.0125元/次
该服务仅适用于查询型号,无法验证序列号是否有效
请求参数
| 参数 | 位置 | 必填 | 值 |
| key | header | 是 | key |
| lang | url | 否 | zh=>中文、en=>英文,默认为zh |
| sn | url | 是 | 苹果IMEI/序列号 |
key in request header or url
返回示例
{
"code": 0,
"data": {
"sn": "FK1ST6G4G5QY",
"type": "sn",
"model": "iPhone 6 Plus",
"capacity": "64GB",
"color": "金色",
"manufacture": {
"date": "2016-12-02"
},
"manufacturer": "Foxconn",
"image": "https://cdsassets.apple.com/live/I2F2FLC5/iphone/iphone-6plus.png"
},
"source": "m-a",
"cost": 0.02,
"balance": 3023
}
接口错误码所有接口错误码一致
| 400 | Bad Request | 请求参数错误 |
| 404 | Not Found | 无效或不存在 |
| 502 | Bad Gateway | 不支持或查询失败 |
| 503 | Service Unavailable | 繁忙或者临时维护,请稍后重试 |
| 410 | Gone | 接口已失效/下线 |
code = 错误码 (int),message = 错误信息 (string)
查询成功:code===0
每次请求均会返回 cost(扣费) 和 balance(余额),方便随时记录和监控
错误(400)和无效(404)一般扣费 0.05 元,其他错误不扣费
用户错误码
| 401 | Unauthorized | 密钥无效 |
| 402 | Payment Required | 余额不足 |
| 403 | Forbidden | 无权限(IP白名单限制) |
接口具体错误信息见 message
如果前端需要返回错误信息,请直接返回 message 的内容