Developer Guide

Handling every field in the lookup response

Every Telebase lookup returns the same 11 fields: phoneNumber, active, carrier, country, numberType, simSwap, simSwapAt, simSwapPeriod, _meta, chargedCents and currency. Several fields can be null, and treating null as false is the most common integration mistake. This page covers each field and its null case.

What does a full lookup response look like?

200 Response
{
  "phoneNumber": "+447700900002",
  "active": true,
  "carrier": "Telebase Test Carrier",
  "country": "GB",
  "numberType": "mobile",
  "simSwap": "NO_SWAP",
  "simSwapAt": "2026-09-22T09:16:03.003Z",
  "simSwapPeriod": "PT240H",
  "_meta": { "environment": "test", "activeSource": "SYNTHETIC" },
  "chargedCents": 0,
  "currency": "EUR"
}

What does the phoneNumber field contain?

The number you queried, normalised to E.164. Always a string, never null.

What does the active field mean?

active is true when the provider confirms that the number's format is valid, and null otherwise. It is never false. It is not a reachability or line-status check, so it says nothing about whether the handset is switched on or the subscription is current.

The mistake to avoid

Reading null as evidence that a number is dead. A null is an absence of a signal, not a negative one.

What does the carrier field return?

The current carrier name as a string, or null if it could not be determined. It is never the carrier the number was originally allocated to.

What does the country field return?

An uppercase ISO 3166-1 alpha-2 country code, or null if the number cannot be attributed to a country. It is the country of the number, never the live location of the handset.

What values can numberType take?

One of mobile, landline, tollFree, premium or null. VoIP and virtual numbers return null, because Telebase does not detect them.

What do simSwap and simSwapAt mean?

simSwap is SWAPPED or NO_SWAP for a definite answer covering a fixed 10-day window, reported as simSwapPeriod: "PT240H". UNKNOWN means the provider had no answer; it is free and does not mean that no swap occurred. simSwapAt is the time of the last swap when the provider sends one, and can be null even on a definite answer.

What does _meta tell you?

_meta.environment is test for sandbox keys and live for live keys. _meta.activeSource is VALID or UNKNOWN on live lookups, and SYNTHETIC in the sandbox. Older saved results may show LINE_STATUS.

What do chargedCents and currency tell you?

chargedCents is the amount debited for this lookup in euro cents: 20 for a definite SWAPPED or NO_SWAP answer on a live key, otherwise 0. currency is always EUR.

Field reference at a glance

Telebase detects recent SIM swaps with a single API call. See the SIM swap detection API.

New to the API? Start with the quickstart guide for the first request end to end.

Get sandbox access