Skip to main content
Module

x/listenbrainz/listen.ts>Listen

Deno library and CLI to access the ListenBrainz API
Latest
interface Listen
import { type Listen } from "https://deno.land/x/listenbrainz@v0.8.1/listen.ts";

Event of listening to a certain track at certain time.

Listens should be submitted for tracks when the user has listened to half the track or 4 minutes of the track, whichever is lower. If the user hasn’t listened to 4 minutes or half the track, it doesn’t fully count as a listen and should not be submitted.

Properties

listened_at: number

Integer representing the Unix time when the track was listened to. This should be set to playback start time of the submitted track. The minimum accepted value for this field is LISTEN_MINIMUM_TS.

track_metadata: Track

Metadata of the track.