Skip to content

Shared Types ​

Common data shapes returned across multiple namespaces. Method-specific return tables reference these definitions to avoid duplication.

Track ​

Metadata and playback properties of a single track, shared by playback, library, playlist, and queue endpoints. Containers extend this structure with domain-specific fields such as playlist row indices or queue positions.

FieldTypeDescription
handlestringCross-endpoint unique track identifier: formatted as absolutePath, appended with |subsong:N when subsong is non-zero. The same track yields the same handle from every method. Differs from standard filesystem paths; endpoints document whether handle identifiers are accepted in place of paths.
pathstringPath as foobar2000 stores it: file:// for a local file, file-relative:// for a path stored relative to the foobar2000 folder (a portable install), or a remote URL. No subsong suffix.
absolutePathstringNative filesystem path without the subsong suffix; the same as path for a remote URL.
subsongintegerSubsong identifier the decoder assigns inside the file, not necessarily a sequence number; 0 for a whole file and for a remote stream.
titlestringFirst TITLE value; empty when untagged.
artiststringEvery ARTIST value joined with ", "; empty when untagged.
artistsstring[]Every ARTIST value in tag order; empty when untagged.
albumstringFirst ALBUM value; empty when untagged.
albumIdstringOpaque album identity when its original name or album artist contains invalid UTF-8. Use this instead of the display names to match an album row; absent for ordinary names.
albumArtiststringEvery ALBUM ARTIST value joined with ", "; empty when untagged.
albumArtistsstring[]All ALBUM ARTIST values in tag order (albumArtists.join(", ") equals albumArtist); empty array when untagged. In library.getAlbums, a track that has an album is filed under the name album and the album artist albumArtists[0] (falling back to artists[0], or "" when both are empty); those are the name and albumArtist of that album's row. When albumId is present, match by albumId instead of display names to avoid collision from character replacement.
genrestringEvery GENRE value joined with ", "; empty when untagged.
datestringFirst DATE value as tagged, such as 2019 or 2019-05-01; empty when untagged.
trackNumberintegerTRACKNUMBER read as an integer; 0 when absent or not a number.
discNumberintegerDISCNUMBER read as an integer; 0 when absent or not a number.
durationnumberLength in seconds; 0 when unknown.
fileSizeintegerFile size in bytes; -1 when unknown, as for a remote stream.
bitrateintegerAverage bitrate in kbit/s; 0 when unknown.
sampleRateintegerSample rate in Hz; 0 when unknown.
channelsintegerChannel count; 0 when unknown.
codecstringCodec name as the decoder reports it, such as FLAC or MP3; empty when unknown.
ratingintegerRating value from 0 to 5. Prefers the %rating% statistic (foo_playcount) if within 1..5; otherwise falls back to the RATING tag clamped to 0..5; 0 if neither is present.

TrackPartial ​

Track representation containing a subset of fields requested by the caller.

Every field of Track, each optional.

SystemApiInfo ​

One registered method.

FieldTypeDescription
fullNamestringFull method name, namespace.method.
pluginstringDisplay name of the owning plugin; foo_ui_webview2 for built-in methods.
namespacestringNamespace component of the method name.
methodstringMethod name component without namespace.
descriptionstringMethod description provided during registration; empty string if omitted.
versionstringMethod API version declared during registration.
isExternalbooleanWhether the method was registered by an external plugin.

SystemPluginInfo ​

One registered external plugin.

FieldTypeDescription
namestringPlugin display name.
namespacestringNamespace unique to this plugin.
versionstringPlugin version string.
authorstringPlugin author.
descriptionstringPlugin description.
apiCountintegerNumber of methods in apis.
apisstring[]Full method names registered by the plugin.