VK Audio API reference for VK Audio Token
Index
API Methods
General info
New API Methods

audio.getPlaylists

Get playlists for a specified user or community

Parameters:

NameValue
owner_idUser or community id (for example, obtained by users.get)
count (optional)Maximum number of playlists to return
offset (optional)Offset to skip that number of playlists
extended (optional)1 - return information about the owner of the playlist
fields (optional)Comma-separated fields same as in users.get (last_name_gen, city, bdate...)
filters (optional)Comma-separated filters for playlists: all (default), owned, followed, albums

Example (Kate):

$ownerId = 238615607;
curl_setopt(
$ch,
CURLOPT_URL,
"https://api.vk.com/method/audio.getPlaylists?access_token=".TOKEN.
"&owner_id=$ownerId&count=10&v=5.95"
);
<?php
include __DIR__.'/../../autoloader.php';
use Vodka2\VKAudioToken\SupportedClients;
//Token obtained by example_microg.php script
define('TOKEN', $argv[1]);
define('USER_AGENT', SupportedClients::Kate()->getUserAgent());
$ch = curl_init();
curl_setopt($ch,CURLOPT_HTTPHEADER, array('User-Agent: '.USER_AGENT));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ownerId = 238615607;
curl_setopt(
$ch,
CURLOPT_URL,
"https://api.vk.com/method/audio.getPlaylists?access_token=".TOKEN.
"&owner_id=$ownerId&count=10&v=5.95"
);
echo json_encode(json_decode(curl_exec($ch)), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)."\n\n";