---
title: Fetch day-wise analytics data for your livestreams
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/python)

[Realtime Kit](https://developers.cloudflare.com/api/python/resources/realtime%5Fkit)

[Livestreams](https://developers.cloudflare.com/api/python/resources/realtime%5Fkit/subresources/livestreams)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Fetch day-wise analytics data for your livestreams

realtime\_kit.livestreams.get\_livestream\_analytics\_daywise(strapp\_id, LivestreamGetLivestreamAnalyticsDaywiseParams\*\*kwargs)  \-> [LivestreamGetLivestreamAnalyticsDaywiseResponse](https://developers.cloudflare.com/api/python/resources/realtime%5Fkit#%28resource%29%20realtime%5Fkit.livestreams%20%3E%20%28model%29%20livestream%5Fget%5Flivestream%5Fanalytics%5Fdaywise%5Fresponse%20%3E%20%28schema%29)

GET/accounts/{account\_id}/realtime/kit/{app\_id}/analytics/livestreams/daywise

Returns day-wise livestream analytics for the specified time range.

##### Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

**Example:**`Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY`

##### Accepted Permissions (at least one required)

`Realtime Admin` `Realtime`

##### ParametersExpand Collapse 

account\_id: str

The account identifier tag.

maxLength32

app\_id: str

The app identifier tag.

maxLength32

end\_time: Optional\[int\]

Specify the end time as a Unix timestamp in seconds to access the livestream analytics.

formatint64

filters: Optional\[str\]

Optional filters for livestream analytics.

start\_time: Optional\[int\]

Specify the start time as a Unix timestamp in seconds to access the livestream analytics.

formatint64

##### ReturnsExpand Collapse 

class LivestreamGetLivestreamAnalyticsDaywiseResponse: …

data: Optional\[List\[Data\]\]

count: Optional\[int\]

Count of total livestream sessions.

date: Optional\[str\]

Analytics date.

total\_ingest\_seconds: Optional\[int\]

Total time duration for which the input was given or the meeting was streamed.

total\_viewer\_seconds: Optional\[int\]

Total view time for which the viewers watched the stream.

success: Optional\[bool\]

### Fetch day-wise analytics data for your livestreams

Python

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
response = client.realtime_kit.livestreams.get_livestream_analytics_daywise(
    app_id="app_id",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
print(response.data)
```

200 example

```
{
  "data": [
    {
      "count": 4,
      "date": "2023-07-15T00:00:00Z",
      "total_ingest_seconds": 531,
      "total_viewer_seconds": 116
    }
  ],
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "data": [
    {
      "count": 4,
      "date": "2023-07-15T00:00:00Z",
      "total_ingest_seconds": 531,
      "total_viewer_seconds": 116
    }
  ],
  "success": true
}
```