---
title: Fetch day-wise session and recording analytics data for an App
---

[Skip to content](#_top)

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

[Realtime Kit](https://developers.cloudflare.com/api/go/resources/realtime_kit)

[Livestreams](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/livestreams)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Fetch day-wise session and recording analytics data for an App

client.RealtimeKit.Livestreams.GetOrgAnalytics(ctx, appID, params) (\*[LivestreamGetOrgAnalyticsResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)>), error)

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

Returns day-wise session and recording analytics data of an App for the specified time range start\_date to end\_date. If start\_date and end\_date are not provided, the default time range is set from 30 days ago to the current date.

##### 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

appID string

The app identifier tag.

[Link to this property](<#(resource)%20realtime_kit.livestreams%20%3E%20(method)%20get_org_analytics%20%3E%20(params)%20default%20%3E%20(param)%20app_id%20%3E%20(schema)>)

<details>

<summary>

params LivestreamGetOrgAnalyticsParams

</summary>

AccountID param.Field\[string]

Path param: The account identifier tag.

maxLength32

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(method)%20get_org_analytics%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

EndDate param.Field\[string]Optional

Query param: end date in YYYY-MM-DD format

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(method)%20get_org_analytics%20%3E%20(params)%20default%20%3E%20(param)%20end_date">Link to this property</a>

StartDate param.Field\[string]Optional

Query param: start date in YYYY-MM-DD format

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(method)%20get_org_analytics%20%3E%20(params)%20default%20%3E%20(param)%20start_date">Link to this property</a>

</details>

[Link to this property](<#(resource)%20realtime_kit.livestreams%20%3E%20(method)%20get_org_analytics%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type LivestreamGetOrgAnalyticsResponse struct{…}

</summary>

<details>

<summary>

Data LivestreamGetOrgAnalyticsResponseDataOptional

</summary>

<details>

<summary>

RecordingStats LivestreamGetOrgAnalyticsResponseDataRecordingStatsOptional

Recording statistics of an App during the range specified

</summary>

<details>

<summary>

DayStats \[]LivestreamGetOrgAnalyticsResponseDataRecordingStatsDayStatOptional

Day wise recording stats

</summary>

Day stringOptional

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20recording_stats%20%3E%20(property)%20day_stats%20%3E%20(items)%20%3E%20(property)%20day">Link to this property</a>

TotalRecordingMinutes int64Optional

Total recording minutes for a specific day

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20recording_stats%20%3E%20(property)%20day_stats%20%3E%20(items)%20%3E%20(property)%20total_recording_minutes">Link to this property</a>

TotalRecordings int64Optional

Total number of recordings for a specific day

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20recording_stats%20%3E%20(property)%20day_stats%20%3E%20(items)%20%3E%20(property)%20total_recordings">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20recording_stats%20%3E%20(property)%20day_stats">Link to this property</a>

RecordingCount int64Optional

Total number of recordings during the range specified

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20recording_stats%20%3E%20(property)%20recording_count">Link to this property</a>

RecordingMinutesConsumed float64Optional

Total recording minutes during the range specified

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20recording_stats%20%3E%20(property)%20recording_minutes_consumed">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20recording_stats">Link to this property</a>

<details>

<summary>

SessionStats LivestreamGetOrgAnalyticsResponseDataSessionStatsOptional

Session statistics of an App during the range specified

</summary>

<details>

<summary>

DayStats \[]LivestreamGetOrgAnalyticsResponseDataSessionStatsDayStatOptional

Day wise session stats

</summary>

Day stringOptional

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20session_stats%20%3E%20(property)%20day_stats%20%3E%20(items)%20%3E%20(property)%20day">Link to this property</a>

TotalSessionMinutes float64Optional

Total session minutes for a specific day

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20session_stats%20%3E%20(property)%20day_stats%20%3E%20(items)%20%3E%20(property)%20total_session_minutes">Link to this property</a>

TotalSessions int64Optional

Total number of sessions for a specific day

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20session_stats%20%3E%20(property)%20day_stats%20%3E%20(items)%20%3E%20(property)%20total_sessions">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20session_stats%20%3E%20(property)%20day_stats">Link to this property</a>

SessionsCount int64Optional

Total number of sessions during the range specified

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20session_stats%20%3E%20(property)%20sessions_count">Link to this property</a>

SessionsMinutesConsumed float64Optional

Total session minutes during the range specified

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20session_stats%20%3E%20(property)%20sessions_minutes_consumed">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20session_stats">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20data">Link to this property</a>

Success boolOptional

<a href="#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20realtime_kit.livestreams%20%3E%20(model)%20LivestreamGetOrgAnalyticsResponse%20%3E%20(schema)>)

### Fetch day-wise session and recording analytics data for an App

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/realtime_kit"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.RealtimeKit.Livestreams.GetOrgAnalytics(
    context.TODO(),
    "14a396e7-ca44-4937-bf1f-050a69118543",
    realtime_kit.LivestreamGetOrgAnalyticsParams{
      AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Data)
}
```

200 example

```
{
  "data": {
    "recording_stats": {
      "day_stats": [
        {
          "day": "day",
          "total_recording_minutes": 0,
          "total_recordings": 0
        }
      ],
      "recording_count": 0,
      "recording_minutes_consumed": 0
    },
    "session_stats": {
      "day_stats": [
        {
          "day": "day",
          "total_session_minutes": 0,
          "total_sessions": 0
        }
      ],
      "sessions_count": 0,
      "sessions_minutes_consumed": 0
    }
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "data": {
    "recording_stats": {
      "day_stats": [
        {
          "day": "day",
          "total_recording_minutes": 0,
          "total_recordings": 0
        }
      ],
      "recording_count": 0,
      "recording_minutes_consumed": 0
    },
    "session_stats": {
      "day_stats": [
        {
          "day": "day",
          "total_session_minutes": 0,
          "total_sessions": 0
        }
      ],
      "sessions_count": 0,
      "sessions_minutes_consumed": 0
    }
  },
  "success": true
}
```