tags:

views:

551

answers:

2

Hi,

I wanna validate a given phone number for United States in C#. Is there any API or something for that which helps programmers to validate phone numbers existence. I don't wanna only validate if they're matching the format of phone numbers for USA but also their existence.

Thanks in advance.

+2  A: 

You could validate phone number formats using a Regex such as those listed here, but in order to validate if the phone number really exists you would need to subscribe to a web service that holds current data for all phone numbers in the United States and publishes a method to validate such data. I don't think such a service would be free.

Also, take a look at this related question on SO.

Cerebrus
A: 

Actually I've found something like this : MelissaData.com They're offering a web service which verifies address,phone and name information.

Braveyard
The home page says: Phone Check: (Coming Soon)
John Saunders
BTW, find out which phone numbers it will validate. Probably only numbers that are in the phone directory. Not _my_ number, for instance, which is a cell phone.
John Saunders
Well, actually you're right. I think it's not gonna be possible for me for a while.
Braveyard
And you are also right about land phone verification. They are not gonna provide cell numbers, I asked them.
Braveyard