LRN lookup API

LRN lookup API: routing number and porting status for US and Canadian numbers

An LRN (Local Routing Number) is the 10-digit number of the switch that serves a phone number. Calls and texts to a ported number are routed on it, not on the number's own digits. We return it for any US or Canadian number, with the ported flag, the carrier and its OCN, from a live carrier dip at lookup time.

  • US and Canadian numbers
  • Live carrier dip
  • One credit per lookup
One lookup: (469) 555-0163
Routing number
469-555-0198 dipLrn
Ported
Yes dipPorted
Carrier ID (OCN)
6529 dipOcn
Carrier now
T-Mobile dipCarrier
Line type
Mobile (PCS) dipCarrierSubType

Fictional 555 number. The routing number differs from the number, so it was ported.

Fields an LRN lookup returns

The routing side of the lookup. For the carrier name and how to read it, see the carrier lookup API. Values are strings, booleans included.

FieldExampleMeaning
dip"success"Status of the live carrier dip: "success", "error" or "invalid". Read the fields below only when it is "success"; otherwise they can be missing.
dipLrn"4695550198"Local Routing Number: the number calls and texts are actually routed on. For a number that hasn't been ported it matches the number itself.
dipPorted"true""true" when dipLrn differs from the number, the standard way to detect that a number has moved to a different carrier than it was first assigned to.
dipOcn"6529"Operating Company Number: the code that identifies the carrier operating the number now.
dipCarrier"T-Mobile"Name of the carrier serving the number now, from the live carrier dip.
dipCarrierType"mobile"Broad carrier type: "mobile", "landline", "invalid" or "undefined".
dipCarrierSubType"PCS"Sub-type such as WIRELESS or PCS (mobile), ILEC, RBOC or CLEC (wireline) and IPES (VoIP). The docs list every code.

Ported vs original carrier

The FCC's number portability orders call it the location routing number: each central office switch gets a unique 10-digit number that "serves as a network address" for routing (FCC 97-289, para. 8). Number portability is the ability to keep your number when you switch carriers at the same location (47 CFR 52.21).

Numbers are handed to carriers in blocks, by area code and prefix (the NPA-NXX). A prefix table tells you which carrier a block went to, and the area code directory tells you where a number was issued. Neither tells you who serves the number today: a ported number keeps its area code and prefix and moves to a new carrier.

The live carrier dip reads current routing data instead. For a ported number, dipLrn holds the routing number of the new carrier's switch, dipPorted is "true", and dipCarrier and dipOcn name the carrier the number moved to. nanpCarrier keeps the numbering-plan view, which isn't reliable after a port.

Where a ported number routes
  • The number subscriber
    469-555-0163 Its area code and prefix point at the carrier the block was first assigned to.
  • Routing number dipLrn
    469-555-0198 The switch that serves it now. It differs from the number, so dipPorted is "true" and dipCarrier reads T-Mobile.

Fictional 555 number, the one in the sample below.

Example request and response

Send the number in any common format.

The response for a ported mobile: dipLrn differs from subscriber, so dipPorted is "true". Field names and formats match the live API.

Request

curl --request POST \
  --url 'https://api.checkthatphone.com/v1/lookup' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"phone": "469-555-0163"}'

credits_used: 1 is the whole cost of this call. The Node.js and Python SDKs and every row of a bulk CSV upload return the same fields.

Highlighted fields in the response: subscriber, dipLrn, dipPorted, dipOcn, dipCarrier.

{
  "success": true,
  "credits_used": 1,
  "data": {
    "subscriber": "4695550163",
    "optDate": "2026-10-08T16:21:09.514Z",
    "action": "send",
    "deliverable": "true",
    "nanpType": "mobile",
    "blackList": "false",
    "dip": "success",
    "dipLrn": "4695550198",
    "dipPorted": "true",
    "dipOcn": "6529",
    "dipCarrierSubType": "PCS",
    "dipCarrier": "T-Mobile",
    "dipCarrierType": "mobile",
    "geoState": "TX",
    "geoCity": "dallas",
    "geoCountry": "US",
    "timezone": "America/Chicago",
    "tzOffset": 6,
    "geoSource": "area-code",
    "error": "false",
    "smsEligible": "true"
  }
}

What teams use LRN and porting data for

  • Routing

    SMS and voice routing

    If you pick a route per destination, you need the network that serves the number now. dipLrn identifies the switch and dipOcn the carrier, so a ported number goes to its new network.

    dipLrndipOcn
  • Rating

    Least-cost routing

    Voice rate decks are often keyed by NPA-NXX. Rated on its own digits, a ported number is priced as if the call ended on the original carrier's network. Rated on its LRN, it's priced by the switch that will actually take it.

    dipLrn
  • Fraud

    Porting as a signal

    Porting is common and usually innocent, so treat it as one input, not a verdict. It weighs more next to a VoIP carrier on a brand-new account. KYC phone verification walks through it.

    dipPorted = truedipCarrierSubType = IPES
  • Records

    Keeping carriers current

    Store dipCarrier and dipOcn when you collect a number, and re-check on a schedule or before a sensitive action. A change means the number moved. Validate a whole list with a CSV.

    dipCarrierdipOcn

Limits worth knowing

  • No porting date or history

    You get the current routing number, carrier and ported flag. We don't return when a number was ported or which carriers it passed through.

  • No SIM-swap detection

    A SIM swap normally keeps the number on the same carrier, so the LRN and carrier don't change.

  • Porting is not reassignment

    A ported number usually still belongs to the same person; a reassigned one belongs to someone new. For recent carrier deactivations, see the disconnected number check.

  • US and Canada only

    NANP numbers only. For other countries, use a global provider.

Pricing

LRN and porting data are part of every lookup: one credit, no separate fee.

  • Free $0/mo 500 lookups included Hard cap, no overage
  • 1K $5/mo 1,000 lookups included Then $0.005 each
  • 10K $30/mo 10,000 lookups included Then $0.003 each
  • 100K $100/mo 100,000 lookups included Then $0.001 each
  • 500K $450/mo 500,000 lookups included Then $0.0009 each

Failed lookups are free. Annual billing is 15% off. Above 500,000 lookups a month, ask for a volume quote. Every detail is on the pricing page.

LRN lookup: common questions

What is an LRN lookup?

A query, sometimes called a number portability lookup, that returns the Local Routing Number (LRN) for a phone number: the 10-digit number of the switch that serves it, which is what calls and texts to a ported number are routed on. A CheckThatPhone lookup returns it as dipLrn, together with dipPorted, dipOcn, dipCarrier, dipCarrierType and dipCarrierSubType, from a live carrier dip.

How do I know if a number has been ported?

Read dipPorted. It is "true" when dipLrn differs from the number itself, the standard way to detect a port, and dipCarrier and dipOcn then name the carrier the number moved to. Values are strings, so compare against "true", not a boolean.

Does the LRN lookup work for Canadian numbers?

Yes. The API accepts US and Canadian (NANP) numbers in any common format: 10 digits, or 11 digits starting with 1. Every lookup runs the same live carrier dip. Numbers outside North America are not supported.

Does it show when a number was ported, or whether its SIM was swapped?

No. A lookup returns the current state only: today's routing number, carrier and ported flag. There is no porting date, no port history and no SIM-swap signal. A SIM swap usually keeps the number on the same carrier, so carrier data doesn't change.

What is the difference between dipLrn and dipOcn?

dipLrn is a routing number: the 10-digit address of the switch that serves the number. dipOcn is the Operating Company Number, the code that identifies the carrier operating the number. Use the first for routing and the second for carrier-level rules.

How much does an LRN lookup cost?

One credit, and the same call also returns line type, deliverability and location. The Free plan includes 500 credits a month, hard-capped; paid plans start at $5 a month for 1,000 credits. Failed lookups are not billed. See pricing.

Try it on your list

The Free plan includes 500 lookups a month, hard-capped. Paid plans start at $5 a month.