Record Validation offers a REST API that can be used to validate and format phone numbers, email addresses, and postal addresses from any programming language.
API Documentation
The API documentation can be found via swaggerhub.
Example Code
There is example code available on GitHub
Authentication
You need to authenticate yourself before you can use the REST API. The authentication works via the standard Salesforce Rest Authentication methods. You can read more about this via the REST API Developer Guide.