Phone Prefix Carrier & Rate Center API

For North American phone number blocks (area code plus exchange), the original carrier, carrier type, local exchange carrier, rate centre, region, LATA, switch and rate-centre coordinates.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 14 fieldsv1.0

Data from localcallingguide.com/xmlprefix.php

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Prefixes
North American area code and exchange (NPA-NXX), such as 416-979, or full phone numbers: only the first 6 digits are used. One per line, or separated by commas.
Example: 416-979

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/phone-prefix-carrier-lookup/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/phone-prefix-carrier-lookup/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"prefixes":["416-979"]},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

prefixeslistrequired
North American area code and exchange (NPA-NXX), such as 416-979, or full phone numbers: only the first 6 digits are used.
example: 416-979

What's in each record

14 fields.

Basics

  • Npa

    Area code.

    Example 416

  • Nxx

    Exchange (the next three digits).

    Example 979

  • Block

    Block letter within the exchange, when the exchange is split; A when not.

    Example A

  • Carrier

    Name of the carrier the block was assigned to.

    Example BELL ONTARIO

  • Ocn

    Operating company number of that carrier.

    Example 8051

  • Carrier type

    Carrier type: ILEC, CLEC, wireless or the source's own code.

    Example ILEC

  • Ilec

    Name of the incumbent local exchange carrier in that area.

    Example BELL ONTARIO

  • Rate center

    Rate centre name.

    Example Toronto

  • LATA code

    Example 888

  • Switch identifier

    Example TOROON63DS9

Location

  • Region

    State or province code.

    Example ON

  • Latitude

    Latitude of the rate centre.

    Example 43.651804

  • Longitude

    Longitude of the rate centre.

    Example -79.382535

Dates

  • Updated

    When the source last updated this block (UTC).

    Example Jan 14, 2024

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
npatextNpa3 of 3
nxxtextNxx3 of 3
blocktextBlock3 of 3
carriertextCarrier3 of 3
ocntextOcn3 of 3
carrier_typetextCarrier type3 of 3
ilectextIlec3 of 3
rate_centertextRate center3 of 3
regiontextRegion3 of 3
latatextLATA code3 of 3
switchtextSwitch identifier3 of 3
latitudenumberLatitude3 of 3
longitudenumberLongitude3 of 3
updateddate and timeUpdated3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNpaNxxBlockCarrierOcnCarrier typeIlecRate centerLATA codeSwitch identifierRegionLatitudeLongitudeUpdated
1416979ABELL ONTARIO8051ILECBELL ONTARIOToronto888TOROON63DS9ON43.651804-79.382535Jan 14, 2024
2212221AVERIZON NEW YORK, INC.9104ILECVERIZON NEW YORK, INC.New York City Zone 01132NYCMNY42RP1NY40.739362-73.991043Jan 14, 2024
3905272ABELL ONTARIO8051ILECBELL ONTARIOCooksville888CKVLON17DS2ON43.581316-79.614484Jan 14, 2024

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Gives the carrier a block was originally assigned to, not the carrier a number is on today: ported numbers are not reflected.
  • One block is one record; an exchange split into several blocks returns several records. Unassigned exchanges return no record.
  • Only North American (NANP) numbers are covered. Only the first 6 digits (area code and exchange) of each entry are used, and at most 500 prefixes are read per run.
  • Carrier type is shown as ILEC, CLEC, wireless or other as the source labels it, and may be empty for some blocks. Rate centre coordinates are for the rate centre, not for a street address.
  • The source is a volunteer-run site with no published API terms. We keep to one request per second across all runs, so 500 prefixes take about 9 minutes; results are as the source last updated them (see the updated field).
  • Not affiliated with or endorsed by the Local Calling Guide.

Version history

A run uses the live version unless the request names another one with version.