$search
$search
will search for tracks.
Usage
Field | Type | Description | Required |
---|---|---|---|
query | string | The query to search for. | true |
type? | string | The platform type. 1. youtube (default) 2. spotify (requires auth) 3. soundcloud | false |
format? | string | The format in which the songs are returned (read below). | false |
list? | number | The maximum amount of songs that will be returned. | false |
separator? | string | The separator to separate returned songs. | false |
Formatting
Option | Returns | |
---|---|---|
{title} | Video/Song Title | |
{artist} | Artist | May return invalid data with SoundCloud |
{duration} | Duration | Returned in ms |
{digitalFormat} | Duration | Returned in digital format, may be invalid for: Soundcloud, Spotify |
{id} | Video/Song ID | Returned in digital format, may be invalid for: Soundcloud, Spotify |
{url} | Video/Song URL | Returns for YouTube with youtube.com/watch?v= instead of youtu.be |
Example(s)
This will search for video/song titles with the name of “aoi.js”: