github.com/twilio/twilio-go@v1.20.1/rest/lookups/v1/docs/PhoneNumbersApi.md (about)

     1  # PhoneNumbersApi
     2  
     3  All URIs are relative to *https://lookups.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchPhoneNumber**](PhoneNumbersApi.md#FetchPhoneNumber) | **Get** /v1/PhoneNumbers/{PhoneNumber} | 
     8  
     9  
    10  
    11  ## FetchPhoneNumber
    12  
    13  > LookupsV1PhoneNumber FetchPhoneNumber(ctx, PhoneNumberoptional)
    14  
    15  
    16  
    17  
    18  
    19  ### Path Parameters
    20  
    21  
    22  Name | Type | Description
    23  ------------- | ------------- | -------------
    24  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    25  **PhoneNumber** | **string** | The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
    26  
    27  ### Other Parameters
    28  
    29  Other parameters are passed through a pointer to a FetchPhoneNumberParams struct
    30  
    31  
    32  Name | Type | Description
    33  ------------- | ------------- | -------------
    34  **CountryCode** | **string** | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format.
    35  **Type** | **[]string** | The type of information to return. Can be: `carrier` or `caller-name`. The default is null.  Carrier information costs $0.005 per phone number looked up.  Caller Name information is currently available only in the US and costs $0.01 per phone number looked up.  To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value.
    36  **AddOns** | **[]string** | The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about  Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons).
    37  **AddOnsData** | [**map[string]interface{}**](map[string]interface{}map[string]interface{}.md) | Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on.
    38  
    39  ### Return type
    40  
    41  [**LookupsV1PhoneNumber**](LookupsV1PhoneNumber.md)
    42  
    43  ### Authorization
    44  
    45  [accountSid_authToken](../README.md#accountSid_authToken)
    46  
    47  ### HTTP request headers
    48  
    49  - **Content-Type**: Not defined
    50  - **Accept**: application/json
    51  
    52  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    53  [[Back to Model list]](../README.md#documentation-for-models)
    54  [[Back to README]](../README.md)
    55