API CodexAPI Codex
WebsiteDashboardGet API Key
  • Documentation
  • All APIs
  • Changelog
Resources
  • Docs Home
  • API Catalog
  • API Codex Website
Platform
  • Get a free API key
  • Dashboard
  • APIs & Pricing

© 2026 API Codex. All rights reserved.

Information
Other endpoints
    Validate & Format (query params)getValidate & Format (JSON body)post
Schemas
powered by Zudoku
Phone Number Validation & Formatting API

Phone Number Validation & Formatting API

Parse, validate, and format phone numbers worldwide using Google's libphonenumber metadata, with full line-type detection.

Send a raw string like (415) 555-2671 or +44 20 7183 8750 and get back a fully parsed result: validity flags, the canonical E.164 form, national and international display formats, the RFC3966 tel: URI, the detected country (ISO2), the country calling code, and the line type (MOBILE, FIXED_LINE, and more).

Get a free API key at dash.apicodex.io.

Features:

  • Global Coverage: Validate and format numbers from 240+ countries and territories
  • Rich Formatting: E.164, national, international, and RFC3966 tel: URI forms in a single response
  • Line-Type Detection: Distinguish mobile from fixed-line numbers for SMS vs voice routing
  • Flexible Input: Accept international +E.164 numbers directly, or local formats with a country hint
  • Independent Flags: Separate valid and possible flags let you tune strictness per use case
  • GET & POST: Validate via query parameters or a JSON request body
Servers
https://api.apicodex.io/phone

API Codex