Skip to content

Twilio - Lookups API

by twilio.com

HTTP BasicHTTPSPhone
Open documentation ↗

Overview

This is the public Twilio REST API.

Twilio - Lookups is a phone API from twilio.com. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 2 endpoints.

At a glance

Authentication
HTTP Basic
HTTPS
Yes
CORS
Unknown
Category
Phone
Base URL
https://lookups.twilio.com
Version
1.42.0
Endpoints
2
Spec updated
2023-04-20

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://lookups.twilio.com/v1/PhoneNumbers/PHONENUMBER" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
JavaScript
const response = await fetch("https://lookups.twilio.com/v1/PhoneNumbers/PHONENUMBER", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://lookups.twilio.com/v1/PhoneNumbers/PHONENUMBER",
    headers={
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/v1/PhoneNumbers/{PhoneNumber}FetchPhoneNumber
GET/v2/PhoneNumbers/{PhoneNumber}FetchPhoneNumber

Questions

Does the Twilio - Lookups API need an API key?

Yes. The Twilio - Lookups API uses HTTP Basic authentication; the documentation explains how to get credentials.

Does the Twilio - Lookups API support HTTPS?

Yes, the Twilio - Lookups API is served over HTTPS.

How many endpoints does the Twilio - Lookups API have?

Its OpenAPI description lists 2 endpoints in version 1.42.0. All of them are shown on this page.

What are alternatives to the Twilio - Lookups API?

Other Phone APIs include Twilio - Accounts, ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, Twilio - Api, Mobility API, Telnyx API.

Compare alternatives →

Listed from APIs.guru (CC0).