• frednomoon over 4 years ago

    Hi there guys,

    I'm trying to build a web-based application (predominantly for my own use), which takes a list of "favourited" labels or artists and generates a "newsfeed" from a number of API calls.

    Obviously my application needs to limit the number of HTTP requests it is making but I don't really understand the extent to which I need to do so.

    As far as I am aware, the API limits an IP address to "240 requests per minute"

    At this stage when testing my application, it makes 14 requests over the period of 20 seconds then starts getting 429 errors. I would've thought at a rate of significantly less than 1 per second, I would be expected to stay well under 240 a minute.

    Have I missed something here?

  • Staff 22

    eknudtson over 4 years ago

    Make sure to identify your app via a unique user agent string in your requests.
  • dangerben over 4 years ago

    ran into this myself recently - trying to develop an angularjs service that would run through a web browser - trouble is, using the angular $http service, I am unable to create a custom user-agent string... Are there any other solutions here?
  • Staff 22

    eknudtson over 4 years ago

    Check out this thread : https://www.discogs.com/forum/thread/726937

    You might try setting up your own application server to request items from our API, then have your client talk to your application servers.

Log In You must be logged in to post.