NFT Api needs cursor, but it's undocumented

Hello,
Iโ€™m using the NFT Api, and when trying to get the owners with an offset > 10 000 I get this error
{'message': 'Offset greater than 10000 not allowed. Please Use cursor instead.'}

But the cursor is not documented anywhere https://github.com/nft-api/nft-api#getnftowners

What should I do ?
Thank you and have a nice day

there is an example here on how to use cursor in python:
https://docs.moralis.io/misc/rate-limit#example-of-how-to-use-cursor-python

2 Likes

ok, there is also another example using node js here

https://docs.moralis.io/misc/rate-limit#example-of-how-to-use-cursor-nodejs

โ€ฆ but it remains still unclear to me of what cursor is and how to use itโ€ฆ

For example I console log the response and I got this:

cursor:  eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3aGVyZSI6eyJ0b2tlbl9hZGRyZXNzIjoiMHg4NWNmZTM3ZTNmZThmNWQ1YWM2NDQ4NmM3OTZkNTYzZTMzMGE2MzJhIn0sImxpbWl0Ijo1LCJvZmZzZXQiOjAsIm9yZGVyIjpbWyJ0b2tlbl9oYXNoIiwiREVTQyJdXSwiZ3JvdXAiOlsidG9rZW5faGFzaCIsInRva2VuX2FkZHJlc3MiLCJ0b2tlbl9pZCIsImJsb2NrX251bWJlcl9taW50ZWQiXSwicGFnZSI6MSwia2V5IjoiODVjMzdhNzg0OTQ2MTU2MWY2MTBmNGY2N2M1ZTUxMzMiLCJ0b3RhbCI6OSwiaWF0IjoxNjU1MzczMTk0fQ.Hn239CjPNPPlzmfg_-LA1I8Zeymu_-k6G2mJZbbKGMc

i dont have a clue of what to do with thatโ€ฆ

you use it for the next query/request as parameter, you will understand when you read the code that uses it

1 Like