POSTinternational-phone-validation
國際手機號碼有效性查詢
驗證國際電話號碼並回傳標準格式、國家、地區、電信商與線路類型。
15 匠幣/次
線上除錯
無需寫程式,瀏覽器中直接發起真實請求
接入文件
國際手機號碼有效性查詢
驗證國際電話號碼並回傳標準格式、國家、地區、電信商與線路類型。
Endpoint
POST /v1/international-phone-validation
Authentication
Use a ToolKK OpenAPI AppKey. APILayer credentials stay on the ToolKK provider gateway.
Billing
A successful call costs 15 coins.
Errors
Invalid input, quota exhaustion, authentication faults, and temporary provider failures return normalized error codes and messages.
接入示例程式碼
提供 Shell、Python、Go、Java、PHP 等常見接入示例,便於直接接到現有專案裡。
請求示例
{
"number": "+14158586273"
}響應示例
{
"code": "SUCCESS",
"message": "success",
"data": {
"valid": true,
"international_format": "+14158586273",
"country_code": "US",
"country_name": "United States of America",
"location": "Novato",
"carrier": "AT&T Mobility LLC",
"line_type": "mobile"
}
}請求欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 示例值 |
|---|---|---|
| number | string | +14158586273 |
響應欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 示例值 |
|---|---|---|
| code | string | SUCCESS |
| message | string | success |
| data | object | {...} |
| data.valid | boolean | true |
| data.international_format | string | +14158586273 |
| data.country_code | string | US |
| data.country_name | string | United States of America |
| data.location |