The GetExchangeInfo operation returns exchange information such as carrier, line type, city, and state for any valid U.S. or Canadian phone number.

URL Endpoints

 

GetExchangeInfo Inputs

Name Type Description
PhoneNumber String Phone number whose exchange is to be verified.
LicenseKey String Your license key.
Important Notes!
Only U.S. and Canadian phone numbers are supported in this operation.

GetExchangeInfo Outputs

TelephoneInfo 
Name Type Description
TokensUsed int Number of tokens consumed in this request see Appendix B).
TransactionID string Unique identifier for this request.
Provider Provider Provider Information. See table below.
Debug string Utility field; safe to ignore.
Error Error See Error
Provider
Name Type Description
Name String Name of the exchange carrier.
City String City of the exchange.
State String State of the exchange.
LineType String Type of the exchange: LANDLINE, WIRELESS, VOIP, UNKNOWN.
Latitude String Latitude of the city, state.
Longitude String Longitude of the city, state.
Important Note!
Due to line number portability, it is possible that certain phone numbers have been moved to different carriers, cities, or even line types. Exchange information will not reflect ported phone numbers