Retrieves all history entries for a specific media item from the history list. Items are returned in descending order by updated date (newest first). Supports cursor-based pagination using theDocumentation Index
Fetch the complete documentation index at: https://docs.discovr.media/llms.txt
Use this file to discover all available pages before exploring further.
nextPageToken query parameter.
Pagination:
- Use
nextPageTokenfrom the previous response to fetch the next page - If
hasMoreistrue, there are more items available on subsequent pages.
season query parameter is required. episode is optional - if not provided, returns all history entries for the specified season (including season default entries). When a TV history item has no episode field, it represents a “Default for Episode” entry. Frontend clients should treat these entries as applying to all episodes in the season where episode.air_date < historyItem.updatedAt. This allows updating multiple episodes with a single history entry. The matching logic is a client-side concern and not exposed by the API.
Entry Precedence:
When processing history entries, explicit episode entries (with episode specified) take precedence over season default entries. If an episode has both a season default entry and an explicit entry, the explicit entry’s completion status and progress should be used. Season defaults only apply to episodes that do not have explicit entries.
Movies:
For movies, no additional parameters are needed.
Media Assets:
All items include media assets (id, title, poster_path, backdrop_path) automatically.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| mediaId | string | Yes | The DiscovrID (TV_<tmdbId> or MV_<tmdbId>) of the media item |
| season | integer | No | Season number (required for TV shows only, must be provided when mediaId starts with TV_) |
| episode | integer | No | Episode number (optional for TV shows, only valid when mediaId starts with TV_). If not provided, returns all episodes in the season. |
| nextPageToken | string | No | Opaque token from previous page for pagination |
| limit | integer | No | Maximum number of items to return (1-50, default: 10) |
Returns
HistoryListResponse — List of history items retrieved successfully
View response structure
View response structure