Skip to content
TriedDocs
Phone numbers

Search phone numbers

Search available Australian numbers, with their monthly price.

GEThttps://api.tried.com.au/search-phone-numbers

Lists Australian numbers available from telnyx or twilio. Pass a result's phone_number to Create phone number to buy that exact number.

This endpoint exists for API compatibility. Buying numbers is not offered: connect the number you already have instead (see Get a phone number). See Australian numbers for the Australian-only rule.

Request#

Query parameter Type Required Description
country_code string No Must be AU (the default). Any other country returns 400.
area_code integer No Area code to search in. Ignored for toll-free searches.
toll_free boolean No true or 1 searches toll-free (1800) numbers. false, 0 or leaving it out searches local numbers.
contains string No Digits the number must contain, up to 10 characters.
limit integer No Results to return, 1 to 20. Default 5.
number_provider string No telnyx or twilio. Default telnyx.

Example request#

curl "https://api.tried.com.au/search-phone-numbers?country_code=AU&area_code=3&limit=3" \
  -H "Authorization: Bearer $TRIED_API_KEY"
const params = new URLSearchParams({ country_code: "AU", area_code: "3", limit: "3" });
const res = await fetch(`https://api.tried.com.au/search-phone-numbers?${params}`, {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const available = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/search-phone-numbers",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
    params={"country_code": "AU", "area_code": 3, "limit": 3},
)
available = res.json()

Response#

200 OK

[
  { "phone_number": "+61355501842", "country_code": "AU", "toll_free": false, "monthly_price": 8, "features": ["voice"] },
  { "phone_number": "+61355507316", "country_code": "AU", "toll_free": false, "monthly_price": 8, "features": ["voice"] },
  { "phone_number": "+61355502059", "country_code": "AU", "toll_free": false, "monthly_price": 8, "features": ["voice"] }
]
Field Type Description
phone_number string The number in E.164.
country_code string Always AU.
toll_free boolean Whether you searched toll-free numbers.
monthly_price number Monthly price in AUD. telnyx results use the carrier's monthly cost when it is given. Otherwise the Tried price list applies (8 for an Australian number), plus 5 for toll-free.
features string[] Capabilities reported by the provider, for example voice.

Errors#

Status When
400 A query parameter failed validation, for example limit: Number must be less than or equal to 20, or country_code is not AU (country_code must be AU. Tried only works with Australian numbers (+61).).
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the numbers scope.
422 The provider rejected the search. The message is the provider's error, for example when no numbers match the area code.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.