What method API to obtain chart?

What method API to obtain chart?
April 7th 20 at 15:16
2 answers
April 7th 20 at 15:18
Solution
What you are deceiving people. You can get a "chart". If it's recommended or popular.

audio.getPopular

only_eng - 1 — to return only the foreign audio files, 0 — to return all audio files
genre_id - Genre ID. See the list of audio genres. (positive number)
offset - Offset needed to return a specific subset of audio files. (positive number)
count - Number of audio files to return. (positive number, maximum value is 1000, default 100)


5e495c4709cfc005968923.png
what settings do you use?
only returns me {"response":[]} - Emory_Corwin commented on April 7th 20 at 15:21
@vince, no. Just do, everything is optional. - josiah.Hudson commented on April 7th 20 at 15:24
@vince, if anything, VC audio a bit closed and only works with trusted apps. For example, Admin or Vk Kate mobile. Token get through them and everything should work. On the other hand, must be a mistake. - josiah.Hudson commented on April 7th 20 at 15:27
@mauricio.Lind, receive a token emulating the app for Android, other audio methods work - Emory_Corwin commented on April 7th 20 at 15:30
@vince, this method exactly works. I have this player working. - josiah.Hudson commented on April 7th 20 at 15:33
Been my school. I test the getCatalog method, and he apparently works with a normal token, other methods throwing "Audio is available on vk.com".

Thank you - Emory_Corwin commented on April 7th 20 at 15:36
@mauricio.Lind, the answer he gives, but it's definitely not a chart, even what's on the screen - Emory_Corwin commented on April 7th 20 at 15:39
@vince, by the way, I just an hour ago started going through and realized that this is not the list. Whether the options you want, or a slightly different method. I'll figure it out, so if anything I will write here. In any case, there is a method, because the mobile client is running. We find, not going anywhere - josiah.Hudson commented on April 7th 20 at 15:42
@vince, 5e509e4b750b5850448124.jpeg
Hey, look methods that are used are the date of receipt of the chart.
Turn on logging in the VC application. He leaves a very detailed log. I will use it to look for the right - josiah.Hudson commented on April 7th 20 at 15:45
@vinceall ready, got the chart music VK.
1. Method: catalog.getAudio, parameter passing need_blocks=1, https=1
2. Method: catalog.getSection, parameter, pass in section of "Recommendation" from a previous request section_id=<line ID>

Get array of section blocks, one block of "the Chart
{
 "id": "PUlQVA8GR0R3W0tMF2teVWRHS0IXDlpKzfpcva8ffg",
 "data_type": "none",
 "layout": {
 "name": "header",
 "title": "Chart Vkontakte"
},
 "buttons": [
{
 "action": {
 "type": "open_section"
},
 "section_id": "PUlQVA8GR0R3W0tMF2tTRGpJUVQPGVpVcvhfrgiawkpkxktmf2tyuwrhs0ixdlpkzfpcva8ffg",
 "title": "Show all",
 "ref_items_count": 100,
 "ref_layout_name": "music_chart_triple_stacked_slider",
 "ref_data_type": "music_audios"
}
]
},
{
 "id": "PUlQVA8GR0R3W0tMF2tTRGpJUVQPGVpVcvhfrgiawkpkxktmf2tyuwrhs0ixdlpkzfpcva8ffg",
 "data_type": "music_audios",
 "layout": {
 "name": "music_chart_triple_stacked_slider",
 "owner_id": -137360741
},
 "next_from": "PUlYVA8GW0pkWEtMBUk",
 "audios_ids": [
"-2001160108_62160108",
"-2001799996_60799996",
"-2001945266_61945266",
"-2001160665_62160665",
"-2001005056_61005056",
"-2001229071_62229071",
"-2001374022_62374022",
"-2001317738_62317738",
"-2001450096_62450096",
"-2001485562_62485562",
"-2001754732_61754732",
"-2001646897_61646897",
"-2001398528_62398528",
"-2001945268_61945268",
"-2001441002_62441002",
"-2001945269_61945269",
"-2001005059_61005059",
"-2001487946_62487946",
"-2001213913_62213913",
"-2001945267_61945267"
]
 }
- josiah.Hudson commented on April 7th 20 at 15:48
@mauricio.Lind, wow, thanks - Emory_Corwin commented on April 7th 20 at 15:51
@mauricio.Lind, works, only displays the first 20 values - Emory_Corwin commented on April 7th 20 at 15:54
@vince, so get the full section of the chart.
Ie third time:
Method: catalog.getSection, parameter passing section of the Chart from the previous request section_id=<line ID> - josiah.Hudson commented on April 7th 20 at 15:57
@vince, 5e524fb4029d2512718083.png
Here is how I did. Json comes with a list of tracks and with an array of tracks. Exactly 100. - josiah.Hudson commented on April 7th 20 at 16:00
@vince, there is logic to the following:
1. Get your music directory (my music, recommendations and anything else). We need a catalogue of recommendations
2. Obtain a directory of recommendations. It contains many different units, including the chart.
3. Looking for block of the chart and pick chart section_id
4. Get the catalog chart - josiah.Hudson commented on April 7th 20 at 16:03
@mauricio.Lind, understand, wonder made sure, thanks - Emory_Corwin commented on April 7th 20 at 16:06
April 7th 20 at 15:20
no
copyright

Find more questions by tags VKontakte