# Best Phone Number Validation API for Indie Developers (2026)

> Best phone validation APIs for indie devs in 2026: free libphonenumber parsing, then Twilio, Telnyx, Plivo, Numverify, Abstract and Veriphone prices compared.

- Canonical: https://zeroraised.com/blog/best-phone-number-validation-api-for-indie-developers
- Published: 2026-11-24T15:15:00Z
- Author: ZeroRaised Team (https://zeroraised.com/blog/authors/zeroraised)
- Publisher: ZeroRaised (https://zeroraised.com/)
- Section: Building
- Tags: developer-tools, sms, security, comparison

**Short answer:** Most indie developers should start with the free, offline [libphonenumber-js](https://www.npmjs.com/package/libphonenumber-js) library to parse and normalise every number to E.164, and only pay for a live line-type lookup before sending an SMS to a risky number. For that paid step, Telnyx ($0.0025 per MCC/MNC query) and Plivo ($0.004 per request) are the cheapest published per-query options, and Twilio Lookup ($0.008 for Line Type Intelligence) is the easiest if you already send OTPs through Twilio.

Every price and limit below comes from each vendor's own pricing page or docs, checked on 24 Nov 2026. Where a vendor does not publish a figure, we say so. The advice in between is ours and is marked as such.

## TL;DR

- **Free first.** Google's [libphonenumber](https://github.com/google/libphonenumber) (Apache-2.0) and libphonenumber-js (MIT, version 1.13.17 on npm today) validate numbers against length and prefix rules offline. They do not know the current carrier or whether a number is in service.
- **Twilio Lookup v2:** formatting and validation is free; Line Type Intelligence is $0.008 per request; SMS Pumping Risk Score is free in North America and $0.025 elsewhere ([Twilio Lookup pricing](https://www.twilio.com/en-us/user-authentication-identity/pricing/lookup)).
- **Cheapest per query:** Telnyx MCC/MNC at $0.0025 ([Telnyx](https://telnyx.com/pricing/number-lookup)) and Plivo at $0.004 ([Plivo docs](https://docs.plivo.com/docs/lookup/overview)).
- **Best free hosted tier:** Veriphone, with 1,000 free credits a month and no card ([Veriphone pricing](https://veriphone.io/pricing)).
- **Fraud is the real cost (our view).** SMS pumping can cost more than any lookup bill. Layer offline parsing, selective lookups and an OTP provider with fraud protection.

**Disclosure:** ZeroRaised publishes this guide and is a launch site for bootstrapped products. ZeroRaised has no commercial relationship with any vendor listed and earns nothing if you sign up. Facts come from the linked sources as checked on 24 Nov 2026.

## What phone validation can and cannot tell you

There are three levels of "valid", and it pays to know which one you are buying.

1. **Well-formed.** The number has a plausible length and prefix for its country, and can be normalised to E.164 (for example `+447700900123`). Free, offline.
2. **Range type.** The number sits in a range allocated to mobile, fixed line, toll-free or VoIP. Offline libraries can guess this from metadata.
3. **Live network data.** The current carrier, whether the number was ported, whether it is VoIP right now, and sometimes whether it is reachable or had a recent SIM swap. Only a paid lookup that queries carrier or porting data can answer this.

Our read: for a sign-up form, level 1 catches typos and junk. Level 3 matters when an SMS costs you money, which is exactly the moment fraudsters exploit.

## The free option: libphonenumber and libphonenumber-js

Google's libphonenumber is the reference library for "parsing, formatting, and validating international phone numbers" in Java, C++ and JavaScript, and the latest Maven release today is 9.0.44 ([Maven Central](https://repo1.maven.org/maven2/com/googlecode/libphonenumber/libphonenumber/maven-metadata.xml)). It is licensed Apache-2.0. Its README is clear about the limits:

- `isValidNumber` does "full validation of a phone number for a region using length and prefix information", which is not the same as checking that the number is in service.
- `getNumberType` "gets the type of the number based on the number itself", distinguishing fixed line, mobile, toll-free and others "whenever feasible".
- "We do not provide data about the current carrier of a phone number." The carrier mapper only returns the original carrier for the range, so it does not reflect porting ([libphonenumber README](https://github.com/google/libphonenumber)).

For JavaScript and TypeScript, most indie developers use **libphonenumber-js**, described in its README as "A simpler and smaller rewrite of Google Android's libphonenumber library in javascript/typescript" ([GitLab](https://gitlab.com/catamphetamine/libphonenumber-js)). It is MIT-licensed; version 1.13.17 was published on 19 Nov 2026 ([npm registry](https://www.npmjs.com/package/libphonenumber-js)). Its README lists three metadata sets: `min` (the default, "about 80 kilobytes"), `mobile` ("about 95 kilobytes") and `max` ("about 145 kilobytes"). Two details catch people out ([README](https://gitlab.com/catamphetamine/libphonenumber-js/-/raw/master/README.md)):

- `isPossible()` "Only checks the phone number length", while the README says that with the default metadata `isValid()` performs the same "lite" validation, and extensive validation needs the `max` metadata.
- The README's own example comment says "`.getType()` only works when import from 'libphonenumber-js/max'".

The README also warns that strict validation, "when not kept up-to-date, it could get stale over time and start rejecting freshly-assigned phone number ranges". Our read: keep the package updated with Renovate or Dependabot, and treat an offline "invalid" as a prompt to re-check the input, not a permanent ban.

### Code sample: parse, normalise and triage

```ts
import { parsePhoneNumberFromString } from 'libphonenumber-js/max'

type Triage = { e164: string; country?: string; type?: string; needsLookup: boolean }

const LOW_RISK_COUNTRIES = new Set(['US', 'CA', 'GB', 'DE', 'FR'])

export function triagePhone(input: string, defaultCountry: 'US' | 'GB' = 'US'): Triage | null {
  const phone = parsePhoneNumberFromString(input, defaultCountry)
  if (!phone || !phone.isValid()) return null // ask the user to fix it

  const type = phone.getType() // 'MOBILE', 'FIXED_LINE', 'FIXED_LINE_OR_MOBILE', 'VOIP', ...
  const country = phone.country

  // Our rule of thumb: only pay for a live lookup when the cheap signals look risky
  const needsLookup =
    !country ||
    !LOW_RISK_COUNTRIES.has(country) ||
    type === undefined ||
    type === 'FIXED_LINE_OR_MOBILE' ||
    type === 'VOIP'

  return { e164: phone.number, country, type, needsLookup }
}
```

Store `phone.number` (the E.164 string) in your database, not what the user typed. It makes deduplication and per-number rate limits trivial.

## Phone lookup APIs compared

| API | Free tier | Entry price and unit | Line type | Carrier | Porting | Other data |
|---|---|---|---|---|---|---|
| Twilio Lookup v2 | Formatting and validation free | Line Type Intelligence $0.008 per request | Yes | Yes | Not in this package | SMS pumping risk (free in North America), line status, reassigned number |
| Telnyx Number Lookup | No free allowance stated | MCC/MNC $0.0025 per query; LRN $0.0015; CNAM $0.003 | Yes | Yes | North America | Caller name, caller identity |
| Plivo Lookup | Not stated | $0.004 per request | Yes | Yes | US and Canada | MCC/MNC, formats |
| Vonage Identity Insights | Number format free | Original carrier $0.00117; current carrier $0.00819 per request | See docs | Yes | Not stated | SIM swap and subscriber match, price by country |
| Numverify (apilayer) | 100 requests a month, non-commercial | Basic $14.99/mo for 5,000 | See docs | See docs | Not stated | Location |
| Abstract Phone | 100 requests | Starter $19/mo for 5,000 (monthly) | See docs | Yes | Not stated | Messaging and risk on higher plans |
| Veriphone | 1,000 credits a month | Starter $12.99/mo for 10,000 | Yes | Yes | Not stated | Country |

Sources: [Twilio Lookup pricing](https://www.twilio.com/en-us/user-authentication-identity/pricing/lookup), [Telnyx pricing](https://telnyx.com/pricing/number-lookup), [Telnyx docs](https://developers.telnyx.com/docs/identity/number-lookup), [Plivo docs](https://docs.plivo.com/docs/lookup/overview), [Vonage pricing](https://www.vonage.co.uk/communications-apis/number-insight/pricing/), [Numverify](https://numverify.com/product), [Abstract](https://www.abstractapi.com/api/phone-validation-api), [Veriphone](https://veriphone.io/pricing).

### Twilio Lookup v2

Twilio's docs say "The Basic Lookup request is a free feature that returns the provided phone number in E.164 and national formats", with a `valid` flag and `validation_errors` ([Lookup v2 docs](https://www.twilio.com/docs/lookup/v2-api)). Everything else is an "optional paid data package", and the docs warn: "When requesting data packages, you will incur charges on your account."

The prices that matter for sign-up flows: Line Type Intelligence at $0.008 per request, SMS Pumping Risk Score free in North America and $0.025 elsewhere, Line Status from $0.007 per query for the first 100,000, and Reassigned Number from $0.02 for the first 1,000. The pricing page does not say whether failed lookups are billed.

Our read: if your OTPs already go through Twilio, the free validation call plus Line Type Intelligence on risky numbers is the least moving parts. It is not the cheapest per lookup.

### Telnyx Number Lookup

Telnyx returns validation and formatting in the base lookup, and `type=carrier` adds carrier, line type (mobile, fixed line, VoIP, toll free), MCC/MNC and North American portability ([Telnyx docs](https://developers.telnyx.com/docs/identity/number-lookup)). Its pricing page lists MCC/MNC at $0.0025 per query, LRN at $0.0015, CNAM at $0.003 and Enhanced Caller Name at $0.02, with a $0 platform fee; the page says rates may vary by destination and volume tier. It does not describe a free lookup allowance or say whether failed lookups are billed.

### Plivo Lookup

Plivo's Lookup API is "USD 0.004 per request" and returns carrier, a line `type` of `fixed`, `mobile`, `voip`, `toll-free` or `unknown`, MCC/MNC, and a `ported` flag for US and Canada only ([Plivo docs](https://docs.plivo.com/docs/lookup/overview)). The docs page does not say whether failed requests are billed.

### Vonage Number Insight and Identity Insights

Plan around the successor. Vonage's developer docs state: "Effective February 4, 2027, Vonage will sunset Vonage Number Insights", pointing to the Identity Insights API ([Vonage docs](https://developer.vonage.com/en/number-insight/overview)). Its pricing page lists number format at no cost, original carrier at €0.001 ($0.00117) and current carrier at €0.007 ($0.00819) per request, with SIM swap and subscriber match priced by country ([Vonage pricing](https://www.vonage.co.uk/communications-apis/number-insight/pricing/)). Our read: do not start a new integration on Number Insight in late 2026.

### Numverify (apilayer)

Numverify's free plan gives 100 requests a month, but it is labelled non-commercial. Paid plans are Basic $14.99 a month for 5,000 requests, Professional $59.99 for 50,000 and Enterprise $129.99 for 250,000, on the plans page ([Numverify](https://numverify.com/product)).

### Abstract Phone Validation

Abstract offers 100 free requests and three paid plans that each start at $19 a month on monthly billing ($17 a month billed annually): Starter with 5,000 requests (validation, location, carrier), Standard with 3,000 (adds messaging details) and Professional with 2,000 (adds registration and risk) ([Abstract](https://www.abstractapi.com/api/phone-validation-api)). The page does not list overage pricing.

### Veriphone

Veriphone gives every account 1,000 free credits a month with no card. Paid plans are Starter $12.99 for 10,000, Professional $39 for 50,000, Business $99 for 250,000 and Enterprise $249 for 1,000,000, all with validation, carrier lookup, line type and country ([Veriphone pricing](https://veriphone.io/pricing)).

### Left out

We could not load Trestle's own pricing page today, and Sinch did not show a public lookup price we could verify, so neither is priced here. Check them directly if you need US-focused identity or activity data.

## Worked cost examples

These are illustrative calculations using the list prices above, assuming every lookup is a single line-type or carrier request and ignoring taxes, free credits and volume discounts unless stated.

| Lookups a month | Twilio LTI ($0.008) | Telnyx MCC/MNC ($0.0025) | Plivo ($0.004) | Veriphone plan | Numverify plan |
|---|---|---|---|---|---|
| 1,000 | $8 | $2.50 | $4 | $0 (free 1,000 credits) | $14.99 (Basic, 5,000) |
| 10,000 | $80 | $25 | $40 | $12.99 (Starter) | $59.99 (Professional) |
| 100,000 | $800 | $250 | $400 | $99 (Business, 250,000) | $129.99 (Enterprise) |

Example: the layered flow below. Suppose you get 10,000 sign-ups a month and your triage function flags 20% as needing a lookup. That is 2,000 paid lookups: $16 on Twilio LTI, $5 on Telnyx or $8 on Plivo, instead of $80, $25 or $40 for checking everyone.

Our read: the plan-based APIs win on raw price per lookup, but check whether their line-type data comes from live carrier sources or numbering ranges before you rely on it to block VoIP. Test 50 numbers you know (your own mobile, a Google Voice number, a landline) on any vendor's free tier first.

## SMS pumping: the cost you are really guarding against

Twilio defines SMS pumping fraud as what "happens when fraudsters take advantage of a phone number input field" to trigger texts to number ranges on a specific operator, sharing in the revenue ([Twilio](https://www.twilio.com/docs/glossary/what-is-sms-pumping-fraud)). Its recommendations: enable Verify Fraud Guard, use Verify Geo Permissions to disable countries you do not plan to message, enable SMS Pumping Protection on Programmable Messaging if you cannot use Verify, and use Lookup Line Type Intelligence to send SMS only to mobile numbers.

On Fraud Guard itself, Twilio says it "uses SMS fraud detection to block suspicious messages from being sent by your Verify Service", with Basic, Standard (the default level) and Max settings. Twilio states false positives "may also slightly increase (<1%)" on Standard and "may occur occasionally (<2%)" on Max ([Fraud Guard docs](https://www.twilio.com/docs/verify/preventing-toll-fraud/sms-fraud-guard)). Verify costs $0.05 per successful verification plus $0.0083 per SMS in the US, and Twilio says the base fee includes "automated SMS pumping protection via Verify Fraud Guard" ([Verify pricing](https://www.twilio.com/en-us/user-authentication-identity/pricing/verify)). These are vendor statements, not independent tests.

If you are comparing SMS providers more broadly, our [Twilio alternatives for indie developers](https://zeroraised.com/blog/twilio-alternatives-for-indie-developers) guide covers the messaging side.

## Our layered sign-up flow

This is our recommended setup for a solo developer:

1. **Parse offline for everyone.** Run `triagePhone()` on the client for instant feedback and again on the server. Reject anything that does not parse. Store E.164.
2. **Cheap guards before any send.** Rate-limit OTP requests per IP, per E.164 number and per country. Add a CAPTCHA or proof-of-work on the send button. Allowlist the countries you actually serve.
3. **Paid lookup only for risky cases.** If `needsLookup` is true, call one line-type API. Block or fall back to email when the result is not mobile.
4. **Send the OTP through a service with fraud protection.** Turn on whatever pumping protection your provider offers and set geo permissions.
5. **Watch the bill.** Alert when sends to one country jump well above normal for that hour.

The same logic applies to email: our [best email verification API guide](https://zeroraised.com/blog/best-email-verification-api-for-indie-developers) shows the equivalent free-first stack for sign-up addresses.

## Decision table

Our editorial picks, based on the published prices above.

| Your situation | Our pick |
|---|---|
| Just need clean E.164 numbers in a form | libphonenumber-js (free) |
| Already sending OTPs with Twilio | Twilio free validation plus Line Type Intelligence for risky numbers |
| Lowest published per-query price | Telnyx ($0.0025 MCC/MNC) |
| Simple per-request pricing, US/Canada porting flag | Plivo ($0.004) |
| Hobby project or early MVP, low volume | Veriphone free 1,000 credits a month |
| Predictable flat bill at 50,000 to 250,000 a month | Veriphone or Numverify plans |
| Need risk and registration fields in one call | Abstract Professional |
| Existing Vonage Number Insight integration | Migrate to Identity Insights before 4 Feb 2027 |

## Frequently asked questions

### Is there a free phone number validation API?

The best free option is not an API but a library. Google's libphonenumber (Apache-2.0) and libphonenumber-js (MIT) validate numbers offline against length and prefix rules and format them to E.164. Twilio Lookup's basic formatting and validation request is also free. For hosted line-type data, Veriphone includes 1,000 free credits a month, and Abstract and Numverify offer 100 free requests (Numverify's are non-commercial only).

### Can libphonenumber tell me if a number is mobile or VoIP?

Only from the number range, not from live network data. libphonenumber's getNumberType guesses the type from the number itself, and libphonenumber-js only returns a type when you import the max metadata. Neither knows the current carrier: Google's README says it does not provide data about the current carrier, and ported numbers keep their original range. For a live line type, you need a lookup API.

### What is the cheapest line type lookup API?

On per-query prices published today, Telnyx lists MCC/MNC lookups at $0.0025, Plivo's Lookup API is $0.004 per request and Twilio Line Type Intelligence is $0.008 per request. Bundled plans can be cheaper per lookup at volume: Veriphone's Business plan is $99 a month for 250,000 validations, and Numverify Enterprise is $129.99 for 250,000 requests.

### How do I stop SMS pumping fraud on my sign-up form?

Twilio's guidance is to enable Verify Fraud Guard, disable countries you do not plan to message with Geo Permissions, and use Lookup Line Type Intelligence to send SMS only to mobile numbers. Our additions: rate-limit OTP requests per IP and per number, put a CAPTCHA or proof of work in front of the send button, and alert on sudden spikes of sends to one country.

### Do I need a paid lookup for every sign-up?

Usually not. Parse every number offline for free, then run a paid lookup only when you are about to send an SMS and the number is in a country you rarely see, comes from a suspicious IP, or is flagged as a possible non-mobile type. In our worked example that cuts 10,000 paid lookups a month to about 2,000.

## Launch with a sign-up flow that holds up

Before launch day, test your sign-up form against junk numbers and a burst of OTP requests; it is one line on our [product launch checklist for bootstrapped makers](https://zeroraised.com/blog/product-launch-checklist-for-bootstrapped-makers). When you are ready, [submit your product to ZeroRaised](https://zeroraised.com/submit) for free, and [join the ZeroRaised newsletter](https://zeroraised.com/newsletter) for more developer API guides.

## Sources

- [Google libphonenumber on GitHub](https://github.com/google/libphonenumber), last checked 24 Nov 2026
- [libphonenumber Maven metadata](https://repo1.maven.org/maven2/com/googlecode/libphonenumber/libphonenumber/maven-metadata.xml), last checked 24 Nov 2026
- [libphonenumber-js on npm](https://www.npmjs.com/package/libphonenumber-js), last checked 24 Nov 2026
- [libphonenumber-js on GitLab](https://gitlab.com/catamphetamine/libphonenumber-js) and [README](https://gitlab.com/catamphetamine/libphonenumber-js/-/raw/master/README.md), last checked 24 Nov 2026
- [Twilio Lookup pricing](https://www.twilio.com/en-us/user-authentication-identity/pricing/lookup), last checked 24 Nov 2026
- [Twilio Lookup v2 API docs](https://www.twilio.com/docs/lookup/v2-api), last checked 24 Nov 2026
- [Twilio: what is SMS pumping fraud](https://www.twilio.com/docs/glossary/what-is-sms-pumping-fraud), last checked 24 Nov 2026
- [Twilio Verify Fraud Guard docs](https://www.twilio.com/docs/verify/preventing-toll-fraud/sms-fraud-guard), last checked 24 Nov 2026
- [Twilio Verify pricing](https://www.twilio.com/en-us/user-authentication-identity/pricing/verify), last checked 24 Nov 2026
- [Telnyx Number Lookup pricing](https://telnyx.com/pricing/number-lookup), last checked 24 Nov 2026
- [Telnyx Number Lookup docs](https://developers.telnyx.com/docs/identity/number-lookup), last checked 24 Nov 2026
- [Plivo Lookup overview](https://docs.plivo.com/docs/lookup/overview), last checked 24 Nov 2026
- [Vonage Number Insight overview](https://developer.vonage.com/en/number-insight/overview), last checked 24 Nov 2026
- [Vonage Identity Insights pricing](https://www.vonage.co.uk/communications-apis/number-insight/pricing/), last checked 24 Nov 2026
- [Numverify plans](https://numverify.com/product), last checked 24 Nov 2026
- [Abstract Phone Validation API](https://www.abstractapi.com/api/phone-validation-api), last checked 24 Nov 2026
- [Veriphone pricing](https://veriphone.io/pricing), last checked 24 Nov 2026

## Frequently asked questions

### Is there a free phone number validation API?

The best free option is not an API but a library. Google's libphonenumber (Apache-2.0) and libphonenumber-js (MIT) validate numbers offline against length and prefix rules and format them to E.164. Twilio Lookup's basic formatting and validation request is also free. For hosted line-type data, Veriphone includes 1,000 free credits a month, and Abstract and Numverify offer 100 free requests (Numverify's are non-commercial only).

### Can libphonenumber tell me if a number is mobile or VoIP?

Only from the number range, not from live network data. libphonenumber's getNumberType guesses the type from the number itself, and libphonenumber-js only returns a type when you import the max metadata. Neither knows the current carrier: Google's README says it does not provide data about the current carrier, and ported numbers keep their original range. For a live line type, you need a lookup API.

### What is the cheapest line type lookup API?

On per-query prices published today, Telnyx lists MCC/MNC lookups at $0.0025, Plivo's Lookup API is $0.004 per request and Twilio Line Type Intelligence is $0.008 per request. Bundled plans can be cheaper per lookup at volume: Veriphone's Business plan is $99 a month for 250,000 validations, and Numverify Enterprise is $129.99 for 250,000 requests.

### How do I stop SMS pumping fraud on my sign-up form?

Twilio's guidance is to enable Verify Fraud Guard, disable countries you do not plan to message with Geo Permissions, and use Lookup Line Type Intelligence to send SMS only to mobile numbers. Our additions: rate-limit OTP requests per IP and per number, put a CAPTCHA or proof of work in front of the send button, and alert on sudden spikes of sends to one country.

### Do I need a paid lookup for every sign-up?

Usually not. Parse every number offline for free, then run a paid lookup only when you are about to send an SMS and the number is in a country you rarely see, comes from a suspicious IP, or is flagged as a possible non-mobile type. In our worked example that cuts 10,000 paid lookups a month to about 2,000.


