Skip to main content
POST
/
phone-numbers
/
is-available-for-purchase
Checks phone number availability.
curl --request POST \
  --url https://api.leadping.ai/phone-numbers/is-available-for-purchase \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumber": "<string>"
}
'
{
  "phoneNumber": "<string>",
  "isAvailable": true,
  "price": "<string>",
  "currency": "<string>",
  "location": {
    "location": "<string>",
    "state": "<string>",
    "countryCode": "<string>"
  }
}

Body

The phone number availability request.

Request payload for phone number availability.

phoneNumber
string

The phone number associated with this phone number availability.

Response

Returns the phone number availability response.

API response containing phone number availability data returned to callers.

phoneNumber
string

The phone number associated with this phone number availability.

isAvailable
boolean

Whether this phone number availability is available.

price
string<double> | null

The monetary price for this phone number availability.

Pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
currency
string | null

The ISO currency code for monetary values in this phone number availability.

location
object

The location value for this phone number availability.