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

Can we use opensea graphql for getting assets with query?

Open prodvdc opened this issue 5 years ago • 34 comments

If I check query on following playground, it works. https://api.opensea.io/graphql

But if I integrate the graphql on my next.js project, it does not work. Can we find a way to use the graphql on our customized projects?

prodvdc avatar Mar 18 '21 15:03 prodvdc

@alexanderatallah @taylorjdawson @DJViau Please help me on this issue.

prodvdc avatar Mar 18 '21 15:03 prodvdc

I'm interested to know this as well.

nikkaroraa avatar Aug 25 '21 06:08 nikkaroraa

I have tried to query top NFTs but their cloudflare firewall stops accessing the graphql endpoint. There is no way I found in REST to get top NFTs, the /collection endpoint does not support sorting.

KhaledBinAmir avatar Aug 31 '21 21:08 KhaledBinAmir

I'm struggling with the same issue. The weird thing is it works from postman, but not from cURL or any other way I tried to make the request

hashgarage avatar Sep 01 '21 13:09 hashgarage

same issue here, let me know if anyone finds a work around

imbyoe avatar Sep 01 '21 16:09 imbyoe

I'm having this same issue with python... can't bypass cloudflare :-(

sfichera avatar Sep 01 '21 18:09 sfichera

Same issue here. Any updates on this?

JustroX avatar Sep 03 '21 07:09 JustroX

Any updates? I am able to use the graphql API flawlessly in Graphiql, but not from any application

warneracw21 avatar Sep 23 '21 17:09 warneracw21

Same issue here, the REST api isn't great...

artyrcheek avatar Sep 25 '21 13:09 artyrcheek

@eth0izzle s comment on #66 May be useful to some people

artyrcheek avatar Sep 25 '21 14:09 artyrcheek

Is this not accesible anymore?

joventuraz avatar Sep 28 '21 12:09 joventuraz

https://api.opensea.io/graphql doesn't work for me, I get an "access denied" error

arcticmatt avatar Oct 05 '21 21:10 arcticmatt

+1 would like access to this

braelyn-ai avatar Oct 15 '21 16:10 braelyn-ai

Did anyone managed to make this work?

efthymios1991 avatar Oct 21 '21 23:10 efthymios1991

I'm struggling with the same issue. The weird thing is it works from postman, but not from cURL or any other way I tried to make the request

How did you manage to make this work on postman?

efthymios1991 avatar Oct 21 '21 23:10 efthymios1991

I'm struggling with the same issue. The weird thing is it works from postman, but not from cURL or any other way I tried to make the request

How did you manage to make this work on postman?

Opensea does not allow a different origin than theirs to access their graphql anymore

joventuraz avatar Oct 21 '21 23:10 joventuraz

Sup guys how are u? All I wanted to do was to take a snapshot of current holders for my OS (OPENSTORE) collection... So i've ended up using free account at "moralis.io" in order to get the info I was trying to get with the graphQL... I've used "/api/v2/nft" endpoint... Hope this helps! 👍

sfichera avatar Oct 21 '21 23:10 sfichera

I ended up using a python script and selenium to automate my browser and click through the listing of all my tokens. It's very unfortunate that it was the only option.

braelyn-ai avatar Oct 22 '21 15:10 braelyn-ai

Hey @bboynton97, would you mind sharing the script? I would really appreciate it as I need to implement something similar until OpenSea releases the API for Polygon.

pmosse avatar Oct 27 '21 18:10 pmosse

Hey @sfichera, could you share the complete URL of the API that you used? Do you know of any way to access information about an asset that is in Polygon instead of Ethereum, at OpenSea? Thanks!

pmosse avatar Oct 27 '21 19:10 pmosse