メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

AvailablePhoneNumber Mobile resource

The AvailablePhoneNumberMobile resource lets you search for mobile phone numbers that are available for you to purchase. You can search for phone numbers that match a pattern, are in a certain country, are in certain area code (NPA) or exchange (NXX) or are in a specific geography.

購入したい番号が見つかったら、HTTP POST リクエストを IncomingPhoneNumbers リスト リソース に発行し、番号を PhoneNumber パラメーターとして渡します。

Twilio は、豊富な種類の番号をストックしています。 国別の購入可能な番号については、 料金ページ を参照してください。

AvailablePhoneNumberMobile properties

Names in Python format
friendly_name
phone_number Not PII

A formatted version of the phone number.

phone_number
phone_number Not PII

The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.

lata
文字列 Not PII

The LATA of this phone number. Available for only phone numbers from the US and Canada.

locality
文字列 Not PII

The locality or city of this phone number's location.

rate_center
文字列 Not PII

The rate center of this phone number. Available for only phone numbers from the US and Canada.

latitude
decimal Not PII

The latitude of this phone number's location. Available for only phone numbers from the US and Canada.

longitude
decimal Not PII

The longitude of this phone number's location. Available for only phone numbers from the US and Canada.

region
文字列 Not PII

The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada.

postal_code
文字列 Not PII

The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada.

iso_country
iso_country_code Not PII

この電話番号の ISO 国コード です。

address_requirements
文字列 Not PII

The type of Address resource the phone number requires. Can be: none, any, local, or foreign. none means no address is required. any means an address is required, but it can be anywhere in the world. local means an address in the phone number's country is required. foreign means an address outside of the phone number's country is required.

beta
boolean Not PII

Whether the phone number is new to the Twilio platform. Can be: true or false.

capabilities
phone_number_capabilities Not PII

The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are: Voice, SMS, and MMS and each capability can be: true or false.

Read multiple AvailablePhoneNumberMobile resources

GET
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json
パラメーター
Names in None format
account_sid
必須
GET sid<AC> Not PII

The SID of the Account requesting the AvailablePhoneNumber resources.

country_code
必須
GET iso_country_code Not PII

The ISO-3166-1 country code of the country from which to read phone numbers.

area_code
オプション
GET integer Not PII

The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

contains
オプション
GET 文字列 Not PII

The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

sms_enabled
オプション
GET boolean Not PII

Whether the phone numbers can receive text messages. Can be: true or false.

mms_enabled
オプション
GET boolean Not PII

Whether the phone numbers can receive MMS messages. Can be: true or false.

voice_enabled
オプション
GET boolean Not PII

Whether the phone numbers can receive calls. Can be: true or false.

exclude_all_address_required
オプション
GET boolean Not PII

Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

exclude_local_address_required
オプション
GET boolean Not PII

Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

exclude_foreign_address_required
オプション
GET boolean Not PII

Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

beta
オプション
GET boolean Not PII

Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

near_number
オプション
GET phone_number<e164> Not PII

Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

near_lat_long
オプション
GET 文字列 Not PII

Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

distance
オプション
GET integer Not PII

The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

in_postal_code
オプション
GET 文字列 Not PII

Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

in_region
オプション
GET 文字列 Not PII

Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

in_rate_center
オプション
GET 文字列 Not PII

Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

in_lata
オプション
GET 文字列 Not PII

Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

in_locality
オプション
GET 文字列 Not PII

Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

fax_enabled
オプション
GET boolean Not PII

Whether the phone numbers can receive faxes. Can be: true or false.

例 1
        
        
        
        
        Find available mobile phone numbers in the United Kingdom

        地域を指定した携帯電話番号の検索

        Find available mobile phone numbers in the United Kingdom
        Rate this page:

        ヘルプが必要ですか?

        誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。