# TPS user beacon API request
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of user beacons (Wi-Fi access points and cell towers) scanned by the
client.
**Endpoint URL**: [https://global.skyhook.com/wps2/json/user-beacon](https://global.skyhook.com/wps2/json/user-beacon)
**HTTP method**: POST
**Syntax**
{
"wifiAccessPoints": [...],
"cellTowers": [...],
}Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| :---: | --- | --- |
| `wifiAccessPoints` | – | List of entries corresponding to Wi-Fi
access points and their associated locations. |
| `cellTowers` | – | List of entries corresponding to cell
towers and their associated locations.
The contents of each entry
depend on the type of cell tower: GSM, LTE, UMTS, WCDMA, CDMA,
NB-IoT, NR. |
## Scanned Wi-Fi access points
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of entries corresponding to the Wi-Fi access points scanned by the
client.
**Syntax**
{
"macAddress": "00:0C:41:82:D8:8C",
"ssid": "network",
"frequency": 2484,
"location": {
"lat": 42.351052,
"lon": -71.049292,
"alt": 35
}
Copy to clipboard
**Parameters**
| Parameter | Parameter | Values | Description |
| --- | --- | --- | --- |
| `macAddress` | `macAddress` | – | A string of hexadecimal characters representing a 6‑byte MAC
address.
Pairs of hexadecimal characters are separated by
colon (:). |
| `ssid` | `ssid` | – | (Optional) Service Set Identifier (SSID) of the access
point. |
| `frequency` | `frequency` | – | (Optional) Frequency of scanned Wi-Fi access point, in
MHz. |
| `location` | `location` | – | Location of the Wi-Fi access point. |
| | `lat` | – | Latitude expressed in decimal degrees using floating point
values, using the WGS84 datum. |
| | `lon` | – | Longitude expressed in decimal degrees using floating point
values, using the WGS84 datum. |
| | `alt` | – | (Optional) Altitude of the Wi-Fi access point, in meters. |
| | | | |
| | | | |
## Scanned cell towers
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
The following syntax shows the fields that each cell tower can have in general, and
each field may have a different meaning depending on the `radioType`.
Each cell tower must contain either a `centroid` or an
`antenna` location element, which corresponds to the location of
the cell tower.
**Syntax**
{
"radioType": "gsm",
"mobileCountryCode": 722,
"mobileNetworkCode": 310,
"locationAreaCode": 8022,
"cellId": 32508,
"neighborId": 230,
"channel": 40,
"band": "GSM 480",
"coverage": 35,
"centroid": {
"lat": 42.351052,
"lon": -71.049292,
"alt": 35
},
"antenna": {
"lat": 42.358452,
"lon": -71.044692,
"alt": 25,
"azimuth": 35.5,
"vertTilt": 8.9,
"beamWidth": 5.3,
"vendor": "skyhook",
"repeaterId": 1234
}
}
Copy to clipboard
**Parameters**
Each `centroid` element
can contain the following fields.
| Parameter | Values | Description |
| --- | --- | --- |
| `lat` | – | Latitude of the centroid expressed in decimal degrees using
floating point values, using the WGS84 datum. |
| `lon` | – | Longitude of the centroid expressed in decimal degrees using
floating point values, using the WGS84 datum. |
| `alt` | – | (Optional) Altitude of the cell tower location, in
meters. |
Each `antenna` element can contain the following
fields.
| Parameter | Values | Description |
| --- | --- | --- |
| `lat` | – | Latitude of the centroid expressed in decimal degrees using
floating point values, using the WGS84 datum. |
| `lon` | – | Longitude of the centroid expressed in decimal degrees using
floating point values, using the WGS84 datum. |
| `alt` | – | (Optional) Altitude of the cell tower location, in
meters. |
| `azimuth` | Range: 0° to 360° | (Optional) Horizontal orientation of the antenna. |
| `vertTilt` | Range: 0° to 360° | (Optional) Vertical tilt of the antenna. |
| `beamWidth` | Range: 0° to 360° | (Optional) Beam width of the antenna. |
| `vendor` | – | (Optional) Vendor of the antenna; string. |
| `repeaterId` | – | (Optional) ID of the antenna repeater; integer. |
An additional optional field `antennaPos` can be submitted to
indicate that the location is an antenna-based location. The
`antennaPos` element can contain the following fields.
Note: If `antennaPos` isn't supplied, the location is
considered as centroid-based location.
| Parameter | Values | Description |
| --- | --- | --- |
| `azimuth` | Range: 0° to 360° | (Optional) Horizontal orientation of the antenna. |
| `vertTilt` | Range: 0° to 90° | (Optional) Vertical tilt of the antenna. |
| `beamWidth` | Range: 0° to 360° | (Optional) Beam width of the antenna. |
| `vendor` | – | (Optional) Vendor of the antenna; string. |
| `repeaterId` | – | (Optional) ID of the antenna repeater; integer. |
### GSM cell tower
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of entries corresponding to the GSM cell towers scanned by the
client.
**Syntax**
{
"radioType": "gsm",
"mobileCountryCode": 722,
"mobileNetworkCode": 310,
"locationAreaCode": 8022,
"cellId": 32508,
"neighborId": 230,
"channel": 40,
"band": "GSM 480",
"coverage": 1000
}
Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| --- | --- | --- |
| `radioType` | – | Type of the cell tower. |
| `mobileCountryCode` | – | Indicates the mobile country code. |
| `mobileNetworkCode` | – | Indicates the mobile network code. |
| `locationAreaCode` | – | Indicates the local area code. |
| `cellId` | – | Indicates the cell ID. |
| `neighborId` | Range: 0 to 63 | (Optional) GSM BSIC composed of a 3‑bit network color code (NCC)
and a 3‑bit base station color code (BCC). |
| `channel` | – | (Optional) 16‑bit GSM channel number (ARFCN). |
| `band` | GSM 480 | (Optional) GSM band. |
| `coverage` | – | Radius of cell tower coverage, in meters. |
### UMTS/WCDMA cell tower
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of entries corresponding to the UMTS/WCDMA cell towers scanned by the
client.
**Syntax**
{
"radioType": "UMTS",
"mobileCountryCode": 730,
"mobileNetworkCode": 2,
"locationAreaCode": 63010,
"cellId": 132105,
"neighborId": 230,
"channel": 40,
"coverage": 1000
}
Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| --- | --- | --- |
| `radioType` | UMTS or WCDMA | Type of the cell tower. |
| `mobileCountryCode` | – | Indicates the mobile country code. |
| `mobileNetworkCode` | – | Indicates the mobile network code. |
| `locationAreaCode` | – | (Optional) Indicates the local area code. |
| `cellId` | – | `UMTS UC_ID` (combination of
`RNDid` and `Cell_ID`) with a
total of 28 bits as per 3GPP Technical Specification 25.401.
Note: Populating cell ID with 16 bits may
result in incorrect tower information. |
| `neighborId` | Range: 0 to 511 | (Optional) UMTS local cell ID (PSC). |
| `channel` | – | (Optional) 16‑bit UMTS channel number (UARFCN). |
| `coverage` | – | Radius of cell tower coverage, in meters. |
### LTE cell tower
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of entries corresponding to the LTE cell towers scanned by the
client.
**Syntax**
{
"radioType": "lte",
"mobileCountryCode": 730,
"mobileNetworkCode": 2,
"locationAreaCode": 63010,
"cellId": 132105,
"neighborId": 230,
"channel": 40,
"coverage": 1000
}
Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| --- | --- | --- |
| `radioType` | – | Type of the cell tower. |
| `mobileCountryCode` | – | Indicates the mobile country code. |
| `mobileNetworkCode` | – | Indicates the mobile network code. |
| `locationAreaCode` | – | (Optional) Indicates the LTE tracking area code (TAC). |
| `cellId` | – | LTE E-CGI (EUCID); 28 bits. |
| `neighborId` | Range: 0 to 503 | (Optional) ID of LTE local cell (PCI). |
| `channel` | – | (Optional) 18‑bit 3GPP channel number (EARFCN). |
| `coverage` | – | Radius of cell tower coverage, in meters. |
### CDMA cell tower
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of entries corresponding to the CDMA cell towers scanned by the
client.
**Syntax**
{
"radioType": "cdma",
"mobileNetworkCode": 2,
"locationAreaCode": 63010,
"cellId": 132105,
"neighborId": 230,
"channel": 40,
"band": "CDMA 1800",
"coverage": 1000
}
Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| --- | --- | --- |
| `radioType` | – | Type of the cell tower. |
| `mobileNetworkCode` | – | Indicates the CDMA system identifier (SID). |
| `locationAreaCode` | – | Indicates the CDMA network identifier (NID). |
| `cellId` | – | Indicates the CDMA base system identifier (BSID). |
| `neighborId` | Range: 0 to 511 | (Optional) ID of CDMA local cell (PNCODE). |
| `channel` | – | (Optional) 16‑bit CDMA channel number. |
| `band` | – | (Optional) CDMA band; string. |
| `coverage` | – | Radius of cell tower coverage, in meters. |
### NB-IoT cell tower
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of entries corresponding to the NB-IoT cell towers scanned by the
client.
**Syntax**
{
"radioType": "nbiot",
"mobileCountryCode": 730,
"mobileNetworkCode": 2,
"locationAreaCode": 63010,
"cellId": 132105895657897,
"neighborId": 230,
"channel": 40,
"coverage": 1000
}
Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| --- | --- | --- |
| `radioType` | – | Type of the cell tower. |
| `mobileCountryCode` | – | Indicates the mobile country code. |
| `mobileNetworkCode` | – | Indicates the mobile network code. |
| `locationAreaCode` | – | (Optional) Indicates the NB-IoT tracking area code (TAC). |
| `cellId` | – | NB-IoT cell ID; 28 bits. |
| `neighborId` | Range: 0 to 503 | (Optional) ID of NB-IoT local cell (NCID). |
| `channel` | – | (Optional) 18‑bit 3GPP channel number (EARFCN). |
| `coverage` | – | Radius of cell tower coverage, in meters. |
### NR tower (5G, New Radio)
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of entries corresponding to the 5G NR cell towers scanned by the
client.
**Syntax**
{
"radioType": "nr",
"mobileCountryCode": 730,
"mobileNetworkCode": 2,
"locationAreaCode": 63010,
"cellId": 132105,
"neighborId": 230,
"channel": 40,
"coverage": 1000
}
Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| --- | --- | --- |
| `radioType` | – | Type of the cell tower. |
| `mobileCountryCode` | – | Indicates the mobile country code. |
| `mobileNetworkCode` | – | Indicates the mobile network code. |
| `locationAreaCode` | – | (Optional) Indicates the 5G tracking area code (TAC). |
| `cellId` | – | 5G NR cell ID (NCI); 36 bits. |
| `neighborId` | Range: 0 to 1007 | (Optional) 5G local cell ID (PCI). |
| `channel` | – | (Optional) 24‑bit 3GPP channel number (NRARFCN). |
| `coverage` | – | Radius of cell tower coverage, in meters. |
## Scanned BLE beacons
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
The scanned Bluetooth low energy (BLE) beacon group allows the input of observed BLE
beacons. Multiple BLE beacons and multiple types of BLE beacons are allowed as
input.
BLE beacons can be submitted with the BLE type as a top-level element:
{
"wifiAccessPoints": [ .. ],
"ibcnBleBeacons": [ .. ],
"eddyStoneBleBeacons": [ .. ]
}Copy to clipboard
### iBeacon BLE
Source: [https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html](https://docs.qualcomm.com/doc/80-42223-1/topic/user_beacon_api_request.html)
Provides a list of iBeacon BLE beacons scanned by the client.
**Syntax**
"ibcnBleBeacons": [
{
"uuid": "f7826da6-4fa2-4e98-8024-bc5b71eba31a",
"major": 33834,
"minor": 28699,
"venueId": 144,
"floorId": 166,
"location": {
"lat": 42.351052,
"lon": -71.049292,
"alt": 35
},
"altRef": "wgs84",
}
]Copy to clipboard
**Parameters**
| Parameter | Values | Description |
| --- | --- | --- |
| `uuid` | – | Universally Unique Identifier (ID1).
Comprises 32 hexadecimal digits, split into 5 groups, separated
by hyphens; 16 bytes.
Format: 8-4-4-4-12 |
| `major` | Range: 0 to 65535 | Additional identifying number (ID2) assigned to iBeacon; unsigned
integer. |
| `minor` | Range: 0 to 65535 | Additional identifying number (ID3) assigned to iBeacon; unsigned
integer. |
| `venueId` | Default: 0 | Unique identifier of the venue; integer.
The default is 0 if `venueId` isn't specified.
To determine the value of `venueId`, see [TPS Indoor APIs](https://docs.qualcomm.com/doc/80-42204-2/). |
| `floorId` | Default: 0 | Unique identifier of the floor; integer.
Specify `floorId` only if `venueId`
is specified. The default is 0 if `venueId` isn't
specified.
To determine the value of `floorId`, see [TPS Indoor APIs](https://docs.qualcomm.com/doc/80-42204-2/). |
| `location` | – | Location of the BLE beacon access point.
A location has the following fields:
lat: Latitude, WGS84 datum representation;lon: Longitude, WGS84 datum representation;alt: (Optional) Altitude, in meters, of thelat: Latitude, WGS84 datum representation;lon: Longitude, WGS84 datum representation;alt: (Optional) Altitude, in meters, of the