---
title: "Stream site realtime changes REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Stream site realtime changes, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesidrealtime/"
---

# Stream site realtime changes REST API

GET

/api/sites/{id}/realtime

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realtime';
const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request GET \
  --url http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realtime \
  --cookie hk_token=<hk_token>
```

-

Streams privacy-safe site-scoped analytics invalidation events using server-sent events. Requires site.view.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Responses

### 200

Server-sent event stream with analytics.changed and analytics.resync events

[Previous Record AI fetch](https://hitkeep.com/api/operations/apisitesidingestai-fetch/)[Next Update retention policy](https://hitkeep.com/api/operations/apisitesidretention/)
