Skip to main content

HLR

Example of a request to check the validity of a specified number. You can also get detailed information about the number, including identifying the mobile operator and whether the number is in roaming. The subscriber does not receive any notifications, as the request is directed to the telecom operator's equipment.

URI: /api/json.php

All requests to API are sent in JSON format using the POST method.

Header parameters

Requests must contain header Content-Type: application/json, otherwise, the request will be considered invalid even if it has valid JSON.

Request example

{
"auth": "bb56a4369eb19***cfec6d1776bd25",
"data": [
{
"type": "hlr",
"id": 100500,
"phone": 380971234567
}
]
}

Response examples

HTTP Status Code: 200
Content Type: JSON application/json

{
"success": true,
"data": [
{
"success": true,
"data": {
"phone": 380971234567,
"status": "DELIVERED",
"imsi": 255010000000000,
"mccmnc": 25501,
"ported": true,
"network": {
"origin": {
"name": "Kyivstar",
"prefix": 97,
"country": {
"name": "Ukraine",
"prefix": 380,
}
},
"ported": {
"name": "Vodafone Ukraine (fka MTS)",
"prefix": 66,
"country": {
"name": "Ukraine",
"prefix": 380,
}
}
}
}
}
]
}