GET
/
data
/
usage
/
query
curl --request GET \
  --url https://livepeer.studio/api/data/usage/query \
  --header 'Authorization: <api-key>'
{
  "UserID": "<string>",
  "CreatorID": "<string>",
  "DeliveryUsageMins": 123,
  "TotalUsageMins": 123,
  "StorageUsageMins": 123
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

from
integer

Start millis timestamp for the query range (inclusive)

to
integer

End millis timestamp for the query range (exclusive)

timeStep
enum<string>

The time step to aggregate viewership metrics by

Available options:
hour,
day
creatorId
string

The creator ID to filter the query results

Response

200 - application/json
UserID
string
required

The user ID associated with the metric

CreatorID
string
required

The creator ID associated with the metric

DeliveryUsageMins
number
required

Total minutes of delivery usage.

TotalUsageMins
number
required

Total transcoded minutes.

StorageUsageMins
number
required

Total minutes of storage usage.