Skip to main content
The Lookup API provides a way to retrieve information about a phone number:
  • Region-specific number formatting and validation
  • Carrier and service provider information
  • Portability information (US and Canada only)
Pricing: USD 0.004 per request

Prerequisites

You need your Plivo Auth ID and Auth Token, which you can find on the Plivo console.

Authentication

Lookup API requests are protected with HTTP Basic authentication. Use your Plivo auth_id as the username and auth_token as the password.

Look Up a Phone Number

Retrieve carrier and formatting information for a phone number.

Request

Phone numbers must be in E.164 format (e.g., +14155551234).

Query Parameters

Example Request


Response

Returns a JSON response with an api_id that uniquely identifies the request.

Success Response (HTTP 200)

Carrier Object

Success Example

Error Response

For a complete list of error codes, see Troubleshooting.