NodeLink
API Reference

API Reference

Complete reference for NodeLink's REST and WebSocket APIs.

NodeLink API Reference

NodeLink implements the Lavalink v4 API specification while adding unique features for enhanced functionality. This reference covers all available endpoints, events, and data structures.

Core APIs

These features are exclusive to NodeLink or extend the standard behavior.

Quick Reference: Search Prefixes

When calling /v4/loadtracks, you can use these prefixes to search specific sources:

PrefixSourceDescription
ytsearch:YouTubeStandard video search
ytmsearch:YouTube MusicMusic-only search
scsearch:SoundCloudTrack search
search:UnifiedSearch across unifiedSearchSources
spsearch:SpotifyMetadata search (mirrors to YouTube)
amsearch:Apple MusicMetadata search (mirrors to YouTube)
dzsearch:DeezerDirect audio search
tdsearch:TidalMetadata search (mirrors to YouTube)
bcsearch:BandcampTrack search
admsearch:AudiomackTrack search
audiomack:AudiomackAlias of admsearch:
gaanasearch:GaanaTrack search
jssearch:JioSaavnTrack search
lfsearch:Last.fmMetadata search (mirrors to YouTube)
pdsearch:PandoraTrack search
vksearch:VK MusicTrack search
mcsearch:MixcloudTrack search
ncsearch:NicoVideoVideo search
nicovideo:NicoVideoAlias of ncsearch:
bilibili:BilibiliVideo search
shsearch:ShazamMetadata search (mirrors to YouTube)
szsearch:ShazamAlias of shsearch:
gtts:Google TTSGenerate speech audio
speak:Google TTSAlias of gtts:
ftts:Flowery TTSGenerate speech via Flowery API
flowery:Flowery TTSAlias of ftts:

You can also pass direct URLs (e.g., https://www.youtube.com/watch?v=...) without any prefix.

Search Type Modifiers

Some sources accept a type modifier right after the prefix. This is not exclusive to YouTube; SoundCloud and other sources also parse type modifiers. The format is:

<prefix>:<type>:<query>

Supported types: track (default), playlist, album, artist, channel.

Examples:

  • ytsearch:playlist:billie eilish (returns playlist results)
  • ytmsearch:album:daft punk (returns album results)
  • scsearch:playlist:lofi beats (returns SoundCloud playlists)
  • scsearch:user:trap nation (returns SoundCloud users)

Playlist and channel search results are not playable tracks. Use the returned info.uri to call /v4/loadtracks and then play the resulting playlist tracks.

Recommendation Prefixes

Some sources can return recommended tracks when you use a *rec prefix.

PrefixSourceDescription
ytrec:YouTubeAutomix based on video id or search query
sprec:SpotifyRecommendations (pass seed_tracks=... or just a track id)
dzrec:DeezerRecommendations by track id, or artist=/track= query
tdrec:TidalRecommendations by track id or search query
jsrec:JioSaavnRecommendations by track id or search query
vkrec:VK MusicRecommendations (requires VK auth)

Local files can be loaded by absolute path (e.g., C:\music\track.mp3) or with local: + a relative path from sources.local.basePath.

On this page