{
"input": "+254 712 345 678",
"valid": true,
"possible_length": true,
"country": {
"iso": "KE",
"name": "Kenya",
"calling_code": "+254"
},
"e164": "+254712345678",
"international": "+254 712 345 678",
"national": "0712 345 678",
"national_number": "712345678",
"type": "mobile",
"mobile_check": "préfixes mobiles vérifiés",
"errors": [],
"disclaimer": "Validation sur indicatif et longueur du plan de numérotation ; n’atteste pas que la ligne est attribuée ou joignable."
}
curl --location --request GET 'https://zylalabs.com/api/15136/phone+number+parser+and+validator+api/40386/parse+a+phone+number?phone=+254 712 345 678&default_country=KE' --header 'Authorization: Bearer YOUR_API_KEY'
{
"input": "+254 712 345 678",
"valid": true,
"possible_length": true,
"country": {
"iso": "KE",
"name": "Kenya",
"calling_code": "+254"
},
"e164": "+254712345678",
"international": "+254 712 345 678",
"national": "0712 345 678",
"national_number": "712345678",
"type": "mobile",
"mobile_check": "préfixes mobiles vérifiés",
"errors": [],
"disclaimer": "Validation sur indicatif et longueur du plan de numérotation ; n’atteste pas que la ligne est attribuée ou joignable."
}
curl --location --request POST 'https://zylalabs.com/api/15136/phone+number+parser+and+validator+api/40387/parse+a+phone+number' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"phone":"+254 712 345 678","default_country":"KE"}'
{
"e164": "+33612345678",
"international": "+33 6 12 34 56 78",
"country": {
"iso": "FR",
"name": "France",
"calling_code": "+33"
},
"type": "mobile"
}
curl --location --request GET 'https://zylalabs.com/api/15136/phone+number+parser+and+validator+api/40388/normalize+to+e164?phone=06 12 34 56 78&default_country=FR' --header 'Authorization: Bearer YOUR_API_KEY'
{
"e164": "+33612345678",
"international": "+33 6 12 34 56 78",
"country": {
"iso": "FR",
"name": "France",
"calling_code": "+33"
},
"type": "mobile"
}
curl --location --request POST 'https://zylalabs.com/api/15136/phone+number+parser+and+validator+api/40389/normalize+to+e164' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"phone":"06 12 34 56 78","default_country":"FR"}'
{
"count": 124,
"countries": [
{
"iso": "FR",
"name": "France",
"calling_code": "+33",
"national_number_length": "9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "GB",
"name": "Royaume-Uni",
"calling_code": "+44",
"national_number_length": "9-10",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "DE",
"name": "Allemagne",
"calling_code": "+49",
"national_number_length": "7-13",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "ES",
"name": "Espagne",
"calling_code": "+34",
"national_number_length": "9",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "IT",
"name": "Italie",
"calling_code": "+39",
"national_number_length": "6-11",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "PT",
"name": "Portugal",
"calling_code": "+351",
"national_number_length": "9",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "BE",
"name": "Belgique",
"calling_code": "+32",
"national_number_length": "8-9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "NL",
"name": "Pays-Bas",
"calling_code": "+31",
"national_number_length": "9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "CH",
"name": "Suisse",
"calling_code": "+41",
"national_number_length": "9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "AT",
"name": "Autriche",
"calling_code": "+43",
"national_number_length": "4-13",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "IE",
"name": "Irlande",
"calling_code": "+353",
"national_number_length": "7-9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "LU",
"name": "Luxembourg",
"calling_code": "+352",
"national_number_length": "4-11",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "SE",
"name": "Suède",
"calling_code": "+46",
"national_number_length": "7-13",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "NO",
"name": "Norvège",
"calling_code": "+47",
"national_number_length": "8",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "DK",
"name": "Danemark",
"calling_code": "+45",
"national_number_length": "8",
"national_prefix": null,
"mobile_detection": false
},
{
"iso": "FI",
"name": "Finlande",
"calling_code": "+358",
"national_number_length": "5-12",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "IS",
"name": "Islande",
"calling_code": "+354",
"national_number_length": "7",
"national_prefix": null,
"mobile_detection": false
},
{
"iso": "PL",
"name": "Pologne",
"calling_code": "+48",
"national_number_length": "9",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "CZ",
"name": "Tchéquie",
"calling_code": "+420",
"national_number_length": "9",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "SK",
"name": "Slovaquie",
"calling_code": "+421",
"national_number_length": "9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "HU",
"name": "Hongrie",
"calling_code": "+36",
"national_number_length": "8-9",
"national_prefix": "06",
"mobile_detection": true
},
{
"iso": "RO",
"name": "Roumanie",
"calling_code": "+40",
"national_number_length": "9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "BG",
"name": "Bulgarie",
"calling_code": "+359",
"national_number_length": "8-9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "GR",
"name": "Grèce",
"calling_code": "+30",
"national_number_length": "10",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "HR",
"name": "Croatie",
"calling_code": "+385",
"national_number_length": "8-9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "RS",
"name": "Serbie",
"calling_code": "+381",
"national_number_length": "8-9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "SI",
"name": "Slovénie",
"calling_code": "+386",
"national_number_length": "8",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "EE",
"name": "Estonie",
"calling_code": "+372",
"national_number_length": "7-8",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "LV",
"name": "Lettonie",
"calling_code": "+371",
"national_number_length": "8",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "LT",
"name": "Lituanie",
"calling_code": "+370",
"national_number_length": "8",
"national_prefix": "8",
"mobile_detection": true
},
{
"iso": "MT",
"name": "Malte",
"calling_code": "+356",
"national_number_length": "8",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "CY",
"name": "Chypre",
"calling_code": "+357",
"national_number_length": "8",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "UA",
"name": "Ukraine",
"calling_code": "+380",
"national_number_length": "9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "BY",
"name": "Biélorussie",
"calling_code": "+375",
"national_number_length": "9",
"national_prefix": "8",
"mobile_detection": true
},
{
"iso": "TR",
"name": "Turquie",
"calling_code": "+90",
"national_number_length": "10",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "RU",
"name": "Russie",
"calling_code": "+7",
"national_number_length": "10",
"national_prefix": "8",
"mobile_detection": true
},
{
"iso": "KZ",
"name": "Kazakhstan",
"calling_code": "+7",
"national_number_length": "10",
"national_prefix": "8",
"mobile_detection": true
},
{
"iso": "UZ",
"name": "Ouzbékistan",
"calling_code": "+998",
"national_number_length": "9",
"national_prefix": null,
"mobile_detection": true
},
{
"iso": "IL",
"name": "Israël",
"calling_code": "+972",
"national_number_length": "8-9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "AE",
"name": "Émirats arabes unis",
"calling_code": "+971",
"national_number_length": "8-9",
"national_prefix": "0",
"mobile_detection": true
},
{
"iso": "SA",
"name": "Arabie saoudite",
"calling_code": "+966",
"national_number_length": "8-9",
"national_prefix": "0"
}
],
"_note": "Response truncated for documentation purposes"
}
curl --location --request GET 'https://zylalabs.com/api/15136/phone+number+parser+and+validator+api/40390/list+phone+countries' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Phone Number Parser and Validator API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Analyze and normalize a phone number (E.164, international and national formats) for 124 countries and territories, using a static numbering plan table: country calling code and length.
It returns the original input, validity indicators, detected country, calling code, normalized E.164 number, international and national display formats, national number, number type, mobile-prefix status, errors, and a validation disclaimer.
`valid: true` means the number matches a recognized country calling code and the applicable numbering-plan rules, such as expected length. It does not confirm that the number is assigned, active, or reachable.
`possible_length` indicates whether the number length is allowed by the detected numbering plan. `valid` summarizes the overall structural validation result, including country and format checks. A structurally valid number still may not belong to a real subscriber.
The API returns JSON. `e164` contains the compact international form, such as `+254712345678`; `international` adds readable spacing; `national` uses the country’s domestic format; and `national_number` contains the number without the country calling code.
The API supports 124 countries and territories. Coverage includes country ISO codes, names, calling codes, expected number lengths, and mobile prefixes where those prefixes are considered reliable. The coverage endpoint provides the available country rules.
The response may classify a number using the `type` field, such as `mobile`. Mobile classification depends on available numbering-plan and prefix data. A missing or uncertain classification should not be treated as proof that the number is fixed-line, mobile, or assigned.
Numbers may be supplied in international notation, including formats with spaces, such as `+254 712 345 678`. The API normalizes recognized input to E.164 and provides international and national display forms. Use the normalization endpoints when only the E.164 result is required.
The normalization endpoints return HTTP 422 when the supplied number cannot be structurally normalized. Error responses use JSON in the form `{"error":{"code","message"}}`. Applications should inspect the status code and error fields rather than assuming an E.164 value was produced.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund