Fetch phone number country

GET /v1/PhoneNumbers/Countries/{IsoCountry}

Phone number pricing by country

Path parameters

  • IsoCountry string(iso-country-code) Required

    The ISO country code of the pricing information to fetch.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • country string | null

      The name of the country.

    • iso_country string(iso-country-code) | null
    • phone_number_prices array[object(phone-number-price)] | null

      The list of PhoneNumberPrice records.

      Hide phone_number_prices attributes Show phone_number_prices attributes object(phone-number-price)
      • base_price number
      • current_price number
      • number_type string
    • price_unit string(currency) | null

      The currency in which prices are measured, specified in ISO 4127 format (e.g. usd, eur, jpy).

    • url string(uri) | null

      The absolute URL of the resource.

GET /v1/PhoneNumbers/Countries/{IsoCountry}
curl \
 --request GET 'https://pricing.twilio.com/v1/PhoneNumbers/Countries/{IsoCountry}' \
 --user "username:password"
Response examples (200)
{
  "url": "https://pricing.twilio.com/v1/PhoneNumbers/Countries/US",
  "country": "United States",
  "price_unit": "USD",
  "iso_country": "US",
  "phone_number_prices": [
    {
      "base_price": "1.00",
      "number_type": "local",
      "current_price": "1.00"
    },
    {
      "base_price": "2.00",
      "number_type": "toll free",
      "current_price": "2.00"
    }
  ]
}