← Back to Fiber AI
Validate a single phone number
Validates a phone number and returns whether it's valid, reachable, carrier info, and caller name.
Fiber AI·$0.06 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: "fiber",
path: "/v1/validate-phone/single",
body: {
"phoneNumber": "example"
}
});
console.log(output);Body parameters
phoneNumberrequired
string
Phone number to validate. E.164 format recommended (e.g. +14155551234).
Response
advice.0
string
output.isValid
boolean
output.isPorted
boolean
output.isRoaming
boolean
output.countryName
string
output.isReachable
string
output.callerIdName
string
output.countryIsoCode
string
output.currentCarrier.name
null
output.currentCarrier.country
string
output.nationalFormat
string
output.formattedNumber
string
output.originalCarrier.name
null
output.originalCarrier.country
string
output.validationScore
number
output.validationStatus
string
output.countryCallingCode
null
chargeInfo.method
string
chargeInfo.creditsCharged
number