The Phone Number Validation API automatically detects the phone number format, based on the country code provided, and its line type. Further, the API returns the phone number in various local, global and E164 standard format.
You can learn more about how to store phone numbers in a database here.