Skip to content

Latest commit

 

History

History
127 lines (82 loc) · 7.91 KB

File metadata and controls

127 lines (82 loc) · 7.91 KB

IP to Mobile Carrier

Detect the carrier's IP address and retrieve mobile carrier information (carrier, MCC, MNC).

Database Schema & Description

[data updated as of January, 2025]

Field Name Example Data Type Description
network 90.50.223.0/24 TEXT CIDR or single IP address of the IP address block
name Orange TEXT Name of the mobile carrier organization
country FR TEXT ISO 3166 country code of the IP addresses
mcc 208 INTEGER Mobile Country Code (MCC) of the carrier
mnc 01 INTEGER Mobile Network Code (MNC) of the carrier

Samples

Alternate Database Schema: standard_carrier

The standard_carrier data download is structured based on IP ranges (start_ip and end_ip) and includes the join_key column. Our default data downloads has been updated (January, 2025) to use the network-based schema which also does not include the join_key column. However, we will continue supporting the original IP range-based schema for existing customers, with no plans for deprecation. While the underlying data remains the same, the difference lies only in the schema.

Field Name Example Data Type Description
start_ip 5.208.203.0 TEXT Starting IP address of an IP address range
end_ip 5.208.203.255 TEXT Ending IP address of an IP address range
join_key 5.208.0.0 TEXT Special variable to facilitate database join operation
name Mobile Communication Company of Iran PLC TEXT Name of the mobile carrier
country IR TEXT ISO 3166 country code of the IP addresses
mcc 432 INTEGER Mobile Country Code (MCC) of the carrier
mnc 11 INTEGER Mobile Network Code (MNC) of the carrier

Includes IP range columns (start_ip and end_ip) instead of a network or CIDR based column (network). join_key represents the Class C network each IP address is part of, allowing you to filter the result set significantly before joining. Learn more about join_key here.

Samples

Downloadable File Formats

  • CSV: Plain text file format where data is organized into rows, with individual values separated by commas.
  • JSON: More specifically, NDJSON (Newline Delimited JSON), a text file format where each line is a separated in valid JSON object.
  • MMDB: Specialized binary database for efficient and fast IP lookups.
  • Parquet: A columnar storage file format optimized for efficient data querying.

Please refer to "How to choose the best file format for your IPinfo database?" article to select the best format possible for your use case.

The usage of the IP data downloads relies on the software or application of the data. Check out our documentation, community, and our integrations pages to find the best path forward.

Filename references:

File Format Filename / Slug Terminal Command
CSV ipinfo_carrier.csv.gz curl -L https://ipinfo.io/data/ipinfo_carrier.csv.gz?token=$YOUR_TOKEN -o ipinfo_carrier.csv.gz
MMDB ipinfo_carrier.mmdb curl -L https://ipinfo.io/data/ipinfo_carrier.mmdb?token=$YOUR_TOKEN -o ipinfo_carrier.mmdb
JSON ipinfo_carrier.json.gz curl -L https://ipinfo.io/data/ipinfo_carrier.json.gz?token=$YOUR_TOKEN -o ipinfo_carrier.json.gz
Parquet ipinfo_carrier.parquet curl -L https://ipinfo.io/data/ipinfo_carrier.parquet?token=$YOUR_TOKEN -o ipinfo_carrier.parquet

API Response

As well as the database product, IPinfo also provides a robust API service. Please visit the IPinfo Documentation portal to learn more. The Carrier API service is available as part of our Business Tier plan.

API Query:

$ curl ipinfo.io/$IP_ADDRESS/carrier?token=TOKEN

Reponse:

{
    "name": "Algar Telecom",
    "mcc": "724",
    "mnc": "32"
}

mobile carrier API response.png

Guides, Resources & Links

Links

🔗 IP to Mobile Carrier Database Page

🔗 IP to Mobile Carrier Data Downloads Documentation

🔗 IP to Mobile Carrier API Page

🔗 Carrier Information Data Type Documentation

If you have any questions about using our data, feel free to ask us about it in the IPinfo Community.

Articles & Guides


Interested in more?

Currently, we are limiting the sample datasets to only 100 rows. If you would like to request a larger sample or would like to get a quote on the database products, feel free to reach to us.

Follow us on Twitter and LinkedIn to learn more about IP Address data and it’s fascinating potential.

About IPinfo

Founded in 2013, IPinfo prides itself on being the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier, VPN detection, hosted domains, and IP type data sets. Our API handles over 40 billion requests a month for 100,000 businesses and developers.

image