Phone Number Verification / HLR Data
Simple Query
Allows you to check the status of a phone number.
Endpoint https://sms.witi.me/izdata/hlr.aspx?chave=API_KEY&telefone=phone
Method GET
Input "phone" filled with the phone number
Example call:
https://sms.witi.me/izdata/hlr.aspx?chave=API_KEY&telefone=11987654321
Batch Query
Allows you to check the status of multiple phone numbers simultaneously.
Endpoint https://sms.witi.me/izdata/hlr.aspx?chave=API_KEY
Method POST
Input JSON list with the phone numbers
Example input:
["54992389592","11987654321"]
Output
The response will be a JSON with the following characteristics.
Class Root
| Property | Content |
|---|---|
| Telefones | List of returned phone numbers |
| Resultado | Information about the query and billing |
Class Telefone
| Property | Content |
|---|---|
| Valido | Indicates whether the phone number is valid or not |
| Telefone | Phone number |
| CodOperadora | Operator code |
| Tipo | Line type code0 Undefined1 Landline2 Others3 Mobile |
| Country_code | Country code |
| Operadora | Name of the phone operator |
| DataConsulta | Date the query was performed |
| Indicates if WhatsApp usage was registered for this line | |
| WhatsAppDataStatus | Date when this phone was registered using WhatsApp |
| TipoLinha | Mobile or Landline |
Example output:
{
{
"Telefones": [
{
"Valido": true,
"Telefone": "11987654321",
"CodOperadora": 55321,
"Tipo": 3,
"Country_code": "+55",
"Location": null,
"Operadora": "Claro - Celular",
"DataConsulta": "2021-10-18T00:00:00",
"WhatsApp": false,
"WhatsAppDataStatus": "0001-01-01T00:00:00",
"tipoHLR": 0,
"TipoLinha": "CELULAR",
}
],
"Resultado": {
"CodigoResultado": 0,
"Mensagem": "CONSULTA REALIZADA COM SUCESSO",
"Chave": "840b7921-c823-455e-cedc-5108b126b7ea",
"Cobrado": true,
"ValorCobrado": 0.0100
}
}