> 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/timeline.md).

# Get the activity timeline

The activity timeline service provides weekly and monthly reports on the number of Stolen Vehicle Locator users, along with detailed statistics on the beacon detections collected by your user community.

{% 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/64d46d5865bc0-get-a-timeline-of-weekly-and-monthly-data-for-the-stolen-vehicle-locator-feature).
{% endhint %}

## GET /drivekit/admin/beacon/timeline

> Get the weekly and monthly activity timeline

```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":{"StolenVehicleLocatorTimelineResponse":{"title":"StolenVehicleLocatorTimelineResponse","type":"object","properties":{"week":{"$ref":"#/components/schemas/StolenVehicleLocatorTimelinePeriodResponse"},"month":{"$ref":"#/components/schemas/StolenVehicleLocatorTimelinePeriodResponse"}}},"StolenVehicleLocatorTimelinePeriodResponse":{"title":"StolenVehicleLocatorTimelinePeriodResponse","type":"object","properties":{"android":{"$ref":"#/components/schemas/StolenVehicleLocatorTimelineItemResponse"},"ios":{"$ref":"#/components/schemas/StolenVehicleLocatorTimelineItemResponse"}}},"StolenVehicleLocatorTimelineItemResponse":{"title":"StolenVehicleLocatorTimelineItemResponse","type":"object","properties":{"activeUsers":{"type":"array","description":"The list of active users who have detected at least one beacon in the given period","items":{"type":"integer"}},"tripRunning":{"type":"array","description":"The number of detection while a trip is being recorded in the given period","items":{"type":"integer"}},"tripNotRunning":{"type":"array","description":"The number of detection while no trip is being recorded in the given period","items":{"type":"integer"}},"stolen":{"type":"array","description":"The number of detection of stolen vehicles in the given period","items":{"type":"integer"}}}},"ErrorResponse":{"title":"ErrorResponse","type":"object","properties":{"message":{"type":"string"},"code":{"type":"integer"},"messageKey":{"type":"string"}}}}},"paths":{"/drivekit/admin/beacon/timeline":{"get":{"summary":"Get the weekly and monthly activity timeline","tags":[],"operationId":"get-drivekit-admin-beacon-timeline","parameters":[{"schema":{"type":"string"},"in":"header","name":"DriveKit-Admin-API-Key","description":"Drivekit Admin API key","required":true}],"responses":{"200":{"description":"Weekly and monthly timeline data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StolenVehicleLocatorTimelineResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## Response

The table below summarizes the list of activity data.

<table><thead><tr><th width="170">Field</th><th width="171.66666666666666">Type</th><th>Description</th></tr></thead><tbody><tr><td>week</td><td><code>object</code></td><td><em>List of weekly activity (see</em> <a data-mention href="#timeline-period-response">#timeline-period-response</a><em>)</em></td></tr><tr><td>month</td><td><code>object</code></td><td><em>List of monthly activity (see</em> <a data-mention href="#timeline-period-response">#timeline-period-response</a><em>)</em></td></tr></tbody></table>

### Timeline Period Response

The table below summarizes the content of the timeline period response object.

<table><thead><tr><th width="170">Field</th><th width="171.66666666666666">Type</th><th>Description</th></tr></thead><tbody><tr><td>android</td><td><code>object</code></td><td><em>List of weekly activity (see</em> <a data-mention href="#timeline-item-response">#timeline-item-response</a><em>)</em></td></tr><tr><td>ios</td><td><code>object</code></td><td><em>List of monthly activity (see</em> <a data-mention href="#timeline-item-response">#timeline-item-response</a><em>)</em></td></tr></tbody></table>

### Timeline Item Response

On both Android and iOS, each period (week or month) is represented by a `TimelineItem` object with the same structure, described in the table below.

<table><thead><tr><th width="149.68359375">Field</th><th width="144.45182291666663">Type</th><th>Description</th></tr></thead><tbody><tr><td>date</td><td><code>array[string]</code></td><td><p>Dates corresponding to the first day of the week or month. </p><p><em>Date format: <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code></em></p></td></tr><tr><td>activeUsers</td><td><code>array[int]</code></td><td>Number of users having reported at least one detection during the period</td></tr><tr><td>tripRunning</td><td><code>array[int]</code></td><td>Number of detections while a trip is being recorded</td></tr><tr><td>tripNotRunning</td><td><code>array[int]</code></td><td>Number of detections while no trip is being recorded</td></tr><tr><td>stolen</td><td><code>array[int]</code></td><td>Number of detections linked to a stolen vehicle report</td></tr></tbody></table>
