Skip to main content

Search your Numbers

In this guide, we will show you how to search telephone numbers across your Bandwidth account.

Search All Numbers

To search telephone numbers and view possible search parameters, make a GET request to our List Numbers API endpoint. This can be done through tools like Postman or cURL.

Search Types

You can use a combination of these parameters for a more specific search.

Search all telephone numbers across your accounts

Request URL:

GEThttps://dashboard.bandwidth.com/api/tns

Examples:

curl 'https://dashboard.bandwidth.com/api/tns'
-u '{userName}:{password}'

Response

<TelephoneNumbersResponse>
<TelephoneNumberCount>2</TelephoneNumberCount>
<Links>
<first><!-- Snip --></first>
<next><!-- Snip --></next>
</Links>
<TelephoneNumbers>
<TelephoneNumber>
<City>CARY</City>
<Lata>426</Lata>
<State>NC</State>
<FullNumber>2012381139</FullNumber>
<Tier>1</Tier>
<VendorId>49</VendorId>
<VendorName>Bandwidth CLEC</VendorName>
<RateCenter>CARY</RateCenter>
<Status>Inservice</Status>
<AccountId>9900008</AccountId>
<LastModified>2013-12-05T05:58:27.000Z</LastModified>
<InServiceDate>2013-12-05T05:58:27.000Z</InServiceDate>
</TelephoneNumber>
<TelephoneNumber>
<City>CARY</City>
<Lata>426</Lata>
<State>NC</State>
<FullNumber>9192381138</FullNumber>
<Tier>0</Tier>
<VendorId>49</VendorId>
<VendorName>Bandwidth CLEC</VendorName>
<RateCenter>CARY</RateCenter>
<Status>Inservice</Status>
<AccountId>9900000</AccountId>
<LastModified>2013-12-05T05:58:27.000Z</LastModified>
<InServiceDate>2013-12-05T05:58:27.000Z</InServiceDate>
</TelephoneNumber>
</TelephoneNumbers>
</TelephoneNumbersResponse>

Search for Specific Numbers

To search for specific telephone numbers, make a POST request to our List Numbers API endpoint. This can be done through tools like Postman or cURL.

Request URL:

POSThttps://dashboard.bandwidth.com/api/tns

Examples:

<TnList>
<Tn>3172000285</Tn>
<Tn>3172000207</Tn>
</TnList>

Response

<TelephoneNumbersResponse>
<TelephoneNumberCount>4</TelephoneNumberCount>
<Links>
<first><!-- Snip --></first>
</Links>
<TelephoneNumbers>
<TelephoneNumber>
<City>INDIANAPOLIS</City>
<Lata>336</Lata>
<State>IN</State>
<FullNumber>3172000285</FullNumber>
<Tier>0</Tier>
<VendorId>49</VendorId>
<VendorName>Bandwidth CLEC</VendorName>
<RateCenter>INDIANAPLS</RateCenter>
<Status>Available</Status>
<AccountId>753</AccountId>
<LastModified>2016-11-16T19:34:22.000Z</LastModified>
</TelephoneNumber>
<TelephoneNumber>
<City>INDIANAPOLIS</City>
<Lata>336</Lata>
<State>IN</State>
<FullNumber>3172000207</FullNumber>
<Tier>0</Tier>
<VendorId>49</VendorId>
<VendorName>Bandwidth CLEC</VendorName>
<RateCenter>INDIANAPLS</RateCenter>
<Status>Aging</Status>
<AccountId>14</AccountId>
<LastModified>2016-11-21T19:34:22.000Z</LastModified>
</TelephoneNumber>
</TelephoneNumbers>
</TelephoneNumbersResponse>

Retrieve Specific Number Details

To show specific number details, use one of our endpoints described in the list below.

This can be done through tools like Postman or cURL.

TN Details Requests

To show general number information, make a GET request to our Retrieve TN Information API endpoint.

Request URL:

GEThttps://dashboard.bandwidth.com/api/tns/{tn}

Examples:

curl 'https://dashboard.bandwidth.com/api/tns/{tn}'
-u '{userName}:{password}'

Response

<TelephoneNumberResponse>
<TelephoneNumber>2012035013</TelephoneNumber>
<Status>Inservice</Status>
<LastModifiedDate>2014-03-25 12:55:11.0</LastModifiedDate>
<OrderCreateDate>2014-03-25T12:55:11.810Z</OrderCreateDate>
<OrderId>cf79d3c3-21b7-4db7-9867-273a1867f934</OrderId>
<OrderType>NEW_NUMBER_ORDER</OrderType>
<InServiceDate>2014-03-25T12:55:11.810Z</InServiceDate>
<SiteId>2409</SiteId>
<AccountId>8000273</AccountId>
</TelephoneNumberResponse>

Where to next?

Now that you have learned how to search numbers in your Bandwidth accounts, check out some of the other available actions in the following guides: