\r\n

51Degrees API Documentation  4.2Newer Version 4.4

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.

TAC lookup is currently available in two forms:

  1. Requests to the 51Degrees cloud service, fully integrated into the Pipeline API.
  2. 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 the example.

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.