search() - Methods
Search for a query in YouTube Music
Builder:
javascript
search(query, filter, fetch)
Parameters
Parameter | Type | Description | Optional |
---|---|---|---|
query | string | ex: "Hello Adele" | 𐄂 |
filter | ex: "SONG" (Check available types) | ✓ | |
fetch | boolean | ex: false (If you want to get complete results, but it will take more time) | ✓ |
Return: promise<{ query: string; filter: ; content: Music[] | Artist[] | Playlist[]; }>