Skip to content

About

Official thin Python client for the HiCellTek IMEI & TAC Intelligence REST API (4G/5G bands, CA combos, eSIM, VoLTE & 2G/3G sunset readiness).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

hicelltek-tac · Python Client for the HiCellTek IMEI & TAC Intelligence API

DOI

Zero-dependency, typed Python client for the HiCellTek IMEI & TAC Intelligence REST API (https://imei.hicelltek.com/api).

Built for MVNOs, Travel eSIM platforms, Mobile Network Operators, M2M/IoT fleet operators, MDM tools, and B2B device marketplaces.

Key Capabilities

  • Local GSMA / 3GPP Input Validation (Zero Network Call): Validates 8-digit TACs and verifies 15-digit IMEI Luhn check digits (3GPP TS 23.003) locally before sending HTTP requests.
  • Single & Batch TAC Lookup (/v1/tac/lookup, /v1/tac/batch): Resolves brand, model, chipset, device type (smartphone, iot_module, pos_terminal, automotive_tcu, cpe_router), 4G LTE / 5G NR bands, Carrier Aggregation combinations, and GSMA TS.06 RBI reason codes (not_in_database, test_me_rbi, unallocated_rbi).
  • Travel eSIM, VoLTE & 2G/3G Sunset Readiness (/v1/readiness/{imei}/{country}): Evaluates eSIM capability, TAC-level regional hardware variants (EU, US, CN, JP, KR), VoLTE provenance (volte_source), VoLTE Emergency (112/911/000), VoLTE Roaming (S8HR/LBO), and IoT RAT taxonomy (LTE-M, NB-IoT, Cat-1bis, 5G RedCap, IoT-NTN) across 164 countries and 582 operators.
  • Zero External Dependencies: Uses only the Python 3.9+ standard library (urllib.request, json). Runs cleanly in AWS Lambda, Scaleway Functions, Docker slim images, and air-gapped CI pipelines.

Installation

pip install hicelltek-tac

Quick Start

Request a 14-day B2B evaluation key (work email required) at https://hicelltek.com/en/imei-api/ and export it as HICELLTEK_API_KEY:

from hicelltek_tac import HiCellTekTacClient, is_valid_imei_luhn, extract_tac

# 1. Offline 3GPP TS 23.003 Luhn check & TAC extraction (zero quota used)
assert is_valid_imei_luhn("354071151234568") is False
tac = extract_tac("35407115")  # -> "35407115"

# 2. Live API lookup (reads HICELLTEK_API_KEY from environment by default)
client = HiCellTekTacClient()

device = client.lookup("35407115")
if device["found"]:
    print(device["brand"]["name"], device["model"], device.get("chipset"))

# 3. Travel eSIM & 2G/3G Sunset Readiness in France (Pro / Business tier)
readiness = client.check_readiness("35407115", country="FR")
print(readiness["readiness"]["overall_status"], readiness["readiness"]["warnings"])

Error Handling & Anti-Retry Discipline

When a TAC is not found (HTTP 404), the client returns the structured TacNotFoundResponse dictionary (found: False, valid_tac, reason) instead of raising an exception, so your application can inspect reason:

  • unallocated_rbi: Reporting Body Identifier never allocated by the GSMA. Never retry.
  • test_me_rbi: 3GPP Test ME prefix (00 or 02 to 09) reserved for conformance/lab equipment.
  • not_in_database: Valid GSMA RBI prefix currently absent from the catalogue.

Authentication (401), plan entitlement (403), validation (422), and rate-limit (429) errors raise HiCellTekApiError with .status_code and .payload.

Related Telecom Tools by HiCellTek

Acceptable Use & Legal Notice

This client code is licensed under MIT, while all API responses and catalogue records remain strictly governed by the HiCellTek API Terms of Service (B2B internal operational use only; TAC enumeration, scraping, public checker exposure, and redistribution are strictly prohibited; TAC lookup is not a stolen-device or carrier blacklist registry).

About

Official thin Python client for the HiCellTek IMEI & TAC Intelligence REST API (4G/5G bands, CA combos, eSIM, VoLTE & 2G/3G sunset readiness).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages