429: API rate limit exceeded #321

Open
opened 2025-12-28 08:14:12 -05:00 by Cio2566 · 4 comments
Cio2566 commented 2025-12-28 08:14:12 -05:00 (Migrated from github.com)

Civan $ python -m zotify track https://open.spotify.com/track/70CWF9eT1tXx7gID9oYt3x?si=fR8c_EjgRteZOTAcPzKPfg --bulk-wait-time 45

[∙●∙] Logging in...                           

WARNING: No valid content_id found in track, skipping...
[∙●∙] Fetching track information...
{}
{'id': '70CWF9eT1tXx7gID9oYt3x', 'name': 'fıs?', 'artists': ['KAVAK', 'BAKAN'], 'artist_ids': ['24OGdBr3r58ksMLJkMXZZY', '3pELTNcBXbfHktNPFTUsNW'], 'release_date': '2025-08-22', 'year': '2025', 'track_number': '01', 'total_tracks': '01', 'album': 'fıs?', 'album_artists': ['KAVAK', 'BAKAN'], 'disc_number': '1', 'compilation': 0, 'duration_ms': 136486, 'image_url': 'https://i.scdn.co/image/ab67616d0000b2731feb941ef64c8c04826e99a4', 'is_pl[∙●∙] Preparing download...
CRITICAL:Librespot:AudioKeyManager:Audio key error, code: 1
CRITICAL:Librespot:AudioKeyManager:Audio key error, code: 1

ERROR: FAILED TO FETCH AUDIO KEY
MAY BE CAUSED BY RATE LIMITS - CONSIDER INCREASING BULK_WAIT_TIME ### | 0/2 [00:01<?, ?url/s]
GID: e654b4dd9cb446c1864e41e5ca259c8f - File_ID: a9c0d86702f84cc9d14bc130c63e117a88f1d061
ERROR: SKIPPING SONG - FAILED TO GET CONTENT STREAM
Track_ID: 70CWF9eT1tXx7gID9oYt3x

I can't download it.

Civan $ python -m zotify track https://open.spotify.com/track/70CWF9eT1tXx7gID9oYt3x?si=fR8c_EjgRteZOTAcPzKPfg --bulk-wait-time 45 [∙●∙] Logging in... WARNING: No valid content_id found in track, skipping... [∙●∙] Fetching track information... {} {'id': '70CWF9eT1tXx7gID9oYt3x', 'name': 'fıs?', 'artists': ['KAVAK', 'BAKAN'], 'artist_ids': ['24OGdBr3r58ksMLJkMXZZY', '3pELTNcBXbfHktNPFTUsNW'], 'release_date': '2025-08-22', 'year': '2025', 'track_number': '01', 'total_tracks': '01', 'album': 'fıs?', 'album_artists': ['KAVAK', 'BAKAN'], 'disc_number': '1', 'compilation': 0, 'duration_ms': 136486, 'image_url': 'https://i.scdn.co/image/ab67616d0000b2731feb941ef64c8c04826e99a4', 'is_pl[∙●∙] Preparing download... CRITICAL:Librespot:AudioKeyManager:Audio key error, code: 1 CRITICAL:Librespot:AudioKeyManager:Audio key error, code: 1 ERROR: FAILED TO FETCH AUDIO KEY MAY BE CAUSED BY RATE LIMITS - CONSIDER INCREASING BULK_WAIT_TIME ### | 0/2 [00:01<?, ?url/s] GID: e654b4dd9cb446c1864e41e5ca259c8f - File_ID: a9c0d86702f84cc9d14bc130c63e117a88f1d061 ERROR: SKIPPING SONG - FAILED TO GET CONTENT STREAM Track_ID: 70CWF9eT1tXx7gID9oYt3x I can't download it.
colceagus commented 2025-12-29 14:17:35 -05:00 (Migrated from github.com)

any updates?

any updates?
mortalis13 commented 2025-12-31 20:10:20 -05:00 (Migrated from github.com)

Same error, but a bit different output, don't even get the track info.
For the same track, only using the credentials.json.

python -m zotify --credentials-location credentials.json track https://open.spotify.com/track/70CWF9eT1tXx7gID9oYt3x?si=fR8c_EjgRteZOTAcPzKPfg --bulk-wait-time 45

        [●∙∙] Fetching track information... Spotify API Error (429): API rate limit exceeded

###   SKIPPING SONG - FAILED TO QUERY METADATA   ###
Track_ID: 70CWF9eT1tXx7gID9oYt3x


Invalid response from TRACKS_URL:
{
  "error": {
    "status": 429,
    "message": "API rate limit exceeded"
  }
}

Traceback (most recent call last):
  File "c:\01\venv\Lib\site-packages\zotify\track.py", line 158, in download_track
    track_number, scraped_song_id, is_playable, duration_ms) = get_song_info(track_id)
                                                               ^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\01\venv\Lib\site-packages\zotify\track.py", line 55, in get_song_info
    raise ValueError(f'Invalid response from TRACKS_URL:\n{raw}')
ValueError: Invalid response from TRACKS_URL:
{
  "error": {
    "status": 429,
    "message": "API rate limit exceeded"
  }
}
Same error, but a bit different output, don't even get the track info. For the same track, only using the credentials.json. `python -m zotify --credentials-location credentials.json track https://open.spotify.com/track/70CWF9eT1tXx7gID9oYt3x?si=fR8c_EjgRteZOTAcPzKPfg --bulk-wait-time 45` ``` [●∙∙] Fetching track information... Spotify API Error (429): API rate limit exceeded ### SKIPPING SONG - FAILED TO QUERY METADATA ### Track_ID: 70CWF9eT1tXx7gID9oYt3x Invalid response from TRACKS_URL: { "error": { "status": 429, "message": "API rate limit exceeded" } } Traceback (most recent call last): File "c:\01\venv\Lib\site-packages\zotify\track.py", line 158, in download_track track_number, scraped_song_id, is_playable, duration_ms) = get_song_info(track_id) ^^^^^^^^^^^^^^^^^^^^^^^ File "c:\01\venv\Lib\site-packages\zotify\track.py", line 55, in get_song_info raise ValueError(f'Invalid response from TRACKS_URL:\n{raw}') ValueError: Invalid response from TRACKS_URL: { "error": { "status": 429, "message": "API rate limit exceeded" } } ```
carlyd95 commented 2026-01-01 01:01:40 -05:00 (Migrated from github.com)

Also having the same issue. I have an automated script and it has not ran for the past 4 days. I had to redo my credentials.json and after that I am getting the same error:

`

WARNING: API ERROR (TRY 0) - RETRYING

429: API rate limit exceeded

[∙∙●] Fetching track information...                                            

WARNING: API ERROR (TRY 1) - RETRYING

429: API rate limit exceeded

    [∙∙∙] Fetching track information...                                                                                                                     

API_ERROR: API ERROR (TRY 2) - RETRY LIMIT EXCEDED

429: API rate limit exceeded

    [●∙∙] Fetching track information...                                                                                                                     

ERROR: SKIPPING SONG - FAILED TO QUERY METADATA

Track_ID: 1Jo0Zg7XlrA6z0mFTZVdkn

`

Also having the same issue. I have an automated script and it has not ran for the past 4 days. I had to redo my credentials.json and after that I am getting the same error: ` ### WARNING: API ERROR (TRY 0) - RETRYING ### ### 429: API rate limit exceeded ### [∙∙●] Fetching track information... ### WARNING: API ERROR (TRY 1) - RETRYING ### ### 429: API rate limit exceeded ### [∙∙∙] Fetching track information... ### API_ERROR: API ERROR (TRY 2) - RETRY LIMIT EXCEDED ### ### 429: API rate limit exceeded ### [●∙∙] Fetching track information... ### ERROR: SKIPPING SONG - FAILED TO QUERY METADATA ### ### Track_ID: 1Jo0Zg7XlrA6z0mFTZVdkn ### `
Marc0svi55an1 commented 2026-01-01 23:11:18 -05:00 (Migrated from github.com)

same here! is this related to the fact that someone downloaded all spotify´s content?

same here! is this related to the fact that someone downloaded all spotify´s content?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zotify-dev/zotify#321
No description provided.