基础信息
查看接口基本信息和返回格式
接口描述
用于查询苹果设备的激活保修+国家版本+激活锁+网络锁,不包含监管锁
七日请求统计
接口地址
https://mdu.cc/api/AppleDeviceInspectionReport
请求方式
返回方式
返回预览
{
"code": 200, // 状态码(示例为0,你返回200)
"msg": "请求成功", // 消息
"time": "2026-06-08 19:05:52", // 请求时间
"ip": "120.231.71.231", // 客户端IP
"data": {
"serial": "LQGK75WQP3", // 序列号
"imei": "356698882586093", // IMEI1
"imei2": "356698882008924", // IMEI2
"meid": null, // MEID(无则为null)
"model": "iPhone 16 Pro", // 型号
"modelDesc": "IPHONE 16 PRO NATURAL 256GB-CHN", // 零件描述
"number": "A3294", // 入网型号
"partNumber": "MYLW3CH/A", // 型号号码(部件号)
"sn": "LQGK75WQP3", // 序列号(与serial相同)
"color": "原色钛金属", // 颜色
"storage": "8GB+256GB", // 存储容量(含内存)
"description": "iPhone 16 Pro 原色钛金属 8GB+256GB", // 完整描述
"country": "China", // 国家(英文)
"estPurchaseDate": "2024-09-17", // 预估购买日期
"warranty": { // 保修详细信息
"serial": "LQGK75WQP3", // 序列号
"model": "iPhone 16 Pro", // 型号
"thumbnail": "https://appleid.cdn-apple.com/static/deviceImages-15.0/iPhone/iPhone17,1-3b3b3c-404041/online-sourcelist__3x.png", // 产品图片
"replaced": false, // 是否已更换产品的序列号
"registered": true, // 是否已注册设备
"activated": true, // 是否已激活
"validPurchaseDate": true, // 是否已验证购买日期
"warrantyDaysRemaining": 0, // 保修剩余天数(0=已过保)
"acEligible": false, // 是否有资格在线购买AppleCare
"loaner": false, // 是否借出设备
"pre-activated": true, // 是否预激活设备
"warrantyYear": 1, // 保修年数(1年标准)
"warrantyStatus": "已过保修期", // 保修状态
"appleCare": false, // 是否已购买AppleCare+
"estPurchaseDate": "2024-09-17", // 预估购买日期
"repairExpiry": "2025-10-03", // 保修到期日期
"introduction": "", // 介绍(当前为空,接口特有字段)
"isAccurate": true, // 保修信息是否精确(接口特有字段)
"appleCareVerifyed": true // AppleCare是否已验证
},
"warrantyStatus": "已过保修期", // 保修状态(外层冗余,与内层一致)
"fmiOn": false, // 激活锁状态(false=未开启)
"type": "零售机", // 机器类型(零售机/官换机等)
"countryName": "国行", // 国家版本(中文)
"simlock": "无锁 (Unlocked)", // 网络锁状态
"productPlace": "广东省深圳市;河南省郑州市;江苏省苏州市" // 产品产地(接口特有字段)
}
}
计费标准
了解接口计费方式和套餐价格
接口类型
付费接口:本接口按次计费,每次调用将扣除相应额度。请确保账户余额充足。
计费方式
QPS限制
普通用户不限制请求频率
会员用户不限制请求频率
每日请求次数
普通用户不限制每日请求次数
会员用户不限制每日请求次数
扣费顺序
计费规则
安全认证
了解接口的认证方式和访问凭证管理
实名认证
本接口对所有用户开放,无需实名认证即可访问
认证方式
通过 HTTP Header 传递认证信息
通过 URL 参数传递认证信息
Token 管理
登录账户
使用您的账号密码登录平台,获取用户凭证
获取 Token
即可查看你的 Token 密钥
更换 Token
进入个人中心,点击「更换Token」,系统将生成新的 Token 密钥
保存 Token
请妥善保管您的 Token 密钥,泄露时请立即更换
Token 怪谈
安全建议
- 定期更换密钥,建议每 90 天更新一次
- 发现密钥泄露,请立即在个人中心「更换」该密钥
- 不要将密钥硬编码在代码中,使用环境变量存储
参数文档
了解接口的请求参数和响应字段说明
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|---|
token |
string | 是 | 无 | 登录后显示你的请求token | 接口请求唯一认证标识! |
sn |
string | 是 | 356698882008924 | 请使用苹果iIMEI查询 |
响应参数
| 字段名 | 类型 | 说明 |
|---|---|---|
code
|
int | 状态码,200为成功,其他为异常 |
msg
|
string | 响应信息 |
data
|
object | 层级对象 |
|
│
├─
serial
|
string | 序列号 |
|
│
├─
imei
|
string | IMEI1 |
|
│
├─
imei2
|
string | IMEI2 |
|
│
├─
model
|
string | 型号 |
|
│
├─
modelDesc
|
string | 零件描述 |
|
│
├─
number
|
string | 入网型号 |
|
│
├─
partNumber
|
string | 型号号码(部件号) |
|
│
├─
sn
|
string | 序列号(与serial相同) |
|
│
├─
color
|
string | 颜色 |
|
│
├─
storage
|
string | 存储容量(含内存) |
|
│
├─
description
|
string | 完整描述 |
|
│
├─
country
|
string | 国家(英文) |
|
│
├─
estPurchaseDate
|
string | 预估购买日期 |
|
│
warranty
|
object | 层级对象,保修详细信息 |
|
│
│
├─
serial
|
string | 序列号 |
|
│
│
├─
model
|
string | 型号 |
|
│
│
├─
thumbnail
|
string | 产品图片 |
|
│
│
├─
replaced
|
boolean | 是否已更换产品的序列号 |
|
│
│
├─
registered
|
boolean | 是否已注册设备 |
|
│
│
├─
activated
|
boolean | 是否已激活 |
|
│
│
├─
validPurchaseDate
|
boolean | 是否已验证购买日期 |
|
│
│
├─
warrantyDaysRemaining
|
int | 保修剩余天数(0=已过保) |
|
│
│
├─
acEligible
|
boolean | 是否有资格在线购买AppleCare |
|
│
│
├─
loaner
|
boolean | 是否借出设备 |
|
│
│
├─
pre-activated
|
boolean | 是否预激活设备 |
|
│
│
├─
warrantyYear
|
int | 保修年数(1年标准) |
|
│
│
├─
warrantyStatus
|
string | 保修状态 |
|
│
│
├─
appleCare
|
boolean | 是否已购买AppleCare+ |
|
│
│
├─
estPurchaseDate
|
string | 预估购买日期 |
|
│
│
├─
repairExpiry
|
string | 保修到期日期 |
|
│
│
├─
introduction
|
string | 介绍 |
|
│
│
├─
isAccurate
|
boolean | 保修信息是否精确 |
|
│
│
└─
appleCareVerifyed
|
boolean | AppleCare是否已验证 |
|
│
├─
warrantyStatus
|
string | 保修状态 |
|
│
├─
fmiOn
|
boolean | 激活锁状态(false=未开启) |
|
│
├─
type
|
string | 机器类型(零售机/官换机等) |
|
│
├─
countryName
|
string | 国家版本(中文) |
|
│
├─
simlock
|
string | 网络锁状态 |
|
│
└─
productPlace
|
string | 产品产地 |
状态码
了解接口返回的状态码含义及处理方式
接口状态码
| 状态码 | 说明 |
|---|---|
200 |
请求成功 |
201 |
请求失败 |
服务器状态码
| 状态码 | 说明 |
|---|---|
500 |
服务器错误 |
501 |
请求接口不存在 |
502 |
请求接口已下架 |
503 |
请求接口维护中 |
504 |
缺少请求token参数 |
505 |
请求token不存在 |
506 |
请求token已被封禁 |
507 |
请求token额度不足 |
508 |
今日请求token已达上限 |
509 |
请求ip不在token白名单内 |
510 |
请求token无权使用当前接口 |
511 |
接口请求频率过高,请稍后再试 |
512 |
该接口未开启在线测试功能 |
513 |
今日在线测试次数已达上限 |
514 |
今日该接口请求次数已达上限 |
515 |
该接口为会员专属接口,请携带会员token |
516 |
该接口为会员专属接口,请开通会员 |
517 |
接口请求过于频繁,已被临时限制 |
518 |
该接口需要实名认证,请先完成实名认证 |
519 |
当前Token今日请求次数已达上限 |
520 |
当前Token已被禁止使用 |
521 |
请求token余额不足 |
522 |
请求token额度和余额均不足 |
530 |
接口服务异常,请稍后再试 |
531 |
接口响应超时,请稍后再试 |
532 |
接口暂时不可用,请稍后再试 |
533 |
接口配置异常 |
534 |
请求参数错误,请检查后重试 |
535 |
接口返回数据异常 |
在线测试
在线调试接口,实时查看响应结果
在线测试未开启
该接口暂未开启在线测试功能
示例代码
查看多种编程语言的接口调用示例
/**
* API请求DEMO-PHP
*
* 本demo支持GET与POST请求。
*/
//你申请的token密钥
$API_TOKEN = 'YOUR_TOKEN';
//API接口地址
$API_URL = 'https://mdu.cc/api/AppleDeviceInspectionReport';
$get_post_data = array(
'token' => 'YOUR_TOKEN',
'sn' => '参数值',
);
/*发起请求API接口:
第1个参数:API接口地址URL,跟上面的同名变量相对应,无需更改。
第2个参数:API接口参数数组,跟上面的同名变量相对应,无需更改。
第3个参数:请求协议(GET或POST),一般默认GET,部分接口需要POST请求,根据实际情况修改为POST即可。
*/
$resdata = api::send($API_URL, $get_post_data, 'GET'); //发起请求,注意这里要选择接口支持的协议,默认GET,可选POST
//打印请求结果
print($resdata);
///////////////你的业务代码可写在这里处理API返回的数据
/**
* API请求类
*/
class api
{
public static function send($API_URL, $get_post_data, $type)
{
$get_post_data = http_build_query($get_post_data);
$res = self::send_curl($API_URL, $type, $get_post_data, null);
return $res;
}
//封装好的CURL请求函数,支持POST|GET
public static function send_curl($API_URL, $type, $get_post_data)
{
$ch = curl_init();
if ($type == 'POST') {
curl_setopt($ch, CURLOPT_URL, $API_URL);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $get_post_data);
} elseif ($type == 'GET') {
curl_setopt($ch, CURLOPT_URL, $API_URL . '?' . $get_post_data);
}
curl_setopt($ch, CURLOPT_REFERER, $API_URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$resdata = curl_exec($ch);
curl_close($ch);
return $resdata;
}
}
/**
* API请求DEMO-JavaScript
*
* 本demo支持GET与POST请求。
*/
//jQuery-Ajax
$.ajax({
url: 'https://mdu.cc/api/AppleDeviceInspectionReport',
data: {
token: 'YOUR_TOKEN',
sn: '参数值',
},
type: 'GET', //请求协议(GET或POST),一般默认GET,部分接口需要POST请求,根据实际情况修改为POST即可。
dataType: 'json',
success: function(data) {
console.log(data); //请求成功,输出结果到控制台
},
timeout: 3000, //超时时间
error: function(data) {
console.log('请求失败'); //失败处理
}
});
/**
* API请求DEMO-NodeJs
*
* 本demo支持GET与POST请求。
*/
const https = require('https');
const querystring = require('querystring');
// 定义请求选项
const options = {
hostname: 'mdu.cc',
path: '/api/AppleDeviceInspectionReport',
method: 'GET'
};
// 发送GET请求
https.get(options, res => {
console.log(`statusCode: ${res.statusCode}`);
res.on('data', d => {
process.stdout.write(d);
});
}).on('error', error => {
console.error(error);
});
import requests
url = "https://mdu.cc/api/AppleDeviceInspectionReport"
params = {
"token": "YOUR_TOKEN",
"sn": "参数值",
}
response = requests.get(url, params=params)
print(response.json())
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
)
func main() {
apiURL := "https://mdu.cc/api/AppleDeviceInspectionReport"
// 构建查询参数
params := url.Values{}
params.Add("token", "YOUR_TOKEN")
params.Add("sn", "参数值")
fullURL := apiURL + "?" + params.Encode()
resp, err := http.Get(fullURL)
if err != nil {
fmt.Println("请求失败:", err)
return
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
public class ApiRequest {
public static void main(String[] args) {
try {
String apiUrl = "https://mdu.cc/api/AppleDeviceInspectionReport";
// 构建URL参数
StringBuilder params = new StringBuilder();
params.append("token=").append(URLEncoder.encode("YOUR_TOKEN", "UTF-8"));
params.append("&"); params.append("sn=").append(URLEncoder.encode("参数值", "UTF-8"));
URL url = new URL(apiUrl + "?" + params.toString());
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
StringBuilder response = new StringBuilder();
while ((line = reader.readLine()) != null) {
response.append(line);
}
reader.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
class Program {
static async Task Main() {
string apiUrl = "https://mdu.cc/api/AppleDeviceInspectionReport";
using (HttpClient client = new HttpClient()) {
// GET请求
var queryParams = new Dictionary<string, string> {
{ "token", "YOUR_TOKEN" },
{ "sn", "参数值" },
};
var queryString = new FormUrlEncodedContent(queryParams).ReadAsStringAsync().Result;
HttpResponseMessage response = await client.GetAsync(apiUrl + "?" + queryString);
string result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
}
/**
* API请求DEMO-C
*
* 本demo支持GET与POST请求。
* 需要安装libcurl库
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
// API地址
const char* url = "https://mdu.cc/api/AppleDeviceInspectionReport";
// GET请求
void getRequest(CURL* curl) {
CURLcode res;
char fullUrl[1024];
snprintf(fullUrl, sizeof(fullUrl), "%s?token=YOUR_TOKEN&sn=%E5%8F%82%E6%95%B0%E5%80%BC", url);
curl_easy_setopt(curl, CURLOPT_URL, fullUrl);
res = curl_easy_perform(curl);
if(res != CURLE_OK) {
fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res));
}
}
int main() {
CURL* curl = curl_easy_init();
if(curl) {
getRequest(curl); curl_easy_cleanup(curl);
}
return 0;
}
/**
* API请求DEMO-C++
*
* 本demo支持GET与POST请求。
* 需要安装libcurl库
*/
#include <iostream>
#include <string>
#include <curl/curl.h>
int main() {
CURL* curl = curl_easy_init();
if(curl) {
std::string apiUrl = "https://mdu.cc/api/AppleDeviceInspectionReport";
// GET请求
std::string fullUrl = apiUrl + "?token=YOUR_TOKEN&sn=%E5%8F%82%E6%95%B0%E5%80%BC";
curl_easy_setopt(curl, CURLOPT_URL, fullUrl.c_str());
CURLcode res = curl_easy_perform(curl);
if(res != CURLE_OK) {
std::cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << std::endl;
}
curl_easy_cleanup(curl);
}
return 0;
}
.版本 2
.支持库 spec
.子程序 _启动子程序
.局部变量 url, 文本型
.局部变量 data, 文本型
.局部变量 result, 文本型
url = "https://mdu.cc/api/AppleDeviceInspectionReport"
url = url + "?token=YOUR_TOKEN&sn=%E5%8F%82%E6%95%B0%E5%80%BC"
result = 网页_访问 (url, 0, , , , , , , , , , )
调试输出 (result)
常见问题
查找常见问题的解决方案
暂无常见问题
该接口暂未添加常见问题说明