Check if a phone number is live
hlrlookup.people.phone.verifyPerforms a live HLR lookup, returning number type, live status, original and current network, and porting information. Warning: a national number sent without input_format can be read as another country's number (a US 617... number as an Australian 61... number), and that lookup is still charged.
- Price
- $0.013216/successAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- 8 oct 2026Verified working
POSThttps://toolswitch.dev/v1/tools/hlrlookup.people.phone.verifyBeta- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
Answers arrive in results[0]. live_status is LIVE, DEAD, ABSENT_SUBSCRIBER, NO_TELESERVICE_PROVISIONED, NOT_AVAILABLE_NETWORK_ONLY, NO_COVERAGE, INCONCLUSIVE or NOT_APPLICABLE; current_network_details names the serving network and is_ported says whether the number moved. Some networks give no live status (NOT_AVAILABLE_NETWORK_ONLY) but the lookup still costs a credit. Landlines and other non-mobile numbers return NO_COVERAGE and bad formats return BAD_FORMAT; both are free. A results[0].error other than NONE (INSUFFICIENT_CREDIT, TOO_MANY_REQUESTS, INTERNAL_ERROR, NULL_RESULT) is free and should be retried later.
Esta herramienta no tiene parámetros. Consulta la documentación del proveedor ↗ Provider docs
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.verify' \
-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.verify",
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.verify", {
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.013216/success, incluida la tarifa de servicio.