# How many request can I make per second before I get 429?

**URL:** <https://www.patreondevelopers.com/t/how-many-request-can-i-make-per-second-before-i-get-429/7301>\
**Category:** API Feedback\
**Created:** [April 4, 2023, 9:10am UTC](https://www.patreondevelopers.com/t/how-many-request-can-i-make-per-second-before-i-get-429/7301 "2023-04-04T09:10:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juraj-Masiar](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/juraj-masiar/32/2284_2.png) [@Juraj-Masiar](https://www.patreondevelopers.com/u/Juraj-Masiar)\
**Post date:** [April 4, 2023, 9:10am UTC](https://www.patreondevelopers.com/t/how-many-request-can-i-make-per-second-before-i-get-429/7301/1 "2023-04-04T09:10:01Z")

</div>

I want to use this API:

```auto
/api/oauth2/v2/campaigns/${ID}/members?${params}

```

To get a data of all members but the endpoint returns only 20 results so I’ll need to use cursor and a lot of requests to get the whole list.

**My question is, can I run this in a loop - request by request or do I need to add some “sleep” time between the requests to avoid 429 error?**

Since I have my app already deployed, I don’t want to run experiments that would get me banned for unknown time…

---

<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 4, 2023, 11:28pm UTC](https://www.patreondevelopers.com/t/how-many-request-can-i-make-per-second-before-i-get-429/7301/2 "2023-04-04T23:28:18Z")

</div>

You can request a larger page set. Ie, a 100 result per page set. Just check the pagination section in the docs.

---

<div class="post-metadata">

**Author:** ![Juraj-Masiar](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/juraj-masiar/32/2284_2.png) [@Juraj-Masiar](https://www.patreondevelopers.com/u/Juraj-Masiar)\
**Post date:** [April 5, 2023, 6:52am UTC](https://www.patreondevelopers.com/t/how-many-request-can-i-make-per-second-before-i-get-429/7301/3 "2023-04-05T06:52:19Z")

</div>

I can’t see it there:  
[https://docs.patreon.com/#get-api-oauth2-v2-campaigns-campaign\_id-members](https://docs.patreon.com/#get-api-oauth2-v2-campaigns-campaign_id-members)

> Returns from this endpoint have 1000 results in one page. If pledge events are requested in includes, it has 500 results in one page. Do make sure to paginate your results by using next pagination cursor and cycle until there is no next page cursor in the API return.

(I wish I get 1000 or 500, but I’m getting 20)

Also the example doesn’t show any page-size-like parameter:  
// Sample response for (url decoded) [https://www.patreon.com/api/oauth2/v2/campaigns/{campaign\_id}/members?include=currently\_entitled\_tiers,address&fields[member]=full\_name,is\_follower,last\_charge\_date,last\_charge\_status,lifetime\_support\_cents,currently\_entitled\_amount\_cents,patron\_status&fields[tier]=amount\_cents,created\_at,description,discord\_role\_ids,edited\_at,patron\_count,published,published\_at,requires\_shipping,title,url&fields[address]=addressee,city,line\_1,line\_2,phone\_number,postal\_code,state](https://www.patreon.com/api/oauth2/v2/campaigns/%7Bcampaign_id%7D/members?include=currently_entitled_tiers,address&fields%5Bmember%5D=full_name,is_follower,last_charge_date,last_charge_status,lifetime_support_cents,currently_entitled_amount_cents,patron_status&fields%5Btier%5D=amount_cents,created_at,description,discord_role_ids,edited_at,patron_count,published,published_at,requires_shipping,title,url&fields%5Baddress%5D=addressee,city,line_1,line_2,phone_number,postal_code,state)

This is what I call:

```auto
const url = `https://www.patreon.com/api/oauth2/v2/campaigns/${campaignId}/members?include=currently_entitled_tiers,user&fields%5Bmember%5D=patron_status,last_charge_date,lifetime_support_cents,currently_entitled_amount_cents,email&page%5Bcursor%5D=${next}`;

```

**EDIT:**  
Found it:  
[https://docs.patreon.com/?javascript#pagination-and-sorting](https://docs.patreon.com/?javascript#pagination-and-sorting)  
(it’s a **`page%5Bcount%5D=2000`** parameter)

---

<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 5, 2023, 6:56pm UTC](https://www.patreondevelopers.com/t/how-many-request-can-i-make-per-second-before-i-get-429/7301/4 "2023-04-05T18:56:34Z")

</div>

Check out how the api does pagination:

[https://docs.patreon.com/#pagination-and-sorting](https://docs.patreon.com/#pagination-and-sorting)
