---
title: "Api analytics grouped"
canonical: "https://docs.cuesystem.com/space/TAM/908230738/Api%20analytics%20grouped"
format: markdown
---
> ⚠️ In the development roadmap, modifications to events and resources are planned for the next version, which will cause this endpoint to be **DEPRECATED IN THE NEXT VERSION**.
> ⚠️ 
> ⚠️ Please **contact technical support** via the portal if you wish to continue using this or any other endpoint, we will be happy to help you get analytics data.

## Request /analytics/json/2

- **GET URL**: copy url from CUE Admin
- Parameters
  - **token**: Required autorization token from CUE Admin
  - **startDateTime** and **endDateTime**: Required. The response will return events that have a realEnd in the defined time range.
  - **pageSize**: Each request returns a collection of data of one or more events in the response. You can optionally specify this parameter to set the maximum number of events in one page of response.

### Example

```
GET https://apiDomain/analytics/json/2?token=1699ae06-93fa-46dc-a34e-ff86d5f6d938&startDateTime=2023-12-01T00:00:00Z&endDateTime=2023-12-30T00:00:00Z&pageSize=10
```

## Response specification

> ℹ️ **Value from calendar server: **This means that the value is as we get it from the calendar server.
> ℹ️ 
> ℹ️ For Microsoft365 explore their [documentation](https://learn.microsoft.com/en-us/graph/api/calendar-list-events).

- **nextLink**: If this parameter is returned, there are additional pages of data to be retrieved in the session.
- **remoteResourceEvent**: Each combination of resource and event is one item, one event can be in the array several times times.
  - **iCalUid**: Value iCalUid from Microsoft365
  - **createdDateTime**: Value createdDateTime from Microsoft365
  - **lastModifiedDateTime**: Value lastModifiedDateTime from Microsoft365
  - **subject**: Value subject from Microsoft365
  - **importance**: Value importance from Microsoft365
  - **sensitivity**: Value sensitivity from Microsoft365
  - **isAllDay**: Value isAllDay from Microsoft365
  - **isCancelled**: Value isCancelled from Microsoft365
  - **showAs**: Value showAs from Microsoft365
  - **onlineMeetingProvider**: Value onlineMeetingProvider from Microsoft365
  - **recurrence**: Value recurrence from Microsoft365
  - **response status:**
  - **realStart**: The real date and time of the event start
  - **realEnd**: The real date and time of the event end
  - **plannedStart**: The planned date and time of the event start
  - **plannedEnd**: The planned date and time of the event end
  - **organizerName**: Value organizer.emailAddress.name from Microsoft365
  - **organizerEmail**: Value organizer.emailAddress.address from Microsoft365
  - **organizerResponseStatus:**
  - **serviceAccountName:**
  - **serviceAccountEmail:**
  - **organizerResponseStatus:**
  - **serviceAccountEventId**
  - **seriesMasterId**
  - **synchronisedWithCalendarServer**
  - **lastUpdatedFromCalendarServer**
  - **actions**
    - **id**
    - **iCalUid**
    - **action**
    - **doneBy**
    - **created**
    - **serialNumber**
    - **magicName**
    - **firmwareVersion**
    - **resourceEmail**
    - **eventUpdatedFromCalendarServer**
  - **attendees**
  - **resources**
    - **id**
    - **iCalUid**
    - **name**
    - **email**
    - **attendeeStatusResponse**
    - **resourceStatusResponse**
  - **sensorAnalytics**
    - **id**
    - **iCalUid**
    - **sensorAnalytics**
    - **created**
    - **serialNumber**
    - **magicName**
    - **firmwareVersion**

### Example

```
{
    "nextLink": "",
    "remoteResourceEvent": [
        {
            "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::3475f6e0-ec93-43d5-9a12-d0f04dfeb0f4",
            "createdDateTime": "2024-05-09T11:14:41.7131187+00:00",
            "lastModifiedDateTime": "2024-05-09T11:14:41.7131187+00:00",
            "subject": "Reservation in Parking 042 - Shopping mall",
            "importance": null,
            "sensitivity": null,
            "isAllDay": false,
            "isCancelled": true,
            "showAs": "",
            "onlineMeetingProvider": null,
            "recurrence": null,
            "responseStatus": "Cancelled",
            "realStart": "2024-06-25T13:00:00+00:00",
            "realEnd": "2024-06-25T21:00:00+00:00",
            "plannedStart": "2024-06-25T13:00:00+00:00",
            "plannedEnd": "2024-06-25T21:00:00+00:00",
            "organizerName": null,
            "organizerEmail": null,
            "organizerResponseStatus": null,
            "serviceAccountName": null,
            "serviceAccountEmail": "",
            "serviceAccountResponseStatus": null,
            "serviceAccountEventId": "b7b8a1b5-3fd7-4218-9674-43447bd879cc",
            "seriesMasterId": "",
            "synchronisedWithCalendarServer": true,
            "lastUpdatedFromCalendarServer": "2024-06-11T14:00:34.3484391+00:00",
            "actions": [
                {
                    "id": "833bed45-fea5-4193-8079-3f8aaf0a2574",
                    "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::3475f6e0-ec93-43d5-9a12-d0f04dfeb0f4",
                    "action": "modify",
                    "doneBy": "api",
                    "created": "2024-06-11T14:00:25.8921231+00:00",
                    "serialNumber": null,
                    "magicName": null,
                    "firmwareVersion": null,
                    "resourceEmail": "D_CON_RESOURCE_244@CONTOSO.COM",
                    "eventUpdatedFromCalendarServer": false
                },
                {
                    "id": "2d92eae8-4a0f-42b0-bdf4-b9d85b859766",
                    "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::3475f6e0-ec93-43d5-9a12-d0f04dfeb0f4",
                    "action": "delete",
                    "doneBy": "assist",
                    "created": "2024-06-11T13:59:56.5925985+00:00",
                    "serialNumber": null,
                    "magicName": null,
                    "firmwareVersion": null,
                    "resourceEmail": "d_con_resource_244",
                    "eventUpdatedFromCalendarServer": true
                },
                {
                    "id": "b0472e72-96a0-4d1e-a487-748da40afce1",
                    "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::3475f6e0-ec93-43d5-9a12-d0f04dfeb0f4",
                    "action": "delete",
                    "doneBy": "assist",
                    "created": "2024-06-11T13:57:22.2319947+00:00",
                    "serialNumber": null,
                    "magicName": null,
                    "firmwareVersion": null,
                    "resourceEmail": "d_con_resource_244",
                    "eventUpdatedFromCalendarServer": true
                }
            ],
            "attendees": [],
            "resources": [
                {
                    "id": "c417c341-8141-4dc8-ab4e-266dd983cd06",
                    "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::3475f6e0-ec93-43d5-9a12-d0f04dfeb0f4",
                    "name": "Parking 042 - Shopping mall",
                    "email": "D_CON_RESOURCE_244@CONTOSO.COM",
                    "attendeeStatusResponse": "accepted",
                    "resourceStatusResponse": "Cancelled"
                }
            ],
            "sensorAnalytics": []
        },
```