Soundcloud API does not return all tracks from playlist via Python

I recently started using the Soundcloud API to develop a simple application that saves data in playlists. However, it seems to me that not all tracks from playlists are returned.

I am using the following code:

import soundcloud, shelve, time

client = soundcloud.Client(client_id=CLIENT_ID,
                           client_secret=CLIENT_SECRET,
                           username=E-MAIL,
                           password=PASSWORD)

playlists = client.get('/users/24196709/playlists', limit=1)

tracknames = []
trackids= []

for pl in playlists:
    for track in pl.tracks:
        print(track['title'])
        tracknames.append(track['title'])
        trackids.append(track['id'])

print(tracknames)

Using it in this playlist: https://soundcloud.com/michiel-tammeling/sets/icecubes , which contains 13 tracks, however the code returns 11.

Any help would be greatly appreciated.

+4
source share
1 answer

, . . , API , API- , . , 2 , , 403, API-. , 2 - API-.

:

SoundCloud

SoundCloud , , , 403 . , , .

@nickf Tech Lead of soundcloud :

, , . , , ( ) . , , , ( , ). - nickf 14 22:37

+5

All Articles