Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.discovr.media/llms.txt

Use this file to discover all available pages before exploring further.

Track skip events during playback. Used for analytics; currently logs the event.

Parameters

NameTypeRequiredDescription
mediaIdstringYesThe media ID with prefix (MV_TMDBID for movies, TV_TMDBID for TV shows)
fromnumberYesStarting timestamp of the skip (seconds)
tonumberYesEnding timestamp after the skip (seconds)
durationnumberYesNumber of seconds skipped forward
tvScrobbleTvNo
{
  "season": 0,
  "episode": 0
}

Returns

ScrobbleSkipResponse — Skip event recorded
{
  "status": "string"
}

Example

import { DiscovrClient } from "discovr";
import type { ScrobbleSkipBody, ScrobbleSkipResponse, ScrobbleTv } from "discovr";

const discovr = new DiscovrClient("your-client-id", {
  basePath: "https://api.discovr.media",
});

// After sign-in and profile selection …
const response: ScrobbleSkipResponse = await discovr.scrobbleSkip("TV_TMDBID1396", 120, 140, 20, { tv: { "season": 2, "episode": 5 } });
console.log(response);