throttlingrate-limitingapple-music

Apple Music Search API rate limit


I'm using Apple Music API to get track/album related information, Search for catalog resources Request.

I'd like to know if there is any rate limit on the API usage (request throttling). I couldn't find any details of this in their Documentation / Stack Overflow / Google. I did not get 429 status code (so far).

Is it the same limit as in iTunes Search API? (here's the related question)

Does anyone have info on this?


Update

Request

curl -i 'https://api.music.apple.com/v1/catalog/ru/search?term=hi+so' -H "Authorization: Bearer ..."

response headers: enter image description here

there's no "X-Rate-Limit" header.


Solution

  • Apparently it varies but there's a header in the response "X-Rate-Limit" in the format "user-hour-lim:10;user-hour-rem:8;" that includes how many requests you can make an hour.

    Forum

    Documentation

    EDIT: Thanks @Satsuki for highlighting that some endpoints may not have a rate limit as described in the documentation.

    If you are requesting anything from the Apple Music Catalog, the request will hit Apple's cache first, which doesn't check your rate limit.