Browse the docs

API reference

Stats

Watch history and server-wide statistics (P3-20).

Paths are relative to /api/v1 on your server.

GET/history#

My watch history

Authorisation
Bearer token or API key · Session cookie
ParameterInTypeDescription
typesquerystring
libraryIdquerystring (uuid)
itemIdquerystring (uuid)
methodquery"direct_play" | "direct_stream" | "transcode"
fromquerystring (date-time)
toquerystring (date-time)
cursorquerystring
limitqueryinteger
cardsquery
  • 200Success. application/json · HistoryPage
  • 400VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope
  • 401UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope
  • 403FORBIDDEN: the account lacks library:view, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope
GET/profile#

My profile

When the caller joined, and how much they have played: every play of theirs, whatever library it was in.

Authorisation
Bearer token or API key · Session cookie
  • 200Success. application/json · Profile
  • 401UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope
  • 403FORBIDDEN: the account lacks library:view, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope
GET/stats#

Server-wide statistics

Authorisation
Bearer token or API key · Session cookie
ParameterInTypeDescription
periodquery"7d" | "30d" | "90d" | "365d" | "all"
libraryIdquerystring (uuid)
tzquerystring
  • 200Success. application/json · ServerStats
  • 400VALIDATION_FAILED: the request did not match the schema; details.issues lists what. application/json · ErrorEnvelope
  • 401UNAUTHENTICATED: no session, or the access token expired. application/json · ErrorEnvelope
  • 403FORBIDDEN: the account lacks session:manage, or the library, label, age or schedule scope refuses it. application/json · ErrorEnvelope