---
updatedAt: 2026-03-01T18:44:11.000Z
---

# List Media Service On Demand RTMP data

```curl cURL
ignoreEdgeFlash="true"
startDate="2021-03-22T15:30Z"
endDate="2021-04-23T15:30Z"
cpcodes="12345,67890"
ignorePutPost="true"

egcurl --eg-section default --request GET \

  --url "https://$hostname/media-reports/v1/msod/msod-rtmp/data?ignoreEdgeFlash=$ignoreEdgeFlash&startDate=$startDate&endDate=$endDate&cpcodes=$cpcodes&ignorePutPost=$ignorePutPost" \
  --header "Accept: application/json"
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require("os");
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";  
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection
});   


eg.auth({
  path: `/media-reports/v1/msod/msod-rtmp/data`,
  method: "GET",
  headers: {
    
    "Accept": "application/json"},
  qs: {
    "ignoreEdgeFlash": "true",
    "startDate": "2021-03-22T15:30Z",
    "endDate": "2021-04-23T15:30Z",
    "cpcodes": "12345,67890",
    "ignorePutPost": "true"
}                    
});
eg.send(function(error, response, body) {
  console.log(body);    
});
```

```python Python
import requests
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urllib.parse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
 

path= '/media-reports/v1/msod/msod-rtmp/data'
headers = {
  
  "Accept": "application/json"} 
querystring = {
  "ignoreEdgeFlash": "true",
  "startDate": "2021-03-22T15:30Z",
  "endDate": "2021-04-23T15:30Z",
  "cpcodes": "12345,67890",
  "ignorePutPost": "true"
}  

result = session.get(urljoin(baseurl, path), headers=headers, params=querystring)
print(result.status_code)
print(result.json())
```

```json Response Example
{
  "rows": [
    [
      "1543674600",
      "0.494"
    ],
    [
      "1543761000",
      "0.7"
    ],
    [
      "1543847400",
      "0.296"
    ],
    [
      "1543933800",
      "0.967"
    ],
    [
      "1544020200",
      "1.586"
    ],
    [
      "1544106600",
      "0.863"
    ],
    [
      "1544193000",
      "0.19"
    ],
    [
      "1544279400",
      "0.303"
    ],
    [
      "1544365800",
      "20.581"
    ],
    [
      "1544452200",
      "1.088"
    ],
    [
      "1544538600",
      "0.715"
    ],
    [
      "1544625000",
      "396.926"
    ],
    [
      "1544711400",
      "1151.529"
    ],
    [
      "1544797800",
      "1227.751"
    ],
    [
      "1544884200",
      "1240.823"
    ],
    [
      "1544970600",
      "1258.008"
    ],
    [
      "1545057000",
      "755.61"
    ]
  ],
  "metaData": {
    "startTimeInEpoch": 1543674600,
    "offset": 0,
    "dasTable": "strconcur_vod_F_time",
    "limit": 300,
    "timeZone": "GMT",
    "hasMoreData": false,
    "aggregation": 86400,
    "endTimeInEpoch": 1545143400,
    "messages": [
      "Estimated data begins at 18/Dec/2018 05:00:00 GMT"
    ]
  },
  "columns": [
    {
      "type": "dimension",
      "name": "Time",
      "description": "Indicates the consumption time of the content. This dimension is set automatically.",
      "index": 0
    },
    {
      "type": "metric",
      "name": "Avg Concurrent Streams",
      "id": 19001,
      "description": "Sum of Average concurrent streams",
      "index": 1
    }
  ]
}
```

# Set up authorization

<!-- curl@7 -->
<!-- node@1-7 -->
<!-- python@1-10 -->

Before you can use this API, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).

Then, you can use these code samples to apply the token values to your requests.

# Set a time range

<!-- curl@2,3 -->
<!-- node@19,20 -->
<!-- python@19,20 -->

Specify a `startDate` and `endDate` range of time you want information for.

# Form the URL

<!-- curl@9 -->
<!-- node@12-22 -->
<!-- python@13-22 -->

Inject the `startDate` and `endDate` values into the URL template string, and append [optional parameters](https://techdocs.akamai.com/media-services-rpts/reference/get-rtmp-data) as needed.

# Call the API

<!-- curl@0-100 -->
<!-- node@0-100 -->
<!-- python@0-100 -->

Call GET on the request URL.

# Review the response

<!-- curl@0 -->
<!-- node@0 -->
<!-- python@0 -->

The response object includes details on the data for the time period requested.