Skip to content
OSINTtools.io

Twilio Lookup API

Phone number API that validates and formats numbers and, through paid packages, returns line type, caller name and SIM-swap data.

Base URL
https://lookups.twilio.com/v2
Sign-in
Basic auth
Free tier
Free tier
Pricing
Pay per request
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from twilio.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Twilio Lookup v2 returns formatting and validation for a phone number, and with data packages, line type, carrier, caller name, SIM swap, call forwarding and other details. An investigator can use it to check whether a number is valid and what kind of line it is.

Calls are GET requests to https://lookups.twilio.com/v2/PhoneNumbers/{PhoneNumber} over HTTPS with HTTP Basic authentication: an API key SID as username and the key secret as password. Basic formatting and validation is free; data packages requested through Fields are charged to the account, and some need carrier approval or a form first.

Send numbers in E.164 or include CountryCode; national-format numbers without either can give ambiguous results.

Quick start

  1. Get a key

    Create an account with Twilio Lookup and copy your basic auth (free tier). Where to get it

  2. Make your first request

    Validate and format a phone number, with optional data packages.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://lookups.twilio.com/v2/PhoneNumbers/%2B14155550100' \
      -u 'USERNAME:PASSWORD'
  3. Read the response

    A 200 response looks like this.

    {
      "calling_country_code": "1",
      "country_code": "US",
      "phone_number": "+14155550100",
      "national_format": "(415) 555-0100",
      "valid": true,
      "validation_errors": null,
      "line_type_intelligence": {
        "type": "mobile",
        "carrier_name": "Example Carrier",
        "mobile_country_code": "310",
        "mobile_network_code": "000",
        "error_code": null
      },
      "url": "https://lookups.twilio.com/v2/PhoneNumbers/+14155550100"
    }

Authentication

HTTP basic authentication: your username and password (or key and secret) on every request.

Username is the API key SID, password is the API key secret

Get a key from Twilio Lookup

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Free tier. Pricing: pay per request.

Phone lookup

  • Takes: Phone number
  • Passive: the target is not contacted
  • Cost: Basic lookup free; data packages are charged

Always returns formatting and validation. Package objects are null unless named in Fields. Identity fields are sensitive PII: send them only when identity_match is in use.

Path parameters

PhoneNumberstringrequiredtakes your phone number

E.164 or national format; URL-encode the plus sign as %2B

Example: +14155550100

Query parameters

Fieldsstring

Comma-separated data packages: validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill

Example: line_type_intelligence
CountryCodestring

ISO 3166-1 alpha-2 country used to read a national-format number

Example: USDefault: US
FirstNamestring

For identity_match: first name

Example: Jane
LastNamestring

For identity_match: last name

Example: Doe
AddressLine1string

For identity_match: first address line

Example: 1 Example Street
Citystring

For identity_match: city

Example: Exampleville
PostalCodestring

For identity_match: postal or ZIP code

Example: 00000
DateOfBirthstring

For identity_match: YYYYMMDD

Example: 19800101
LastVerifiedDatestring

For reassigned_number: YYYYMMDD of the last consent or contact

Example: 20240101
Response fields · 14Show

calling_country_codestring

International dialing prefix

country_codestring

ISO country code

phone_numberstring

E.164 format

national_formatstring

National format

validboolean

Whether the number is in a range a carrier can assign

validation_errors[]string

Why the number is invalid, e.g. TOO_SHORT, TOO_LONG, INVALID_COUNTRY_CODE

caller_namestring

CNAM caller name (US carriers only)

typestring

Line type such as mobile, landline, VoIP

carrier_namestring

Carrier name

last_sim_swap_datestring

Date of the last SIM change

call_forwarding_enabledboolean

Unconditional call forwarding status

statusstring

Status of a mobile line

sms_pumping_risk_scoreinteger

SMS pumping risk score

urlstring

Absolute URL of the resource

curl 'https://lookups.twilio.com/v2/PhoneNumbers/%2B14155550100' \
  -u 'USERNAME:PASSWORD'
Replace YOUR_API_KEY with your key
Response
{
  "calling_country_code": "1",
  "country_code": "US",
  "phone_number": "+14155550100",
  "national_format": "(415) 555-0100",
  "valid": true,
  "validation_errors": null,
  "line_type_intelligence": {
    "type": "mobile",
    "carrier_name": "Example Carrier",
    "mobile_country_code": "310",
    "mobile_network_code": "000",
    "error_code": null
  },
  "url": "https://lookups.twilio.com/v2/PhoneNumbers/+14155550100"
}