Skip to content
OSINTtools.io

HLR Lookups API

Commercial HLR, number portability and number type lookups that show a mobile number's live network status and carrier.

Base URL
https://www.hlr-lookups.com/api/v2
Sign-in
Basic auth
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from hlr-lookups.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The HLR Lookups API checks mobile and landline numbers. An HLR lookup asks the carrier network whether a number is connected, which network it is on, whether it was ported and whether it is roaming. An MNP lookup returns the network and porting data from a database, and an NT lookup returns the number type (mobile, landline, VoIP and others) and validity.

Calls go to https://www.hlr-lookups.com/api/v2/. Protected endpoints accept Digest-Auth (HMAC-SHA256 signature headers, recommended by the docs) or Basic-Auth with your API key and secret. Numbers are sent in international format. Asynchronous variants (/hlr-lookups and similar, up to 1,000 numbers) deliver results to a webhook and are not described here.

Each lookup has a cost in EUR that is deducted from your balance. The docs I read do not state rate limits.

Quick start

  1. Get a key

    Create an account with HLR Lookups and copy your basic auth. Where to get it

  2. Make your first request

    Your account balance in EUR.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://www.hlr-lookups.com/api/v2/balance' \
      -u 'USERNAME:PASSWORD'
  3. Read the response

    A 200 response looks like this.

    {
      "balance": "100.00",
      "in_flight_balance": "99.50"
    }

Authentication

HTTP basic authentication: your username and password (or key and secret) on every request.

Basic-Auth with API key and secret; the docs recommend Digest-Auth (X-Digest-Key, X-Digest-Signature, X-Digest-Timestamp headers) instead.

Get a key from HLR Lookups

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Lookups

  • Takes: Phone number
  • Active: contacts the target
  • Cost: Charged per lookup in EUR (the response has the cost)

Synchronous. connectivity_status is CONNECTED, ABSENT, INVALID_MSISDN or UNDETERMINED; data_source is LIVE_HLR or MNP_DB. IMSI, MSIN and MSC are only filled where the network provides them.

Request body (JSON) · 3Show

msisdnstringalways present

Number in international format, e.g. +15550100

routestring

Optional 3-character route id; omit to use your routing map or automatic routing

storagestring

Optional report name the result is stored under

Response fields · 15Show

idstring

12-character lookup id

msisdnstring

Number queried

connectivity_statusstring

CONNECTED, ABSENT, INVALID_MSISDN or UNDETERMINED

mccmncstring

Current network code

original_network_namestring

Original network

original_country_codestring

Original country code

is_portedboolean

Whether the number was ported

ported_network_namestring

Network it was ported to

is_roamingboolean

Whether the subscriber is roaming

roaming_network_namestring

Roaming network, if available

coststring

Charge in EUR

processing_statusstring

COMPLETED, REJECTED or FAILED

data_sourcestring

LIVE_HLR or MNP_DB

error_codestring

Error code, if any

error_descriptionstring

Error text, if any

curl -X POST 'https://www.hlr-lookups.com/api/v2/hlr-lookup' \
  -u 'USERNAME:PASSWORD' \
  -H 'Content-Type: application/json' \
  -d '{"msisdn":"+15550100","route":null,"storage":null}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "f94ef092cb53",
  "msisdn": "+15550100",
  "connectivity_status": "CONNECTED",
  "mccmnc": "310260",
  "original_network_name": "Example Mobile A",
  "original_country_code": "US",
  "is_ported": true,
  "ported_network_name": "Example Mobile B",
  "is_roaming": false,
  "roaming_network_name": null,
  "cost": "0.0100",
  "processing_status": "COMPLETED",
  "data_source": "LIVE_HLR",
  "error_code": null,
  "error_description": null
}
  • Takes: Phone number
  • Passive: the target is not contacted
  • Cost: Charged per lookup in EUR (the response has the cost)

Returns portability and network ownership only, not whether the handset is reachable.

Request body (JSON) · 3Show

msisdnstringalways present

Number in international format

routestring

Optional 3-character route id

storagestring

Optional report name

Response fields · 9Show

idstring

Lookup id

msisdnstring

Number queried

query_statusstring

OK or FAILED

mccmncstring

Current network code

is_portedboolean

Whether the number was ported

original_network_namestring

Original network

ported_network_namestring

Current network if ported

extrastring

Optional extra detail, e.g. an LRN

coststring

Charge in EUR

curl -X POST 'https://www.hlr-lookups.com/api/v2/mnp-lookup' \
  -u 'USERNAME:PASSWORD' \
  -H 'Content-Type: application/json' \
  -d '{"msisdn":"+15550100"}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "e428acb1c0ae",
  "msisdn": "+15550100",
  "query_status": "OK",
  "mccmnc": "310260",
  "is_ported": true,
  "original_network_name": "Example Mobile A",
  "ported_network_name": "Example Mobile B",
  "extra": "LRN:5550100000",
  "cost": "0.0050"
}
  • Takes: Phone number
  • Passive: the target is not contacted
  • Cost: Charged per lookup in EUR (the response has the cost)

Also says whether an HLR lookup can be run on the number (qualifies_for_hlr_lookup). is_possibly_ported is only a hint; use an MNP lookup for porting.

Request body (JSON) · 3Show

numberstringalways present

Number in international format

routestring

Optional 3-character route id

storagestring

Optional report name

Response fields · 13Show

idstring

Lookup id

numberstring

Number queried

number_typestring

LANDLINE, MOBILE, MOBILE_OR_LANDLINE, TOLL_FREE, PREMIUM_RATE, SHARED_COST, VOIP, PAGER, UAN, VOICEMAIL or UNKNOWN

query_statusstring

OK or FAILED

is_validboolean

Whether the number is syntactically valid

invalid_reasonstring

Reason if invalid

is_possibly_portedboolean

Hint that the number may be ported

qualifies_for_hlr_lookupboolean

Whether an HLR lookup can be run

original_country_codestring

Country code

regions[]string

Regions

timezones[]string

Time zones

info_textstring

Plain-language note

coststring

Charge in EUR

curl -X POST 'https://www.hlr-lookups.com/api/v2/nt-lookup' \
  -u 'USERNAME:PASSWORD' \
  -H 'Content-Type: application/json' \
  -d '{"number":"+15550100"}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "2ed0788379c6",
  "number": "+15550100",
  "number_type": "LANDLINE",
  "query_status": "OK",
  "is_valid": true,
  "invalid_reason": null,
  "is_possibly_ported": false,
  "qualifies_for_hlr_lookup": false,
  "original_country_code": "US",
  "regions": [
    "Example City"
  ],
  "timezones": [
    "America/New_York"
  ],
  "info_text": "This is a landline number.",
  "cost": "0.0050"
}

Account

  • Passive: the target is not contacted

in_flight_balance subtracts charges still in flight; the docs recommend it for balance checks.

Response fields · 2Show

balancestring

Raw cached balance in EUR

in_flight_balancestring

Balance after in-flight charges, in EUR

curl 'https://www.hlr-lookups.com/api/v2/balance' \
  -u 'USERNAME:PASSWORD'
Replace YOUR_API_KEY with your key
Response
{
  "balance": "100.00",
  "in_flight_balance": "99.50"
}

Returns the amount in EUR for the given number, route type and route.

Query parameters

msisdnstringrequiredtakes your phone number

Number in international format

Example: +15550100
route_typestringrequired

Lookup type

Example: HLROne of: HLR, MNP, NT
routestring

Optional 3-character route id

Example: ABC
Response fields · 4Show

amountstring

Price in EUR

msisdnstring

Number the price applies to

route_typestring

Lookup type

routestring

Route

curl 'https://www.hlr-lookups.com/api/v2/price?msisdn=%2B15550100&route_type=HLR' \
  -u 'USERNAME:PASSWORD'
Replace YOUR_API_KEY with your key
Response
{
  "price": {
    "amount": "0.01000",
    "msisdn": "+15550100",
    "route_type": "HLR",
    "route": "ABC"
  }
}