opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

Throttled requets even with API key

Open macelai opened this issue 5 years ago • 47 comments

Hey, first of all, thanks for this SDK and API that we are using to build a custom NFT store! I'm having some problems using the API key, I'm getting the throttle message with API key on rinkeby and mainnet, we can make like 7 requests before throttled, and then pretty long throttle interval. We are using the /asset/ to get information about every NFT that we are listing so we can display custom info.

Is this the expected behavior? Is there any way to this differently?

macelai avatar Apr 05 '21 20:04 macelai

I am also having this problem, but Throttle happens randomly even on second requests.

I assume this is a bug because the SDK makes 2 requests to place a bid, and often one throttles the other

Mortaro avatar Apr 07 '21 14:04 Mortaro

Hey @nuanyang233, thanks for your response.

The thing is that I have an API key already and it still throttles, even for placing a bid like @Mortaro said.

macelai avatar Apr 08 '21 11:04 macelai

I can confirm that i have the API key set on SDK, i also tried using directly as an API call and had the problem

Mortaro avatar Apr 08 '21 15:04 Mortaro

Hey @snuderl, I don't have that information, I'll send an email, thanks!

macelai avatar Apr 09 '21 12:04 macelai

Same here

draghetto86 avatar Jun 23 '21 18:06 draghetto86

This is happening to me also on Rinkeby network, but can anyone confirm if this is happening in production environments?

jlgasparrini avatar Jun 24 '21 20:06 jlgasparrini

This is happening to me also on Rinkeby network, but can anyone confirm if this is happening in production environments?

yes, happen on production as well

macelai avatar Jun 24 '21 21:06 macelai

I am also having these issues. I haven't tested on production yet.

Has anyone found any workarounds?

benmcmaster avatar Jun 24 '21 22:06 benmcmaster

After contacting OpenSea, they confirmed this is the normal behavior and we made a proxy around it.

For the back-end part we use our key to cache requests and redistribute them to clients, and for front-end only stuff we use no api key so each user has its own throttle limits

Mortaro avatar Jun 24 '21 22:06 Mortaro

Hey, i'm getting the same error. Can you please explain me what i have to do in order to overcome this error? @Mortaro

chahakshah111 avatar Jul 20 '21 07:07 chahakshah111

After contacting OpenSea, they confirmed this is the normal behavior and we made a proxy around it.

For the back-end part we use our key to cache requests and redistribute them to clients, and for front-end only stuff we use no api key so each user has its own throttle limits

Yeah would be nice to know how you used a proxy for sending OS requests

cryptobrokering avatar Aug 23 '21 10:08 cryptobrokering

I there any way to find out about API limits for a certain API key?

zigapk avatar Aug 31 '21 21:08 zigapk

Same issue here also not getting a response back from Opensea on request for API key... need to use sdk to make bids but the throttle issue is so annoying :( Anyone have any idea how to overcome this just for nodejs server app?

judescripts avatar Oct 21 '21 04:10 judescripts

I am also having this problem, but Throttle happens randomly even on second requests.

I assume this is a bug because the SDK makes 2 requests to place a bid, and often one throttles the other

This is exactly the case for us as well ...

judescripts avatar Oct 21 '21 04:10 judescripts

Currently in an identical situation and forced to continue rate limiting my requests. I have X-API-KEY set in my header as a string with my API key in it.

johnnyshankman avatar Oct 24 '21 22:10 johnnyshankman

Anybody know what the limits are for the opensea apis? Running into the exact same issue. You'd think they'd have a higher allowance for API requests for people who have API Keys. But you'd be wrong :D.

alifarooq0 avatar Dec 17 '21 16:12 alifarooq0

also running into this issue. even am getting denied now to the opensea website from my IP address from using my production api

mmlmike010 avatar Dec 23 '21 20:12 mmlmike010

I adjusted my rate to about a request every two seconds and everything was fine but now I am getting a 429 "too many requests" error sometimes. It would be great to know how to avoid this.

SaulMoonves avatar Dec 23 '21 20:12 SaulMoonves

hi,I requested the Opensea API key a few days ago but have not received anything yet, anyone can help me?

angelhtml avatar Jan 08 '22 12:01 angelhtml

The entire policy around the current API is overall a disaster.

The existing limits for querying (take AND, much worse, offset) lead to having to do a lot of queries unnecessarily. The fact that you can't retrieve older entries leads to bombarding the API with polling. Both together result in an unnecessary flood of queries ON BOTH SIDES.

I have tried to implement our interface as gently as possible, but since there is no meaningful paging mechanism and the offset is far too small, I have to poll the API frequently.

As if that wasn't messy enough, I get the error message "Too many requests" and have no idea how to fix this problem. How many requests are allowed with/without an API key? Can this be documented anywhere, please?

The solution is now that every user of the API has to set up a proxy network, instead of simply adapting the API to basic standards? That should not be the solution!

This problem together with the fact that various requests generally end in a 500 error (certain collections, the query of all NFTs sorted by sales price and some others) leads me to the judgment that this API has been implemented bunglingly. For a small company this would not be a problem, but OpenSea is not small and should have more than enough budget.

I would be really happy if the API would be given some time in development in the future and furthermore I would also be happy if my bugreports from 6 months ago would at least get a response.

baba43 avatar Jan 13 '22 18:01 baba43