Cloudmersive Validate API

⭐ Beginner's Pick Phone / API Key Intermediate HTTPS CORS
Varies by plan (check documentation)

Overview

Cloudmersive Validate API provides international phone number validation with detailed parsing, including country code detection, formatting, and line type identification. It supports REST requests with a simple JSON body and returns structured validation results. You need a free Cloudmersive API key to get started.

💡

Beginner Tip

Send the phone number as a plain string in the JSON body — Cloudmersive handles the parsing, so you do not need to pre-format the number yourself.

Available Data

country name and code
population
capital city
region and subregion
flag image URL
phone number validation

Example Response

JSON Response
{
  "name": "Japan",
  "capital": "Tokyo",
  "population": 125800000,
  "region": "Asia",
  "languages": [
    "Japanese"
  ],
  "flag": "https://flagcdn.com/jp.svg",
  "currencies": [
    {
      "code": "JPY",
      "name": "Japanese yen"
    }
  ]
}

Field Reference

IsValid Whether the phone number is considered valid.
E164Format The phone number reformatted in international E.164 standard (e.g., +14158586273).
CountryCode ISO 2-letter country code the number belongs to.
PhoneNumberType The type of phone number: mobile, fixed-line, or other.
FormattedPhoneNumber Human-readable formatted version of the phone number with country format applied.

Implementation Example

const url = "https://cloudmersive.com/phone-number-validation-API";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized The Apikey header is missing or the key is invalid.
Get a free API key at cloudmersive.com and include it as the Apikey request header.
IsValid: false for a real number The number was submitted without its international dialing prefix.
Include the + and country code (e.g., +1 for US, +44 for UK) to ensure correct validation.
Request body not accepted The Content-Type header was not set to application/json.
Always include Content-Type: application/json and send the number as a JSON string, not plain text.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 17/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Category Phone
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →