警告: API请求是受速率限制的,请不要一次发送4个以上的请求并将其保持在每分钟20个请求以下。超出请求限制的IP地址可能会自动被阻止。
API访问现在仅在PAID版本中可用-下面列出了BASIC API的价格
1.要获取有关电话的信息,请发送POST请求至:
https://www.imei.info/api/checkimei/
2.在POST数据中指定参数:
API Key: in paid version imei: enter IMEI number
使用API密钥在浏览器中获取有关电话信息的示例表格:
<form action="https://www.imei.info/api/checkimei" method="POST"> API Key: <input type="text" name="key" /> Imei: <input type="text" name="imei" /> <button type="submit">Check!</button> </form>
卷曲
curl -X POST https://www.imei.info/api/checkimei/ -H 'cache-control: no-cache' -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' -F imei={imei-to-check-here} -F key={your-api-key-here}
NODE.JS
var request = require("request"); var options = { method: 'POST', url: 'https://www.imei.info/api/checkimei/', headers: { 'cache-control': 'no-cache', 'content-type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' }, formData: { imei: 'imei-to-check-here', key: 'your-api-key-here' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
使用API的示例BASIC结果-下面列出的基本API价格
{ "imei":"01341000008XXXX", "brand": "APPLE", "model": "iPhone 5" }
使用API的完整结果示例-如果您需要除上述基本信息以外的更多参数,请与我们联系以获取价格
{ "imei": "35XXXXXXXXXXXXX", "imei_parts": { "fac": "XX", "cd": "X", "snr": "XXXXXX", "tac": "35XXXX" }, "brand": "NOKIA", "info": { "weight": 130.0, "battery": [ "Li-Ion", 850 ], "qwerty": false, "year": [ "2002", "09" ], "talk_time_umts": 0.0, "stand_by": 200.0, "touch_scr": false, "size": { "width": 57.0, "thickness": 26.0, "height": 130.0 }, "wifi_hotspot": false, "cpu_clock": 104.0, "other_band": [], "build": "Classic", "tel_func": false, "lan": false, "talk_time": 4.0, "int_memory": "4", "gsm_band": [ "900", "1800", "1900" ], "memory_card": [ "MMC", 0 ], "umts_band": [], "hsdpa_band": [], "display": { "color": [ true, "4K" ], "type": "LCD", "size": { "width": 176, "inches": 2.1, "height": 208 } }, "lan_ports": null, "os": "Symbian 6.1", "cpu": "ARM9" }, "model": "3650" }
3.错误支持
每个错误均以JSON格式返回
例如:
{'error': 'Incorrect username/password'} {'error': 'Account blocked'} {'error': 'Missing username/password'} {'error': 'Exceeded the limit'} {'error': 'IMEI: 35XXXXXXXXXXXXX not found'} {'error': 'IMEI cannot be empty'} {"errors": "API key invalid or disabled"} // HTTP STATUS: 403 {"errors": "API key not activated or expired"} // HTTP STATUS: 403 {"errors": "Hourly limit exceeded"} // HTTP STATUS: 429 {"errors": "Daily limit exceeded"} // HTTP STATUS: 429
4. API密钥状态检查:
https://www.imei.info/api/status?key={YOUR_API_KEY}
样本结果:
{"Has access": true, "Activation date": "2018-10-29", "Expiration date": "2018-12-30", "Checks left (hour)": "No limit", "Checks left (day)": "No limit", "Checks left (month)": 4996}
基本信息价格表(基本信息:品牌|型号):
- 2500 /支票:$ 50-$ 0.02 / imei
- 10000张/支票:$ 100-$ 0.01 / imei
- 100 000 /支票:$ 500-$ 0.005 / imei
订购基本Api的Api密钥:
购买50 USD基本API密钥 购买100 USD基本API密钥 购买500 USD基本API密钥
第二个用于检查服务(所有品牌)的API(API V4):