Search available numbers
search_phone_numbersSearch available numbers
Searches the number marketplace for numbers that can be bought right now in one country. Nothing is reserved: a listing can disappear between the search and the purchase, so buy promptly and be ready to retry with a different result. Each entry carries the prices, the capabilities and the identifiers a purchase needs, and should be passed back to the purchase endpoint unchanged. The marketplace applies its own rate limit; when it is hit the endpoint answers 429 and the search can be repeated after a short pause.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"countryIso": "<countryIso>"
},
"name": "search_phone_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of listings to return. Must be between 1 and 100; a value outside that range is rejected with 400 rather than clamped. | |
| areaCode | No | Area or city code to search within. Only meaningful for number types that have one, such as `local`. | |
| countryIso | Yes | Two-letter ISO country code to search in, exactly 2 characters. Take it from the `iso` field of the countries endpoint. | |
| numberType | No | Restrict the search to one category of number. Omit to let the marketplace decide which categories to return. |