Find which network serves a phone number
hlrlookup.people.phone.networkMobile Number Portability lookup returning the original and current network and porting information, without a live status.
- 価格
- $0.003304/successカタログ価格で提供
- 成功率
- —成功率データはまだありません成功率データはまだありません
- レイテンシ p50
- ——
- 最終確認
- 2026/10/08動作確認済み
POSThttps://toolswitch.dev/v1/tools/hlrlookup.people.phone.networkBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
Answers arrive in results[0]: current_network_details and is_ported. live_status is NOT_AVAILABLE_NETWORK_ONLY because this route does not check the line; use hlrlookup.people.phone.verify for that. For +1 numbers telephone_number_type is omitted. NO_COVERAGE, BAD_FORMAT and per-result errors are free.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| リクエストボディ(JSON) | ||||
input_format | 文字列 | 任意 | ISO3 country code when telephone_number is in national format, e.g. GBR. | |
output_format | 文字列 | 任意 | Format of formatted_telephone_number: E164, PLUS_E164, NATIONAL, or an ISO3 country code. | |
save_to_cache | 文字列 | 必須 | The result is cached only for this account, never shared. | PRIVATE |
telephone_number | 文字列 | 必須 | International E.164 digits without the leading +, or a national number with input_format. | 447540822872 |
cache_days_global | 整数 | 必須 | 0 never reads the shared cache, so the lookup is live. | 0 |
cache_days_private | 整数 | 必須 | 0 never reads this account's cache, so the lookup is live. | 0 |
- リクエストボディ(JSON)
input_format文字列任意ISO3 country code when telephone_number is in national format, e.g. GBR.
output_format文字列任意Format of formatted_telephone_number: E164, PLUS_E164, NATIONAL, or an ISO3 country code.
save_to_cache文字列必須The result is cached only for this account, never shared.
例:
PRIVATEtelephone_number文字列必須International E.164 digits without the leading +, or a national number with input_format.
例:
447540822872cache_days_global整数必須0 never reads the shared cache, so the lookup is live.
例:
0cache_days_private整数必須0 never reads this account's cache, so the lookup is live.
例:
0
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X POST 'https://toolswitch.dev/v1/tools/hlrlookup.people.phone.network' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"save_to_cache":"PRIVATE","telephone_number":"447540822872","cache_days_global":0,"cache_days_private":0}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/hlrlookup.people.phone.network",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"save_to_cache\":\"PRIVATE\",\"telephone_number\":\"447540822872\",\"cache_days_global\":0,\"cache_days_private\":0}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/hlrlookup.people.phone.network", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"save_to_cache\":\"PRIVATE\",\"telephone_number\":\"447540822872\",\"cache_days_global\":0,\"cache_days_private\":0}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.003304/success です。サービス料を含みます。