{
"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'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए फ़ोन नंबर पार्सर और सत्यापनकर्ता API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
124 देशों और क्षेत्रों के लिए स्थिर नंबरिंग योजना तालिका का उपयोग करके फ़ोन नंबर का विश्लेषण और सामान्यीकरण करें (E.164, अंतर्राष्ट्रीय और राष्ट्रीय प्रारूप): देश का कॉलिंग कोड और लंबाई
यह मूल इनपुट, वैधता संकेतक, पता लगाया गया देश, कॉलिंग कोड, सामान्यीकृत E.164 नंबर, अंतरराष्ट्रीय और राष्ट्रीय प्रदर्शन प्रारूप, राष्ट्रीय नंबर, नंबर का प्रकार, मोबाइल उपसर्ग की स्थिति, त्रुटियाँ और एक सत्यापन अस्वीकरण लौटाता है
`valid: true` का अर्थ है कि नंबर किसी मान्यता प्राप्त देश के कॉलिंग कोड और लागू नंबरिंग योजना के नियमों, जैसे अपेक्षित लंबाई, से मेल खाता है। यह पुष्टि नहीं करता कि नंबर आवंटित, सक्रिय या संपर्क योग्य है।
`possible_length` दर्शाता है कि संख्या की लंबाई पहचानी गई नंबरिंग योजना के अनुसार अनुमत है या नहीं `valid` देश और प्रारूप की जाँच सहित समग्र संरचनात्मक सत्यापन परिणाम का सारांश देता है एक संरचनात्मक रूप से मान्य संख्या फिर भी किसी वास्तविक ग्राहक की नहीं हो सकती
API JSON लौटाता है। `e164` में संक्षिप्त अंतरराष्ट्रीय प्रारूप होता है, जैसे `+254712345678`; `international` में पढ़ने में आसानी के लिए रिक्त स्थान जोड़े जाते हैं; `national` में देश का घरेलू प्रारूप होता है; और `national_number` में देश के कॉलिंग कोड के बिना नंबर होता है
API 124 देशों और क्षेत्रों का समर्थन करता है कवरेज में देश के ISO कोड नाम कॉलिंग कोड अपेक्षित नंबर लंबाइयाँ और मोबाइल उपसर्ग शामिल हैं जहाँ उन उपसर्गों को विश्वसनीय माना जाता है कवरेज एंडपॉइंट उपलब्ध देश नियम प्रदान करता है
उत्तर संख्या का वर्गीकरण `type` फ़ील्ड का उपयोग करके कर सकता है, जैसे `mobile` मोबाइल वर्गीकरण उपलब्ध नंबरिंग योजना और उपसर्ग डेटा पर निर्भर करता है अनुपलब्ध या अनिश्चित वर्गीकरण को इस बात का प्रमाण नहीं माना जाना चाहिए कि संख्या लैंडलाइन है मोबाइल है या आवंटित है
नंबर अंतरराष्ट्रीय प्रारूप में दिए जा सकते हैं, जिसमें रिक्त स्थान वाले प्रारूप भी शामिल हैं, जैसे `+254 712 345 678`। API पहचाने गए इनपुट को E.164 में सामान्यीकृत करता है और अंतरराष्ट्रीय तथा राष्ट्रीय प्रदर्शन प्रारूप प्रदान करता है। जब केवल E.164 परिणाम की आवश्यकता हो, तो सामान्यीकरण एंडपॉइंट का उपयोग करें
जब दी गई संख्या को संरचनात्मक रूप से सामान्यीकृत नहीं किया जा सकता, तो सामान्यीकरण एंडपॉइंट HTTP 422 लौटाते हैं। त्रुटि प्रतिक्रियाएँ `{"error":{"code","message"}}` के रूप में JSON का उपयोग करती हैं। अनुप्रयोगों को यह मान लेने के बजाय कि E.164 मान उत्पन्न हुआ है, स्थिति कोड और त्रुटि फ़ील्ड की जाँच करनी चाहिए