# Method: phoneNumbers.search

Searches available phone numbers with the specified filters.

Search returns phone numbers sorted by create_time descending.

The caller must be authenticated.

### HTTP request

`GET https://numbering.api.enfonica.com/v1beta1/phoneNumbers:search`

### Query parameters
Parameters | &nbsp;
--|--
<span class="e-code">pageSize</span> | <span class="e-code">number (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">int32</a> format)</span><br/>The maximum number of PhoneNumbers to return in the response. Default value of 10 and maximum value of 100.
<span class="e-code">pageToken</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `SearchPhoneNumbers` that indicates where this listing should continue from.
<span class="e-code">numberType</span> | <span class="e-code">enum ([PhoneNumber.PhoneNumberType](/docs/phone-numbers/api-reference/rest/v1beta1/phoneNumbers/overview/#phonenumberphonenumbertype))</span><br/>The type of phone number.
<span class="e-code">countryCode</span> | <span class="e-code">string</span><br/>The alpha-2 country code that identifies the country associated with the phone number. 
<span class="e-code">prefix</span> | <span class="e-code">string</span><br/>The prefix that the number must have after the country code. If the prefix starts with '0', it will be automatically removed.
<span class="e-code">supportsVoice</span> | <span class="e-code">boolean</span><br/>If true, the phone number must support voice.
<span class="e-code">supportsSms</span> | <span class="e-code">boolean</span><br/>If true, the phone number must support SMS.
<span class="e-code">supportsMms</span> | <span class="e-code">boolean</span><br/>If true, the phone number must support MMS.

### Request body

The request body must be empty.

### Response body

The SearchPhoneNumbers response.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;phoneNumbers&quot;</span><span class="p">: </span><span class="p">[</span>
    <span class="p">{</span>
      <span class="kd">object (</span><a href="/docs/phone-numbers/api-reference/rest/v1beta1/phoneNumbers/overview/#resource-phonenumber"><strong><span class="kd">PhoneNumber</span></strong></a><span class="kd">)</span>
    <span class="p">}</span>
  <span class="p">]</span><span class="p">,</span>
  <span class="s2">&quot;nextPageToken&quot;</span><span class="p">: </span><span class="kd">string</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">phoneNumbers[]</span> | <span class="e-code">object ([PhoneNumber](/docs/phone-numbers/api-reference/rest/v1beta1/phoneNumbers/overview/#resource-phonenumber))</span><br/>A possibly paginated list of PhoneNumbers.
<span class="e-code">nextPageToken</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `SearchPhoneNumbers` that indicates from where listing should continue.

