Parses, validates and gets location information about a phone number. Use it to validate local and international numbers in any country, find the location of a number, and reformat it into local and international dialling formats.
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
client.DefaultRequestHeaders.Add("x-correlation-id", "YOUR_CORRELATION_ID");
var json = @"{
""PhoneNumber"": ""+61412345678"",
""CountryCode"": ""AU"",
""IpAdress"": ""<IpAdress>""
}";
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.screenlyyid.com/api/v1/phone-validate", content);
response.EnsureSuccessStatusCode();
var result = await response.Content.ReadAsStringAsync();
Type to search. ↑↓ to move, Enter to open, Esc to close.