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

[Skip to content](#%5Ftop) 

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

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

[Livestreams](https://developers.cloudflare.com/api/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

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`

##### Path ParametersExpand Collapse 

account\_id: string

The account identifier tag.

maxLength32

app\_id: string

The app identifier tag.

maxLength32

##### Query ParametersExpand Collapse 

end\_time: optional number

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

formatint64

filters: optional string

Optional filters for livestream analytics.

start\_time: optional number

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

formatint64

##### ReturnsExpand Collapse 

data: optional array of object { count, date, total\_ingest\_seconds, total\_viewer\_seconds } 

count: optional number

Count of total livestream sessions.

date: optional string

Analytics date.

total\_ingest\_seconds: optional number

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

total\_viewer\_seconds: optional number

Total view time for which the viewers watched the stream.

success: optional boolean

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

HTTP

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

```
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/realtime/kit/$APP_ID/analytics/livestreams/daywise \
    -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
```

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
}
```