Quick Start

Get up and running with the telco.dev API in minutes

This guide will help you make your first API request in under 5 minutes.

Step 1: Get Your API Key

  1. Go to telco.dev and sign up for a free account
  2. Navigate to your Dashboard
  3. Click "Create API Key"
  4. Copy your new API key (starts with tk_live_)
⚠️ Keep your API key secure

Your API key grants access to your account. Never share it publicly or commit it to version control.

Step 2: Make Your First Request

Using cURL

curl -H "Authorization: Bearer tk_live_your_key_here" \
  "https://api.telco.dev/v1/lookup/4155551234"

Using JavaScript (fetch)

const response = await fetch(
  "https://api.telco.dev/v1/lookup/4155551234",
  {
    headers: {
      "Authorization": "Bearer tk_live_your_key_here"
    }
  }
);

const data = await response.json();
console.log(data);

Using Python (requests)

import requests

response = requests.get(
    "https://api.telco.dev/v1/lookup/4155551234",
    headers={"Authorization": "Bearer tk_live_your_key_here"}
)

data = response.json()
print(data)

Step 3: Understand the Response

A successful lookup returns carrier and location information for the phone number:

{
  "tn": "4155551234",
  "npa": "415",
  "nxx": "555",
  "nxxx": "1234",
  "carrier": {
    "ocn": "9740",
    "name": "PACIFIC BELL",
    "type": "ILEC"
  },
  "location": {
    "rateCenter": "SAN FRANCISCO",
    "state": "CA",
    "country": "US"
  }
}
FieldDescription
tnThe full 10-digit telephone number
npaArea code (first 3 digits)
nxxExchange code (next 3 digits)
nxxxLine number (last 4 digits)
carrier.ocnOperating Company Number
carrier.nameCarrier/company name
carrier.typeCarrier type (ILEC, CLEC, WIRELESS, etc.)
location.rateCenterRate center name
location.stateState/province code
location.countryCountry code (US or CA)

What's Next?