/api/libraries/{id}/items
Path Parameters
Resource ID
Query Parameters
Max items to return
0 < valueNumber of items to skip
0 <= valueField to sort by (title, addedAt, updatedAt, year, releaseDate, rating, duration, certification)
Sort direction
"asc" | "desc"Filter by status
Comma-separated list of certification codes to include (e.g. "G,PG,PG-13")
Ignore leading "a"/"an"/"the" when sorting by title
"true" | "false"Sort items whose title begins with a digit before alphabetical entries
"true" | "false"Include letter→offset map for the alphabet jump-bar (only meaningful when sortBy=title)
"true" | "false"Include the distinct certification codes present in the library
"true" | "false"Include linked entities (show, season, etc.) on each item
"true" | "false"Aggregate items by primary entity (show/album/etc.). When true, response shape switches to { slots: [...] }; ignores offset, letterOffsets, availableCertifications.
"true" | "false"Response Body
application/json
application/json
curl -X GET "https://example.com/api/libraries/string/items"{
"items": [
{
"id": "string",
"libraryId": "string",
"title": "string",
"metadata": {
"property1": null,
"property2": null
},
"certification": "string",
"status": "active",
"addedAt": "string",
"updatedAt": "string",
"files": [
{
"id": "string",
"libraryId": "string",
"uri": "string",
"filename": "string",
"extension": "string",
"fileInfo": {
"property1": null,
"property2": null
},
"mimeType": "string",
"type": "media",
"classification": "string",
"itemId": "string",
"status": "active",
"edition": "string",
"partNumber": 0,
"size": 0,
"duration": 0,
"createdAt": "string",
"updatedAt": "string",
"assets": {
"property1": "string",
"property2": "string"
},
"assetAspects": {
"property1": "string",
"property2": "string"
},
"mediaKind": "video",
"chapters": [
{
"id": "string",
"fileId": "string",
"startTime": 0,
"endTime": 0,
"role": "intro",
"title": "string",
"source": "string",
"metadata": {
"property1": null,
"property2": null
},
"createdAt": "string",
"updatedAt": "string",
"assets": {
"property1": "string",
"property2": "string"
}
}
]
}
],
"assets": {
"property1": "string",
"property2": "string"
},
"assetAspects": {
"property1": "string",
"property2": "string"
},
"linkedEntities": [
{
"id": "string",
"type": "string",
"name": "string",
"role": "string",
"sortOrder": 0,
"linkMetadata": {
"property1": null,
"property2": null
},
"assets": {
"property1": "string",
"property2": "string"
},
"assetAspects": {
"property1": "string",
"property2": "string"
}
}
],
"playback": {
"completed": true,
"position": 0,
"duration": 0
}
}
],
"total": 0,
"limit": 0,
"offset": 0,
"letterOffsets": {
"property1": 0,
"property2": 0
},
"availableCertifications": [
"string"
]
}{
"error": "string"
}