Number Lookup API
The Number Lookup API finds the carrier behind a phone number: carrier name, line type and MCC/MNC. Numbers must be in E.164 format, for example +38766000111. This version supports carrier lookup.
[!TIP]
Try it here: enter your Client ID and Client Secret in the Authentication box, click Authorize, then use Test Request on any endpoint.
What you can do
| Task |
Endpoint |
Description |
| Look up a number |
POST /number-lookup |
Carrier lookup for one number |
| Bulk lookup |
POST /number-lookup/bulk |
Start an asynchronous bulk job for up to 1000 numbers |
| Bulk job status |
GET /number-lookup/bulk/{job_id} |
Progress and results of a bulk job |
| Your price |
GET /number-lookup/pricing |
Whether the API is enabled for you, and your price per lookup |
| Usage history |
GET /number-lookup/transactions |
Every lookup you made, with what it cost |
| Bulk jobs |
GET /number-lookup/jobs |
All your bulk jobs and their results |
| Health |
GET /number-lookup/health |
Service availability (no token needed) |
Quick start
- Enable the API. Number lookup must be enabled for your organization in OmaxTelecom Console.
- Get a token — see Getting started.
- Look up a number:
curl -X POST "https://api.omaxtelecom.com/numbers/number-lookup?phone_number=%2B38766000111" \
-H "Authorization: Bearer $TOKEN"
{
"success": true,
"data": {
"phone_number": "+38766000111",
"country_code": "BA",
"national_format": "066 000-111",
"valid": true,
"carrier": {
"name": "BH Telecom",
"type": "mobile",
"mcc": "218",
"mnc": "90"
}
}
}
[!TIP]
In a query string, + must be sent as %2B, otherwise it is read as a space.
Authentication
Send an access token on every request except GET /number-lookup/health:
Authorization: Bearer <access_token>
Get the token from POST https://api.omaxtelecom.com/auth/token with your Console client_id and client_secret. Getting started shows how, with code samples.
Machine-to-machine clients whose token has no organization claim also send:
X-Organization-Id: <organization_id>
The lookup result
| Field |
Description |
phone_number |
Normalized E.164 number |
country_code |
ISO 3166-1 alpha-2 country code |
national_format |
Number formatted the national way |
valid |
The number is considered valid |
carrier.name |
Carrier name, when known |
carrier.type |
Line type, for example mobile or landline |
carrier.mcc |
Mobile Country Code |
carrier.mnc |
Mobile Network Code |
[!NOTE]
An invalid number is not an error. The answer is still 200 OK, with valid: false and no carrier:
{ "success": true, "data": { "phone_number": "+15551234567", "country_code": "US", "national_format": "(555) 123-4567", "valid": false } }
Responses
Successful responses wrap the result in data:
{ "success": true, "data": { ... } }
Errors return success: false with a code you can branch on:
{
"success": false,
"error": {
"code": "NUMBER_LOOKUP_UNAVAILABLE",
"message": "Number lookup service unavailable"
}
}
Examples
Bulk lookup
Bulk lookups run in the background, for up to 1000 unique numbers per request. Start a job, then poll it every 1–3 seconds until status is completed.
1. Start the job — the answer is 202 Accepted with a job_id:
curl -X POST "https://api.omaxtelecom.com/numbers/number-lookup/bulk" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"phone_numbers": ["+38766000111", "+38761111222"]}'
{ "success": true, "data": { "job_id": "9f3c2b1a-7d6e-4f5a-8b9c-0d1e2f3a4b5c" } }
2. Poll the job:
curl "https://api.omaxtelecom.com/numbers/number-lookup/bulk/9f3c2b1a-7d6e-4f5a-8b9c-0d1e2f3a4b5c" \
-H "Authorization: Bearer $TOKEN"
{
"success": true,
"data": {
"job_id": "9f3c2b1a-7d6e-4f5a-8b9c-0d1e2f3a4b5c",
"status": "completed",
"total_count": 2,
"processed_count": 2,
"failed_count": 0,
"items": [
{
"phone_number": "+38766000111",
"status": "completed",
"result": {
"phone_number": "+38766000111",
"country_code": "BA",
"national_format": "066 000-111",
"valid": true,
"carrier": { "name": "BH Telecom", "type": "mobile", "mcc": "218", "mnc": "90" }
},
"error": null
},
{
"phone_number": "+38761111222",
"status": "completed",
"result": {
"phone_number": "+38761111222",
"country_code": "BA",
"national_format": "061 111-222",
"valid": true,
"carrier": { "name": "HT Eronet", "type": "mobile", "mcc": "218", "mnc": "03" }
},
"error": null
}
]
}
}
Health check
curl "https://api.omaxtelecom.com/numbers/number-lookup/health"
{ "ok": true, "timestamp": "2026-08-20T16:42:00+00:00" }
Pricing and history
Your price — GET /number-lookup/pricing:
{ "success": true, "data": { "enabled": true, "price_per_lookup": "0.050000", "currency": "EUR" } }
Usage history — GET /number-lookup/transactions lists every lookup you made, newest first, with the amount billed. Filter by from, to, cached, phone_number, lookup_type; page with page and per_page. GET /number-lookup/transactions/{id} returns one transaction.
Bulk jobs — GET /number-lookup/jobs lists your bulk jobs (filter by status, from, to); GET /number-lookup/jobs/{id} returns one job with its items.
Billing
When your organization's price_per_lookup is above zero, each lookup is charged from your Console wallet — repeat lookups of the same number too.
Errors
| HTTP status |
Error code |
What to do |
401 |
— |
Get a new access token |
402 |
INSUFFICIENT_BALANCE |
Top up your wallet in Console |
403 |
NUMBER_LOOKUP_DISABLED |
Ask support to enable number lookup for your organization |
403 |
BILLING_NOT_CONFIGURED |
Billing is not set up for your organization — contact support |
403 |
ORGANIZATION_NOT_FOUND |
Your organization is not registered — check X-Organization-Id or contact support |
422 |
— |
The number is not in E.164 format, or the request is invalid |
503 |
NUMBER_LOOKUP_UNAVAILABLE |
The lookup provider is unavailable — retry later |
Need help?
Email support@omaxtelecom.com. Tell us which endpoint you called, when, and what the response was — including its request_id if it has one. Never send your Client Secret or access token.