Search for available Phone Numbers to Purchase
GET/phone_numbers/search
Returns a list of phone numbers available for purchase that match the given search criteria parameters.
Permissions
The API token must include the following scopes: Numbers.
Request
Query Parameters
An areacode to search within.
Search for either local
or toll-free
numbers. Defaults to local
.
A string of 3 to 7 digits that should be used as the start of a number. Cannot be used in combination with contains
or ends_with
.
A string of 3 to 7 digits that should appear somewhere in the number. Cannot be used in combination with starts_with
or ends_with
.
A string of 3 to 7 digits that should be used as the end of a number. Cannot be used in combination with starts_with
or contains
.
The maximum number of matches to return. Upper limit of 100. Defaults to 50.
A region or state to search within. Must be an ISO 3166-2 alpha-2 code, i.e. TX
for Texas. Cannot be used in combination with areacode
.
A specific City to search within. Must be used in combination with region
. Cannot be used in combination with areacode
, starts_with
, contains
, or ends_with
.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
links
object
{
"links": {
"self": "string",
"first": "string",
"next": "string",
"prev": "string"
},
"data": [
{
"e164": "+15558675309",
"national_number_formatted": "(555) 867-5309",
"international_number_formatted": "+1 555-867-5309",
"rate_center": "AUBURN",
"region": "TX",
"country_code": "US",
"capabilities": [
"voice",
"sms",
"mms",
"fax"
]
}
]
}