Skip to main content
The Telnyx Number Lookup API returns real-time data about any phone number worldwide — carrier, line type, portability, and caller name — so you can make routing, messaging, and fraud decisions before you connect or send. A single GET request returns the data sets you ask for.

What Number Lookup returns

Every lookup returns the number’s country_code, national_format, a normalized E.164 phone_number, and a valid_number boolean — so you can validate and standardize input before you store or dial it.

Requesting data

type is optional — omit it for the base lookup: phone-number validation and formatting, portability (NANP numbers), and valid_number. To include additional data sets — carrier, caller name, enhanced caller name, or caller identity — pass the type query parameter; repeat it to request several.
See the API Reference for the full request and response schema.

Example response

Coverage

Looking up Canadian numbers. By default, Number Lookup serves US numbers. Some customers also need to look up Canadian numbers — including Canadian numbers that fall under the US (NANP) region — which requires your account to be enabled for Canadian data. Until it’s enabled, those lookups return 422 ("… is a Canadian number"), regardless of type. Reach out to our support team to enable Canadian coverage for your account.

Pricing

Number Lookup is billed per lookup, and the price depends on which data sets you request with type — each data set is priced separately. See the Number Lookup pricing page for current rates.

Common use cases

  • Message routing — route SMS vs. MMS based on line type and carrier capabilities.
  • Fraud prevention — flag high-risk number types (VoIP, non-fixed) during signup or transaction verification.
  • 2FA / OTP delivery — confirm a number is a reachable mobile line before sending a one-time passcode, so verification codes don’t fail silently.
  • Lead scoring — validate and enrich numbers at capture (line type, carrier, caller name) to score and prioritize leads.
  • Number hygiene — clean contact lists by identifying invalid or non-mobile numbers before launching campaigns.
  • Pre-call validation — verify number formatting and type before placing outbound calls to reduce wasted attempts.

Get started

Quickstart

Look up your first phone number in a few lines of code.

API Reference

Full endpoint documentation with request and response schemas.