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.
- 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.
pip install hicelltek-tacRequest 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"])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 (00or02to09) 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.
- IMEI & TAC API Documentation & Pricing: https://hicelltek.com/en/imei-api/
- Free Web TAC Lookup: https://hicelltek.com/en/tac-lookup/
- Free Online 3GPP RRC & NAS Decoder (2G to 5G Rel-19): https://hicelltek.com/en/decoder/
- Android 2G/3G/4G/5G Layer 3 Drive Test & Post-Processing Suite: https://hicelltek.com/en/drive-test-tool-android/
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).