Telecom Intelligence

SIM swap API

The Telebase SIM swap API returns whether a phone number's SIM has been recently replaced, along with the timestamp of the most recent swap event. It is designed to be queried in real time at authentication, before an OTP is sent or account access is granted. The API also returns carrier, country, number type and active status in the same call. Pricing is €0.20 per SIM swap check with no annual commitment, carrier data included. SIM swap detection is live in the UK and Germany, with more markets on the way. Early access is available now.

What the API returns

A single call to the Telebase lookup endpoint returns all available signals for the queried number. The SIM swap field is the headline signal for fraud and authentication use cases.

FieldTypeDescription
simSwapstringSWAPPED, NO_SWAP, or UNKNOWN. Currently returns UNKNOWN outside the UK and Germany, where coverage is still expanding.
simSwapAtstring | nullISO 8601 timestamp of the most recent swap event. Set only when simSwap is SWAPPED.
activeboolean | nullWhether the number is currently reachable on the carrier network.
carrierstring | nullThe network operator currently serving the number.
countrystring | nullISO 3166-1 alpha-2 country code.
numberTypestring | nullOne of: mobile, landline, fixedVoip, nonFixedVoip, tollFree, voicemail.

Example call

Request
GET https://api.telebase.io/lookup?phone=%2B447700900000
Authorization: Bearer tb_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Response, 200 OK (current live response for GB number)
{
  "phoneNumber": "+447700900000",
  "active": true,
  "carrier": "EE",
  "country": "GB",
  "numberType": "mobile",
  "simSwap": "UNKNOWN",  // live in the UK and Germany, more markets to follow
  "simSwapAt": null,
  "_meta": { "activeSource": "LINE_STATUS" }
}

simSwap returns SWAPPED or NO_SWAP for UK and German numbers today. Elsewhere it returns UNKNOWN, meaning no SIM swap data is available for that number's carrier or region yet, not that no swap occurred.

How to integrate

Coverage

SIM swap detection is live in the UK and Germany, with more markets on the way. Carrier, country, number type and active status are live globally today. New accounts start in the sandbox with test keys.

SIM swap detection is live in the UK and Germany, with more markets on the way.

Get in touch to discuss your use case and join the early access list. Carrier, country, number type and active status are available to query immediately on sign-up.

Request early access