Download raw DRM delivery logs
Streams a CSV, JSON or NDJSON export of raw delivery log records for the given time period. start and end must fall within the same UTC calendar month, and within DRMtoday's retention window (the current UTC month, plus the previous month for a short grace period after it ends). A single export is capped at 1,000,000 records. On success the response body is the file itself - use the Content-Disposition header for the filename and Content-Type for the format. On failure the usual JSON error envelope is returned instead, still with HTTP 200.
curl -X POST "https://api.5centscdn.com/v2/drm/usage/download" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"deliveryType": "LICENSE",
"downloadType": "JSON_STREAM",
"start": "2026-09-01T00:00:00Z",
"end": "2026-09-23T18:50:00Z",
"status": "OK",
"scheme": "WIDEVINE_MODULAR"
}'
import requests
import json
url = "https://api.5centscdn.com/v2/drm/usage/download"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
data = {
"deliveryType": "LICENSE",
"downloadType": "JSON_STREAM",
"start": "2026-09-01T00:00:00Z",
"end": "2026-09-23T18:50:00Z",
"status": "OK",
"scheme": "WIDEVINE_MODULAR"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/drm/usage/download", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"deliveryType": "LICENSE",
"downloadType": "JSON_STREAM",
"start": "2026-09-01T00:00:00Z",
"end": "2026-09-23T18:50:00Z",
"status": "OK",
"scheme": "WIDEVINE_MODULAR"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"deliveryType": "LICENSE",
"downloadType": "JSON_STREAM",
"start": "2026-09-01T00:00:00Z",
"end": "2026-09-23T18:50:00Z",
"status": "OK",
"scheme": "WIDEVINE_MODULAR"
}`)
req, err := http.NewRequest("POST", "https://api.5centscdn.com/v2/drm/usage/download", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.5centscdn.com/v2/drm/usage/download')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
request.body = '{
"deliveryType": "LICENSE",
"downloadType": "JSON_STREAM",
"start": "2026-09-01T00:00:00Z",
"end": "2026-09-23T18:50:00Z",
"status": "OK",
"scheme": "WIDEVINE_MODULAR"
}'
response = http.request(request)
puts response.body
{
"result": "error",
"message": "The time period cannot span more than one calendar month (UTC) - DRMToday rejects cross-month log requests."
}
/drm/usage/download
Target server for requests. Edit to use your own host.
API key (sent in header)
The media type of the request body
Delivery type to export. Defaults to LICENSE.
Export format. JSON_STREAM is newline-delimited JSON (recommended for large exports), JSON is a single JSON array, CSV is comma-separated with a reduced field subset. Defaults to JSON_STREAM.
Inclusive start of the export window (ISO-8601). Any timezone offset is accepted and converted to UTC.
Exclusive end of the export window (ISO-8601). Must be in the same UTC calendar month as start.
Optional filter to a single delivery status. Omit for all statuses.
Optional filter to a single DRM scheme. Omit for all schemes.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Body
Delivery type to export. Defaults to LICENSE.
LICENSERENEWALCERTIFICATEExport format. JSON_STREAM is newline-delimited JSON (recommended for large exports), JSON is a single JSON array, CSV is comma-separated with a reduced field subset. Defaults to JSON_STREAM.
JSON_STREAMJSONCSVInclusive start of the export window (ISO-8601). Any timezone offset is accepted and converted to UTC.
2026-09-01T00:00:00ZExclusive end of the export window (ISO-8601). Must be in the same UTC calendar month as start.
2026-09-23T18:50:00ZOptional filter to a single delivery status. Omit for all statuses.
OKDENIEDREVOKEDINVALIDFAILERROROptional filter to a single DRM scheme. Omit for all schemes.
WIDEVINE_MODULARPLAYREADYFAIRPLAYWISEPLAYResponses
Operation outcome. Only present on failure.
Human-readable error message. Only present on failure.