{"id":17494,"date":"2023-04-20T22:27:08","date_gmt":"2023-04-20T20:27:08","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/how-to-get-data-containing-the-country-the-phone-country-code-and-the-mobile-phone-digits-length\/"},"modified":"2023-04-20T22:27:08","modified_gmt":"2023-04-20T20:27:08","slug":"how-to-get-data-containing-the-country-the-phone-country-code-and-the-mobile-phone-digits-length","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/how-to-get-data-containing-the-country-the-phone-country-code-and-the-mobile-phone-digits-length\/","title":{"rendered":"How To Get Data Containing The Country, The Phone Country Code And The Mobile Phone Digits Length?"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>I&#8217;m looking for data containing the name of the country, the phone country code, and the msisdn length (without the phone country code) like this<\/p>\n<p>  [{&#8220;name&#8221;: &#8220;United States&#8221;, &#8220;code&#8221;: &#8220;+1&#8221;, &#8220;length&#8221;: 10}, {&#8220;name&#8221;: &#8220;China&#8221;, &#8220;code&#8221;: &#8220;+86&#8221;, &#8220;length&#8221;: 11}]  <\/p>\n<p>I don&#8217;t need the landline number length, just the mobile number length. if a country can have multiple number lengths, like 7 and 8, then the dataset should have the max length, in this case, 8.<\/p>\n<p>It would be great if I can get this data in JSON, but any format would do. I&#8217;m only finding this data on Wikipedias and such, with no reliable sources, and hard to work with, I need to copy and paste from webpages.<\/p>\n<p>I need this data to validate input field phone numbers. I currently have 80 countries already, I&#8217;d like to have the complete list though.<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/lynob\"> \/u\/lynob <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/12tdupq\/how_to_get_data_containing_the_country_the_phone\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/12tdupq\/how_to_get_data_containing_the_country_the_phone\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-17494 jlk' href='javascript:void(0)' data-task='like' data-post_id='17494' data-nonce='65e0e39b87' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-17494 lc'>0<\/span><\/a><\/div><\/div> <div class='status-17494 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m looking for data containing the name of the country, the phone country code, and the msisdn&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-17494","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/17494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=17494"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/17494\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=17494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=17494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=17494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}