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

**URL:** https://www.patreondevelopers.com/t/how-to-get-a-list-of-members-of-patreon-page-is-it-even-possible-with-v2/8733
**Category:** Uncategorized
**Created:** [April 3, 2024, 10:54am UTC](https://www.patreondevelopers.com/t/how-to-get-a-list-of-members-of-patreon-page-is-it-even-possible-with-v2/8733 "2024-04-03T10:54:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Abu3safeer](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/abu3safeer/32/2604_2.png) [@Abu3safeer](https://www.patreondevelopers.com/u/Abu3safeer)
#### Post date: [April 3, 2024, 10:54am UTC](https://www.patreondevelopers.com/t/how-to-get-a-list-of-members-of-patreon-page-is-it-even-possible-with-v2/8733/1 "2024-04-03T10:54:05Z")

</div>

Hello.

I tried to use this code:

```auto
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:

> [@Problems with API to get list of patrons](https://www.patreondevelopers.com/t/problems-with-api-to-get-list-of-patrons/7134):
>
> Hi, Im trying to use the API to get the latest list of patrons, however I can’t get the API to work properly, the code I used: import requests # Replace these values with your own client\_id = ‘YOUR\_CLIENT\_ID’ client\_secret = ‘YOUR\_CLIENT\_SECRET’ access\_token = ‘YOUR\_ACCESS\_TOKEN’ campaign\_id = ‘YOUR\_CAMPAIGN\_ID’ # Authenticate with the Patreon API auth\_url = ‘[https://www.patreon.com/api/oauth2/token](https://www.patreon.com/api/oauth2/token)’ auth\_data = { ‘grant\_type’: ‘client\_credentials’,\* ‘client\_id’: client\_id,\* ‘client\_…

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?

---

<div class="post-metadata">

### Author: ![Abu3safeer](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/abu3safeer/32/2604_2.png) [@Abu3safeer](https://www.patreondevelopers.com/u/Abu3safeer)
#### Post date: [April 3, 2024, 10:59am UTC](https://www.patreondevelopers.com/t/how-to-get-a-list-of-members-of-patreon-page-is-it-even-possible-with-v2/8733/2 "2024-04-03T10:59:46Z")

</div>

There is no proper documentation for this part.

---

<div class="post-metadata">

### Author: ![Abu3safeer](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/abu3safeer/32/2604_2.png) [@Abu3safeer](https://www.patreondevelopers.com/u/Abu3safeer)
#### Post date: [April 3, 2024, 11:08am UTC](https://www.patreondevelopers.com/t/how-to-get-a-list-of-members-of-patreon-page-is-it-even-possible-with-v2/8733/3 "2024-04-03T11:08:35Z")

</div>

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

```auto
{'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.'}]}

```

---

<div class="post-metadata">

### Author: ![Abu3safeer](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/abu3safeer/32/2604_2.png) [@Abu3safeer](https://www.patreondevelopers.com/u/Abu3safeer)
#### Post date: [April 3, 2024, 11:47am UTC](https://www.patreondevelopers.com/t/how-to-get-a-list-of-members-of-patreon-page-is-it-even-possible-with-v2/8733/4 "2024-04-03T11:47:37Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)
#### Post date: [April 8, 2024, 10:54pm UTC](https://www.patreondevelopers.com/t/how-to-get-a-list-of-members-of-patreon-page-is-it-even-possible-with-v2/8733/5 "2024-04-08T22:54:50Z")

</div>

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.
