跳转到内容

WhatsApp设备检测

检查WhatsApp设备。

代码示例:

curl --location --request POST 'https://api.checknumber.ai/v1/whatsapp/device' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: AbcdEfgh' \
--data-urlencode 'number=+13258295358&country=US'

可以找到设备信息的输入号码的响应

{
"status": "OK",
"message": "iPhone 16 Plus",
"pricingStrategy": "PAY",
"transactionId": "evtqg8a8h7f96vjjftiznq"
}

无法找到设备信息的输入号码的响应

{
"status": "OK",
"message": "",
"pricingStrategy": "PAY",
"transactionId": "xvtqg8a8h7fxxvjjftizxx"
}

HTTP请求

POST https://api.checknumber.ai/v1/whatsapp/device

请求参数

参数描述
numberstring,电话号码
countrystring国家缩写。巴西:BR,墨西哥:MX,尼日利亚:NG,印度:IN。

响应格式

字段描述
status状态码
message设备信息

状态码

状态描述
OKchargemessage包含结果
FAILfree,无效查询
INVALID_INPUTfree,无效输入
RETRY_LATERfree,服务器错误,请稍后重试