ProjectOpenSea / opensea-js

TypeScript SDK for the OpenSea marketplace
https://docs.opensea.io/reference
MIT License
2.28k stars 964 forks source link

GET request giving 403 error #356

Closed hugos closed 2 years ago

hugos commented 2 years ago

I'm trying to retrieve the asset info from a specific collection using the asset endpoint.

Example:

https://api.opensea.io/api/v1/asset/0x1a92f7381b9f03921564a437210bb9396471050c/2000/?format=json

Now, if you open that on your browser, it works flawlessly, but on your app or postman it just gives a 403 error by CloudFlare.

What is going on and how do I fix this? Any ideas?

0xkubt commented 2 years ago

Yup same here, started having the issue this morning (was working fine last night and made no changes since)

hugos commented 2 years ago

Yup same here, started having the issue this morning (was working fine last night and made no changes since)

Ok so, was it working yesterday without the need for an API key?

If this is the case I find it poor on their part not to warn developers on their social media and/or status page.

derwaldgeist commented 2 years ago

Same here. I only get a CloudFlare 403.

Funst3r commented 2 years ago

Guys they mentioned it in discord and wrote it in the documentation. They had many bots using theire API so they decided that everyone need to request an API key.

hugos commented 2 years ago

Guys they mentioned it in discord and wrote it in the documentation. They had many bots using theire API so they decided that everyone need to request an API key.

I do have one, yet it doesn't work still.

Can you access it with postman using an api key?

esteban-OpenSea commented 2 years ago

You need to request an API key. You can request it here: https://docs.opensea.io/reference/request-an-api-key

derwaldgeist commented 2 years ago

I requested mine ages ago. When will they get processed?!