Get all token holders

Hey there,

I was wondering if there’s a way to get all the token holders in similar way to polygonscan holder’s tab, I tried with token => owners API endpoint but the data that I retrieve is not equal to data that polygonscan shows on holder’s tab. I’ve noticed that the length of owners retrieved by API is always 500. Do exist a limit on that function?
Thanks in advance!

you have to use pagination to get all the data, offset param

Please sr can you tell me by an example how to do it? I’m using python

    provider = '' % address
    headers = {
        "Content-Type": "application/json",
        "X-API-Key": "<my_apy_key>"
    with app.app_context():
        statusResponse = requests.request("GET", provider, headers=headers)

How can I use pagination? I get the first page everytime

remove that limit part and use offset=500