Library for using Modern VK Audio API
Supports:
lang param - en (default) | ruversion paramVKClient type (default: VKMobileClient)VKWebClientUnsupported:
Install it:
bun i @toil/vk-audio
Simple usage example:
import { VKAudio } from "@toil/vk-audio";
import { VKMobileClient } from "@toil/vk-audio/client";
const webClient = new VKWebClient({
cookies: {
p: COOKIE_P,
remixsid: COOKIE_REMIX_SID,
},
});
const client = new VKAudio({
client: webClient,
token: {
value: "",
expiresIn: -1,
},
});
const result = await client.getSections();
You can see more usage examples in tests folder
Lib provides support:
p and remixsid cookie (just steal it from Network tab in browser)Used references: