How to change page on NFT owners API

Hi, I’m fetching NFT owners from the API but can’t seem to change from ā€˜page 0’. There are 10K NFTs and I only get 500. How can I iterate through the pages? Or how can I get all 10K NFTs?

My URL
https://deep-index.moralis.io/api/v2/nft/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d/owners

Response:
{ā€˜total’: 10000,
ā€˜page’: 0,
ā€˜page_size’: 500,
ā€˜result’: [ list with 500 NFTs …

Hi, use the offset parameter at the end of the query.

E.g.
?offset=0&limit=500 is ā€œpage 0ā€, ?offset=500&limit=500 is ā€œpage 1ā€. The page number just becomes the offset / limit.

You’re probably locked from getting data past 500 if that’s the default (would you want to get 10,000 all at once as well) so you’ll have to iterate through the list with additional queries.

Thanks, worked great. You should add this to the documentation!

Scratch that, you should add a parameter ?page=x to the url!

You can suggest that at https://roadmap.moralis.io/

Pages would be a bit easier to use for sure.