API HLR Lookup
With the CaptainVerify API, you can integrate the HLR lookup verification in your own applications. We advise to use the API "a posteriori" because a verification can be more or less long (1 minutes). You can also take a look at HLR documentation.
API key
An account is necessary to generate the key for the API, this is what will give you access to the service.
The request
To make a request to the API, simply call the GET protocol to this URL:
https://api.captainverify.com/verify?phone={PHONE_NUMBER}&apikey=XXXXXXXXXXXXXXXXXXXX
Replace {PHONE_NUMBER} with the mobile number to check (international format : +447...)
API limits
The API is limited to a maximum of 2 simultaneous connections and 50 checks per minute. When you integrate the API, make sure your application does not exceed this limit.
The answer
A JSON table will be returned with these variables:
Variables | Possible value |
---|---|
status |
true, false. |
credits |
89 |
message |
default : null |
requested_number |
447000000000 |
formatted_number |
+447000000000 |
network |
T-MOBILE UK |
original_network |
3 |
roaming |
true, false |
ported |
true, false |
country |
UNITED KINGDOM |
country_prefix |
44 |
details |
DELIVERED_TO_HANDSET, UNDELIVERABLE_NOT_DELIVERED |
result |
The status of the number: Valid, Invalid, Unknow |