Skip to contentSkip to navigationSkip to topbar

Lookup Phone Number Intelligence

Created by: Twilio
  • Verify
  • JavaScript
  • Quick Deploy

This sample deploys a web UI and a Serverless Function that together let you look up detailed intelligence about any phone number using the Twilio Lookup v2 API(link takes you to an external page). Enter a phone number (with international prefix handling via intl-tel-input), select the data packages you want, and the Function queries Lookup and returns the results as JSON.

Validation and Formatting is always included and free. The remaining packages are opt-in and billed per lookup — select only what your use case needs.

* Additional carrier approval required. Submit this form to request access.(link takes you to an external page)

For a production use case we recommend pairing this with phone verification(link takes you to an external page) to confirm the user actually controls the number before acting on the Lookup data.

More details in the Lookup API documentation(link takes you to an external page).

Lookup sample 2024
Report this template(link takes you to an external page)
Quick Deploy to TwilioGet CodeUse Twilio CLI
Launch and test this app in a few minutes with Quick Deploy. No server needed. Quick Deploy will automatically configure and deploy this app using Twilio Functions. Learn more about Twilio Functions(link takes you to an external page)
  1. Log in to Twilio

    Access your Twilio account to get started.

    Checking for existing account...

  2. Click the button below to deploy your app

    This will use the details entered above to deploy your application to Twilio Functions.

    You will be able to view the application in the browser and edit it using the Functions UI.

Need some help?

We all do sometimes; code is hard. Get help now from our support team(link takes you to an external page), or lean on the wisdom of the crowd by browsing the Twilio tag(link takes you to an external page)on Stack Overflow.

Terms of servicePrivacy Policy

Copyright © 2026 Twilio Inc.