How to get more then 10k listings or listings for all the assets in a collection from the listings api
There are 2 apis to get orders info:
- https://docs.opensea.io/reference/reference-getting-started
- https://docs.opensea.io/reference/asset-listings
Both requires contract_address + token id
With the first one, at least it is possible to get more then one asset listing.
Is there any way to get listings for all the assets in a collection?
Also the first one uses offset based pagination. Not the cursor one.
Check this out: https://docs.opensea.io/reference/getting-assets
Pagination past 10k is not yet supported. We are aware of this and will make note of this feature request
For anyone reading this:
you can get 20K by flipping the order and getting 10K at front and 10K from back.
Is there still no way to get all current listings of a collection instead of specifying token id(s)? I can get all the assets and see if there are listings but this is very inefficient and makes pagination/sorting extremely challenging
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
Do not close this issue. 🙏
you can now use:
- https://docs.opensea.io/reference/retrieve-all-listings
- https://docs.opensea.io/reference/retrieve-all-offers
please open a new issue with details on how to reproduce if you are still having issues