> For the complete documentation index, see [llms.txt](https://docs.drivequant.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.drivequant.com/backend/stolen-vehicle/get-all-locations-for-a-specific-beacon.md). Agents can also search and read this documentation through its [MCP server](https://docs.drivequant.com/~gitbook/mcp).

# Get all locations for a specific beacon

This service can be used to retrieve all known locations of an iBeacon device registered to your account, whether or not it is linked to an active theft report.

{% hint style="info" %}
If you have your **admin API key**, you can try the API via this [**link**](https://drivequant.stoplight.io/docs/drivequant-public/bec91d134e331-get-all-known-locations-for-a-given-beacon).
{% endhint %}

{% hint style="warning" %}
This service is rate-limited to **1 request per second** per admin API key. If you go over this limit, the API returns an HTTP `429 Too Many Requests` error. Wait at least one second before sending the request again.
{% endhint %}

## GET /drivekit/admin/beacon/locations

> Get all locations for a specific beacon

```json
{"openapi":"3.0.3","info":{"title":"DKAdminStolenVehicleServiceV3","version":"1.0"},"servers":[{"url":"https://service.drivequant.com/v3","description":"Prod"}],"security":[{"api-key":[]}],"components":{"securitySchemes":{"api-key":{"name":"DriveKit-Admin-API-Key","type":"apiKey","in":"header"}},"schemas":{"BeaconLocationResponse":{"title":"BeaconLocationResponse","type":"object","properties":{"locations":{"type":"array","items":{"$ref":"#/components/schemas/LocationResponse"}},"beacon":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","description":"The unique identifier of the beacon"},"major":{"type":"integer","minimum":0,"maximum":65535,"description":"The major value of the iBeacon"},"minor":{"type":"integer","minimum":0,"maximum":65535,"description":"The minor value of the iBeacon"}}}}},"LocationResponse":{"title":"LocationResponse","type":"object","properties":{"date":{"type":"string","format":"date-time","description":"The date and time when the beacon was detected, in ISO 8601 format"},"locationDate":{"type":"string","format":"date-time","description":"The date and time when the location was recorded, in ISO 8601 format"},"latitude":{"type":"number","format":"float","description":"The latitude of the location"},"longitude":{"type":"number","format":"float","description":"The longitude of the location"},"accuracy":{"type":"number","format":"float","description":"The accuracy of the location data in meters"}}},"ErrorResponse":{"title":"ErrorResponse","type":"object","properties":{"message":{"type":"string"},"code":{"type":"integer"},"messageKey":{"type":"string"}}}}},"paths":{"/drivekit/admin/beacon/locations":{"get":{"summary":"Get all locations for a specific beacon","tags":[],"operationId":"get-drivekit-admin-beacon-locations","parameters":[{"schema":{"type":"string"},"in":"header","name":"DriveKit-Admin-API-Key","description":"Drivekit Admin API key","required":true},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"uuid","description":"The uuid of the iBeacon","required":true},{"schema":{"type":"integer","minimum":0,"maximum":65535},"in":"query","name":"major","description":"The major value of the iBeacon","required":true},{"schema":{"type":"integer","minimum":0,"maximum":65535},"in":"query","name":"minor","description":"The minor value of the iBeacon","required":true}],"responses":{"200":{"description":"Successful response with a list of locations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeaconLocationResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## Request parameters

The table below summarizes the request query parameters.

<table><thead><tr><th width="150.00390625">Parameter</th><th width="149.6484375">Format</th><th>Description</th></tr></thead><tbody><tr><td>uuid</td><td><code>string</code></td><td>iBeacon UUID (required)</td></tr><tr><td>major</td><td><code>integer</code></td><td>iBeacon major identifier (required)</td></tr><tr><td>minor</td><td><code>integer</code></td><td>iBeacon minor identifier (required)</td></tr></tbody></table>

## Response body

The table below summarizes the content of the response body.

<table><thead><tr><th width="242.6484375">Field</th><th width="99.515625">Format</th><th>Description</th></tr></thead><tbody><tr><td>locations</td><td><code>array</code></td><td><p>List of all recorded locations for the iBeacon.</p><p><em>See</em> <a data-mention href="#location">#location</a></p></td></tr><tr><td>beacon</td><td><code>object</code></td><td>Beacon information.<br><em>See</em> <a data-mention href="#beacon">#beacon</a></td></tr></tbody></table>

### Location

The table below summarizes the content of the `Location` object.

<table><thead><tr><th width="150.00390625">Field</th><th width="149.6484375">Format</th><th>Description</th></tr></thead><tbody><tr><td>date</td><td><code>string</code></td><td>Date at which the beacon was detected.<br><em>Date format: <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code></em></td></tr><tr><td>locationDate</td><td><code>string</code></td><td>Date at which the location of the phone was obtained.<br><em>Date format: <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code></em></td></tr><tr><td>latitude</td><td><code>double</code></td><td>Location latitude (in degrees)</td></tr><tr><td>longitude</td><td><code>double</code></td><td>Location longitude (in degrees)</td></tr><tr><td>accuracy</td><td><code>double</code></td><td>Accuracy of the location (in m)</td></tr></tbody></table>

### Beacon

The table below summarizes the content of the `Beacon` object.

<table><thead><tr><th width="150.00390625">Field</th><th width="149.6484375">Format</th><th>Description</th></tr></thead><tbody><tr><td>uuid</td><td><code>string</code></td><td>iBeacon UUID</td></tr><tr><td>major</td><td><code>integer</code></td><td>iBeacon major identifier</td></tr><tr><td>minor</td><td><code>integer</code></td><td>iBeacon minor identifier</td></tr></tbody></table>
