Skip to contentSkip to navigationSkip to topbar
On this page

Lookup


Reduce undeliverable messages, identify local-friendly number formats, and resolve caller names with Twilio Lookup. Find phone types, carriers, and more; Lookup allows you to programmatically get information about phone numbers so you can be as effective as possible.

In this example, we're using Lookup to access the Line Type Intelligence package to retrieve line type information about a phone number from the carrier:

1
curl -X GET 'https://lookups.twilio.com/v2/PhoneNumbers/+15108675310?Fields=line_type_intelligence' \
2
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Get Started with Lookup

get-started-with-lookup page anchor

Knowing your users is only a few lines of code away. Choose your programming language and dive into the quickstart, which will get you started using Lookup in:

  • PHP
  • Python
  • Node.js
  • C#
  • Ruby
  • Java
  • Go
  • cURL

Check out the Lookup Quickstart here.


1. Filter Out VoIP Numbers(link takes you to an external page)

Detect VoIP phone numbers, which can be often correlated with bots, before sending an SMS using Lookup's Line Type Intelligence package.

2. Filter Out Landline Numbers(link takes you to an external page)

Identify landline phone numbers to catch undeliverable SMS messages proactively and avoid unnecessary delivery charges using Lookup's Line Type Intelligence package.

3. Detect a SIM Swap(link takes you to an external page)

Detect a SIM swap that could be indicative of potential fraud before sending an one-time password (OTP) using the Lookup's SIM Swap package.


API Reference

api-reference page anchor

Dive deeper into Lookup with our REST API reference and code samples.

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.