Introduction
A TAC or Type Allocation Code is an 8-digit numeric code that is used to identify mobile device models. It is part of the IMEI number and is generally only available to code running with sufficient privileges on the user's device.
See the Specification for more technical details.
TAC lookup is currently available in two forms:
- Requests to the 51Degrees cloud service, fully integrated into the Pipeline API.
- Using the 'TAC CSV' data file to create a local lookup solution based on SQL or some other data query mechanism.
Cloud service
Requests to the cloud service can include a 'TAC' query parameter. As long as the Resource Key includes one or more 'hardware device' properties and the 'profiles', and 'TAC' property, the cloud service will return a result set with the details of any devices that match the supplied TAC.
NOTE: The 'profiles' and 'TAC' properties ***MUST** be selected for TAC lookup to function.
For language specific details, see these examples.
Local lookup
Currently, the recommended solution for a local lookup is to use the TAC CSV file. This is a data file that is available from the 51Degrees Distributor service (assuming you have a valid License Key that includes access to this product).
This data file includes all values for all properties and can be used to populate a database or similar. The database can then be used to perform indexed lookups on given property values, such as TAC.