← Back to Tomba
GET/v1/phone-validator
Validate Phone
Validate a phone number and get carrier information.
Tomba·$0.01 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "tomba",
path: "/v1/phone-validator",
query: {
"phone": "example"
}
});
console.log(output);Query parameters
phonerequired
string
Phone number to validate
country_code
string
Country code (e.g., US)
Response
data.valid
boolean
data.carrier
string
data.line_type
string
data.timezones.0
string
data.e164_format
string
data.intl_format
string
data.country_code
string
data.local_format
string
data.rfc3966_format
string