1

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.

naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259

1 Answers1

4

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.

Shoejep
  • 4,414
  • 4
  • 22
  • 26
  • actually, your link to the documentation is helpful! – naXa stands with Ukraine Mar 04 '20 at 17:04
  • Do you think this is a per user bases or a per token bases. Since this can be a problem if number of users for a app rises. – Satsuki Apr 03 '20 at 08:45
  • @Satsuki It states in the forum link I provided that it's per key being used. – Shoejep Apr 03 '20 at 09:10
  • @Shoejep I was wondering if this is the case for catalog resources. In the [docs](https://developer.apple.com/documentation/applemusicapi/getting_keys_and_creating_tokens#3001403) it says "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. If you are requesting anything from a personalized endpoint, calling it will always check the rate limit." Does this mean that accessing the Apple Music Catalog(like the question above) does not have a rate limit? – Satsuki Apr 03 '20 at 09:35
  • @Satsuki It's possible, it's difficult to say definitely without contacting Apple. – Shoejep Apr 03 '20 at 09:49
  • @Shoejep were you able to get an answer on this? – Rohin Jan 28 '22 at 23:09
  • @Rohin12 You would need to contact Apple to confirm. – Shoejep Jan 29 '22 at 11:07
  • Where would I contact them. I got this message the last time I tried, "Here in Apple Developer Program Support, we provide administrative support to developers regarding App Store Connect, and the developer portal. We do not provide technical support for Apple APIs. " – Rohin Jan 30 '22 at 00:45
  • @Rohin12 I don't know exactly, I don't do anything with Apple anymore. Perhaps you could try a forum post. – Shoejep Jan 30 '22 at 10:33
  • Hm yeah- no response since posting (week ago). Any other ideas? Thanks for help anyway! – Rohin Jan 31 '22 at 12:58
  • @Rohin12 You could just start making requests, if under heavy loads you start getting rate limited then that endpoint is rate limited otherwise it's probably not. – Shoejep Jan 31 '22 at 15:07
  • Might do that although I don’t have developer program access and it’d be bad I think if I purchased it for the rate limit to be low and apply for all users the same – Rohin Feb 01 '22 at 16:35