K
K
Kater-auf-Dach2016-07-30 21:16:38
JavaScript
Kater-auf-Dach, 2016-07-30 21:16:38

How to get the composition of the album, VK API?

I'm sawing my bike for working with the VK API (for educational and entertainment purposes). There was such question - how to receive the list of records of a specific album? For example, if these are audio recordings, then audio.getAlbums returns only the name and id of the album, but there is no information about the tracks that make it up.
The first thing that comes to mind is to make an album yourself. That is, go through all the user's records (audio.get returns the id of the album that the track belongs to) and match the IDs. But this is extremely time consuming and unproductive. Is there any more kosher way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timurkin, 2016-07-30
@Kater-auf-Dach

Pass album_id to audio.get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question