Phone Number Lookup API: Line Type, Carrier and Fraud Risk avatar

Phone Number Lookup API: Line Type, Carrier and Fraud Risk

Pricing

from $5.00 / 1,000 basic phone lookups

Go to Apify Store
Phone Number Lookup API: Line Type, Carrier and Fraud Risk

Phone Number Lookup API: Line Type, Carrier and Fraud Risk

Phone number lookup and validation API for fraud prevention: E.164 formatting, line type and carrier, SMS pumping risk score, line status, caller name, reassigned number, SIM swap, call forwarding and identity match, via the Twilio Lookup v2 API. Bring your own key.

Pricing

from $5.00 / 1,000 basic phone lookups

Rating

0.0

(0)

Developer

Nabeel Hassan

Nabeel Hassan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

19 days ago

Last modified

Features

Limited permissions

Share

Validate phone numbers and score them for fraud before you send an OTP, approve a sign-up or trust a login: E.164 formatting, line type and carrier, SMS pumping risk, line status, reassigned number, SIM swap, call forwarding and identity match, as clean rows you can export to CSV, Excel or JSON.

This actor wraps the Twilio Lookup v2 API (GET /v2/PhoneNumbers/{PhoneNumber}) in the US1 or IE1 region. It is built for fraud prevention, account security and identity verification on your own users' numbers. Bring your own Twilio credentials.

BYOK, not live tested: every route, parameter and response field comes from Twilio's own Lookup v2 documentation and OpenAPI description, and the route was probed on 2026-11-06 with bogus credentials of realistic length. It has not been run against a live key.

What it does

  • Free validation on every number: phoneNumber in E.164, nationalFormat, countryCode, callingCountryCode, valid and validationErrors (TOO_SHORT, TOO_LONG, INVALID_BUT_POSSIBLE, INVALID_COUNTRY_CODE, INVALID_LENGTH, NOT_A_NUMBER).
  • Line type and carrier: lineType (mobile, landline, fixedVoip, nonFixedVoip, tollFree, premium, sharedCost, personal, uan, voicemail, pager, unknown), carrierName, mobile country and network codes. Block VoIP numbers at sign-up, or drop landlines before sending SMS.
  • SMS pumping risk: smsPumpingRiskScore from 0 to 100, carrierRiskCategory (low, mild, moderate, high) and whether Verify Fraud Guard has blocked the number. Stop SMS toll fraud before the OTP goes out.
  • Line status: lineStatus active, reachable, unreachable, inactive or unknown.
  • Caller name: CNAM callerName and callerType (BUSINESS or CONSUMER) for US numbers.
  • Reassigned number: isNumberReassigned yes, no or no_data_available since the date you last verified the number (US, for TCPA consent checks).
  • SIM swap and call forwarding: last SIM change date and whether it falls in the swap window; unconditional call forwarding on UK carriers. Both are account takeover signals.
  • Identity match: compare the name, address and date of birth a user gave you with authoritative data for that phone number; per-field match levels and a summaryScore.
  • Safe by design: one read-only route, nothing written to your Twilio account, identity inputs never copied into the dataset, lines that are not phone numbers skipped for free.

What you need

A Twilio account with Lookup. Paid packages are billed by Twilio to that account. Reassigned number, SIM swap, call forwarding and some identity match countries need carrier registration and approval from Twilio first. The actor never signs up or buys anything for you.

  1. In the Twilio Console open Account, API keys and tokens and create a Standard API key (for IE1, pick the Ireland region first).
  2. Paste the key SID and secret into the Twilio credentials field as SID:secret, for example SKxxxxxxxx:yourSecret. An Account SID and Auth Token as ACxxxxxxxx:authToken also work, but an API key you can revoke is the safer choice.
  3. Or set the DATA_API_KEY secret to the same SID:secret text.

Why one field for two values?

Twilio authenticates with HTTP Basic auth, a SID as the username and a secret as the password. Writing them as SID:secret keeps the whole credential in one secret field, so neither half is stored in the clear and the same text works in the DATA_API_KEY environment variable. If you prefer, paste only the secret into the credentials field and put the SID into the optional Key SID field; the SID is an identifier, not a secret.

Input

FieldModesNotes
modealllookup or identityMatch
apiKeyallSID:secret, or the secret alone with keySid; falls back to DATA_API_KEY
keySidalloptional SK or AC SID when apiKey is the secret alone
regionallus1 (default) or ie1
countryCodeallISO country for numbers in national format; empty means US
phoneNumberslookupone number per line
dataPackageslookupany of line_type_intelligence, sms_pumping_risk, line_status, caller_name, reassigned_number, sim_swap, call_forwarding; empty is the free Basic Lookup
lastVerifiedDatelookuprequired with reassigned_number, YYYYMMDD or YYYY-MM-DD
identityRecordsidentityMatchobjects with phoneNumber, firstName, lastName, addressLine1, addressLine2, city, state, postalCode, addressCountryCode, dateOfBirth
maxResultsallstop after this many rows (default 1,000)

Example input:

{
"mode": "lookup",
"phoneNumbers": ["+14155552671", "+447772000001", "020 7946 0018"],
"countryCode": "GB",
"dataPackages": ["line_type_intelligence", "sms_pumping_risk"]
}

Identity match input:

{
"mode": "identityMatch",
"identityRecords": [
{ "phoneNumber": "+14155552671", "firstName": "John", "lastName": "Doe", "addressLine1": "321 Main Street", "city": "New York", "state": "NY", "postalCode": "10021", "dateOfBirth": "19901214" }
]
}

Output

A lookup row (the values are illustrative):

{
"recordType": "lookup",
"found": true,
"mode": "lookup",
"query": "+447772000001",
"region": "us1",
"phoneNumber": "+447772000001",
"nationalFormat": "07772 000001",
"countryCode": "GB",
"callingCountryCode": "44",
"valid": true,
"validationErrors": [],
"packagesRequested": ["line_type_intelligence", "sms_pumping_risk"],
"packagesReturned": ["line_type_intelligence", "sms_pumping_risk"],
"lineType": "mobile",
"carrierName": "Vodafone UK",
"mobileCountryCode": "234",
"mobileNetworkCode": "15",
"smsPumpingRiskScore": 12,
"carrierRiskCategory": "low",
"numberBlocked": false
}

An identity match row carries firstNameMatch, lastNameMatch, addressLinesMatch, cityMatch, stateMatch, postalCodeMatch, addressCountryMatch, dateOfBirthMatch (exact_match, high_partial_match, partial_match, no_match or no_data_available) and summaryScore. Each package also has its own error code column, such as lineTypeErrorCode, filled when Twilio has no data for that number.

Pricing

Pay per event, once per phone number with data:

EventPrice
Basic phone lookup (validation and formatting only)$0.005
Phone lookup with one or more paid data packages returned$0.01
Identity match result$0.02

Twilio bills the paid packages themselves to your Twilio account, separately from this actor.

FAQ

What is the Twilio Lookup v2 API?

Twilio Lookup is the phone number intelligence API of Twilio, the communications platform. Version 2 returns free validation and formatting for any number, plus optional paid data packages: Line Type Intelligence, SMS Pumping Risk Score, Line Status, Caller Name, Reassigned Number, SIM Swap, Call Forwarding and Identity Match.

How do I detect VoIP or landline numbers?

Pick the line type and carrier package. The lineType column says mobile, landline, fixedVoip, nonFixedVoip, tollFree and so on, and carrierName names the carrier. Many sign-up flows reject nonFixedVoip numbers, which are obtained online without a physical device.

How does the SMS pumping risk score work?

Twilio scores each number from 0 (no risk) to 100 (high risk) from patterns in its messaging traffic. Twilio's guidance: 0 to 60 send, 60 to 75 add friction, 75 to 90 treat as suspicious, 90 to 100 do not send. Twilio does not recommend it for US or Canadian numbers, which SMS pumping rarely targets.

Can I check whether a number was reassigned?

Yes, for US numbers, with the reassigned number package and the date you obtained consent or last verified the number. isNumberReassigned is yes, no or no_data_available. Twilio requires carrier registration and approval before this package works.

How do I verify a user's identity with their phone number?

Use the identity match mode with the details your user gave you at onboarding. Twilio compares them with authoritative phone-based data and returns a match level per field and a summary score. It covers the US, Canada, the UK, Brazil, the Netherlands, Italy, Spain, Germany, France and Australia, with country-specific field rules.

Can I use it for lead enrichment or marketing lists?

No. Twilio positions Lookup for verification and fraud prevention, and its identity verification terms forbid marketing or sales use of the results and their use as a consumer report under the FCRA. Use it on numbers your own users gave you.

What do I pay?

$0.005 per number with validation only, $0.01 per number with any paid package returned, and $0.02 per identity match, to this actor, plus whatever Twilio charges your account for the packages. Skipped lines, empty answers and refused lookups are free.

Keyword map

phone number lookup API, phone number validation API, phone validator, line type detection, VoIP detection, carrier lookup, SMS pumping fraud detection, SMS toll fraud, OTP fraud prevention, line status check, CNAM caller name lookup, reassigned number check, TCPA compliance, SIM swap detection, call forwarding check, account takeover prevention, identity verification API, KYC phone match, Twilio Lookup v2.

Route and verification

ModeRouteProbe with bogus credentials (twice)
Phone number lookupGET /v2/PhoneNumbers/{PhoneNumber} (Fields, CountryCode, LastVerifiedDate)401 JSON code 70051 "The authorization with Key failed", on lookups.twilio.com and lookups.dublin.ie1.twilio.com
Identity matchGET /v2/PhoneNumbers/{PhoneNumber} (Fields=identity_match, FirstName, LastName, AddressLine1, AddressLine2, City, State, PostalCode, AddressCountryCode, DateOfBirth)same
Invented control routes/v2/PhoneNumberz/{PhoneNumber}, /v2/Inventedz404 JSON code 20404 "The requested resource ... was not found"

Licensing and data use

This actor works only with your own Twilio credentials, and your agreement with Twilio applies. Twilio's terms do not allow reselling Lookup data or offering it as a standalone data product; here every lookup runs on your own account for your own use. Identity verification results may not be used for marketing or sales, or as a consumer report under the FCRA, and should only be requested for people who gave you their details. The NationalId parameter and the pre_fill package are deliberately not offered. This actor is not affiliated with or endorsed by Twilio.