# Creating Phone number validation

**URL:** <https://community.thunkable.com/t/creating-phone-number-validation/741591>\
**Category:** Questions about Thunkable X\
**Created:** [August 14, 2020, 3:06am UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591 "2020-08-14T03:06:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 14, 2020, 3:06am UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591/1 "2020-08-14T03:06:55Z")

</div>

New one for you Jared. I cannot find a way to create a phone input field with basic validation. Any ideas?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [August 14, 2020, 11:47am UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591/2 "2020-08-14T11:47:14Z")

</div>

Hey @gpo - going to move this to it’s own topic.

Phone numbers will vary from country to country, are you just interested in validating US numbers?

If not, can you give an example of the ones you want?

Thanks.

---

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 14, 2020, 12:07pm UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591/3 "2020-08-14T12:07:43Z")

</div>

Yes, starting with US phone numbers. Thank you

---

<div class="post-metadata">

**Author:** ![hdawc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hdawc/32/119068_2.png) [@hdawc](https://community.thunkable.com/u/hdawc)\
**Post date:** [August 15, 2020, 12:09am UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591/5 "2020-08-15T00:09:58Z")

</div>

Hi @gpo

Try this API: [https://numverify.com/](https://numverify.com/)

Returns JSON:

```
{
   "valid": true,   
   "local_format": "4158586273",
   "intl_format": "+14158586273",
   "country_code": "US",
   "country_name": "United States of America",
   "location": "Novato",
   "carrier": "AT&T Mobility LLC",
   "line_type": "mobile"
}

```

There’s also this with 7,500 free look-ups a month.  
[https://dev.me/products/phone](https://dev.me/products/phone)

Up to 1000 daily:

> **[NumValidate - Phone number validation REST API](https://numvalidate.com)**
>
> Free and open source REST API that provides a simple yet effective way to validate and format a phone number.

  
  

* * *

### Twilio is a well known provider of SMS and have their own service if you only want the country.

> **[Phone Validator API to Check Numbers & Look Up Carriers - Twilio](https://www.twilio.com/lookup)**
>
> Validate number format and look up provider & device type to reach verified users via voice & text. Free to use.

👍

_I don’t know about data protection with any of those services though…  
Please research them carefully first._

---

<div class="post-metadata">

**Author:** ![darren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/darren/32/69854_2.png) [@darren](https://community.thunkable.com/u/darren)\
**Post date:** [October 21, 2020, 8:33pm UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591/6 "2020-10-21T20:33:15Z")

</div>

In addition to validating the phone number is input, if you have a standard format you are looking for you can format the number while the user is typing the number.

See:

> [@Phone Number Formatting and Validation](http://community.thunkable.com/t/phone-number-validation/920509):
>
> Background Currently I am working on a project that stores and retrieves phone numbers in AirTable. I was running into an issue with formatting the phone number correctly and I came up with a solution to format the phone number as you type in the text input. Concept Basically, every time the value changes, I strip out the non-number characters and then reformat the phone number in my desired format. Goal The following blocks format the number as: (###) ###-#### Properties I also set the keybo…

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 1, 2024, 4:19pm UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591/7 "2024-07-01T16:19:53Z")

</div>

2 posts were split to a new topic: [How to identify a valid phone number](https://community.thunkable.com/t/how-to-identify-a-valid-phone-number/3081846)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:22pm UTC](https://community.thunkable.com/t/creating-phone-number-validation/741591/8 "2024-11-08T12:22:00Z")

</div>


