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.
- Precio
- $0.003304/successA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latencia p50
- ——
- Última verificación
- 8 oct 2026Verificado y operativo
POSThttps://toolswitch.dev/v1/tools/hlrlookup.people.phone.networkBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
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.
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Cuerpo (JSON) | ||||
input_format | cadena | Opcional | ISO3 country code when telephone_number is in national format, e.g. GBR. | |
output_format | cadena | Opcional | Format of formatted_telephone_number: E164, PLUS_E164, NATIONAL, or an ISO3 country code. | |
save_to_cache | cadena | Obligatorio | The result is cached only for this account, never shared. | PRIVATE |
telephone_number | cadena | Obligatorio | International E.164 digits without the leading +, or a national number with input_format. | 447540822872 |
cache_days_global | entero | Obligatorio | 0 never reads the shared cache, so the lookup is live. | 0 |
cache_days_private | entero | Obligatorio | 0 never reads this account's cache, so the lookup is live. | 0 |
- Cuerpo (JSON)
input_formatcadenaOpcionalISO3 country code when telephone_number is in national format, e.g. GBR.
output_formatcadenaOpcionalFormat of formatted_telephone_number: E164, PLUS_E164, NATIONAL, or an ISO3 country code.
save_to_cachecadenaObligatorioThe result is cached only for this account, never shared.
Ejemplo:
PRIVATEtelephone_numbercadenaObligatorioInternational E.164 digits without the leading +, or a national number with input_format.
Ejemplo:
447540822872cache_days_globalenteroObligatorio0 never reads the shared cache, so the lookup is live.
Ejemplo:
0cache_days_privateenteroObligatorio0 never reads this account's cache, so the lookup is live.
Ejemplo:
0
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.003304/success, incluida la tarifa de servicio.