GET
/
data
/
usage
/
query
curl --request GET \
  --url https://livepeer.studio/api/data/usage/query \
  --header 'Authorization: Bearer <api-key>'
{
  "UserID": "1bde4o2i6xycudoy",
  "CreatorID": "john@doe.com",
  "DeliveryUsageMins": 100,
  "TotalUsageMins": 100,
  "StorageUsageMins": 100
}

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

The user ID associated with the metric

CreatorID
string

The creator ID associated with the metric

DeliveryUsageMins
number

Total minutes of delivery usage.

TotalUsageMins
number

Total transcoded minutes.

StorageUsageMins
number

Total minutes of storage usage.