Menu

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?

Lookup: Carrier and Caller Name

Given a phone number, Twilio Lookup can identify the number's carrier and what type of phone it is (landline, mobile, or VoIP). In the U.S., Lookup can also retrieve the name of the person or business associated with a phone number (if available).

Lookup can show you even more information about a phone number using Twilio Add-ons. See the Add-ons guide to learn more.

Identify a phone number's carrier and type

To discover a phone number's carrier and what type of phone it is, pass an extra argument to your lookup requesting carrier information.

Loading Code Sample...
      
      
      
      
      Look up a phone number in the E.164 format

      Lookup with E.164 Formatted Number

      Look up a phone number in the E.164 format

      The response will contain two additional fields:

      • Type specifies whether the phone is a landline, mobile, or voip phone
      • Carrier is the name of the phone's carrier, like Verizon Wireless. Note that carriers rebrand frequently

      If your phone number was invalid or incorrectly formatted, Twilio will return a 404 error.

      Get a name associated with a phone number

      Note: Caller name lookup is available for U.S. numbers only

      Lookup can also retrieve the name of the individual or business associated with a phone number. Simply pass a caller-name argument to your lookup request.

      Loading Code Sample...
          
          
          
          

          If available, the response will include a name for the phone number and whether the name is for a business or consumer.

          Keep in mind that not all numbers will have names available.

          Want even more information about a phone number? See the Twilio Add-ons guide to learn more and check out the available Lookup add-ons in the console.

          Andrew Baker Paul Kamp Kat King Kelley Robinson

          Need some help?

          We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

          Loading Code Sample...