How to get a list of members of patreon page? is it even possible with v2?

Hello.

I tried to use this code:

import requests

# Replace these values with your own
client_id = ''
client_secret = ''
access_token = ''
campaign_id = ''

# Authenticate with the Patreon API
auth_url = 'https://www.patreon.com/api/oauth2/token'
auth_data = {

    'grant_type': 'client_credentials',
    'client_id': client_id,
    'client_secret': client_secret,
}
auth_response = requests.post(auth_url, data=auth_data)
access_token = auth_response.json()['access_token']
# Get the list of patrons
patrons_url = f'https://www.patreon.com/api/oauth2/v2/campaigns/{campaign_id}/members'
patrons_headers = {

'Authorization': f'Bearer {access_token}',
}
patrons_response = requests.get(patrons_url, headers=patrons_headers)
patrons = patrons_response.json()['data']
# Extract the names of the patrons
patron_names = [patron['attributes']['full_name'] for patron in patrons]

# Print the list of names
print(patron_names)

I took the code from here:

Now I cannot do anything, the docs does not tell anything, it lacks all important information.

Is it even possible to do it this way?

There is no proper documentation for this part.

Why it returns only errors? is there something broken in patreon servers?

{'errors': [{'challenge_metadata': None, 'code': None, 'code_name': 'InternalError', 'detail': 'An unrecoverable internal server error has occurred.', 'id': '87fbe081-9d90-54fb-aa22-4a155d8d99c8', 'status': '500', 'title': 'Internal Error.'}]}

I have looked everywhere on this forum, looks like no one was able to do it until building a whole system.

I wonder why there is not api calls that can be used to fetch these main data?

There was a hiccup that caused intermittent 500s for some of the users in the past few weeks. Try again and let me know if this is still occurring.