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

# Stream shared realtime changes REST API

GET

/api/share/{token}/sites/{id}/realtime

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/share/example/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realtime';
const options = {method: 'GET'};

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/share/example/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/realtime
```

-

Streams privacy-safe site-scoped analytics invalidation events through a read-only share token using server-sent events.

## Parameters

### Path Parameters

**token**

required

string

**id**

required

string format: uuid

## Responses

### 200

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

[Previous Export shared QR takeout](https://hitkeep.com/api/operations/apisharetokensitesidqr-codesqridtakeout/)[Next Shared site stats](https://hitkeep.com/api/operations/apisharetokensitesidstats/)
