# get all campaigns data

**URL:** <https://community.hubspot.com/t/get-all-campaigns-data/15004>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [June 27, 2019, 8:35am UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004 "2019-06-27T08:35:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PowerMyAnalytic](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/powermyanalytic/32/78471_2.png) [@PowerMyAnalytic](https://community.hubspot.com/u/PowerMyAnalytic)\
**Post date:** [June 27, 2019, 8:35am UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004/1 "2019-06-27T08:35:23Z")

</div>

Hi HubSpot,

I tryed to get campaign data with

[https://developers.hubspot.com/docs/methods/email/get\_campaign\_data](https://developers.hubspot.com/docs/methods/email/get_campaign_data)

for single campaign in single requset it works good.

But my client have 1500 campaigns,

and my 1500 individual requests get ‘ **You have reached your ten\_secondly\_rolling limit.** ’ error.

I didn’t found batch api for this.

Do you have some solution?

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [June 27, 2019, 3:35pm UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004/2 "2019-06-27T15:35:34Z")

</div>

Hey @PowerMyAnalytic ,

If you need to pull the campaign data for every campaign, you’ll likely need to enforce some rate limiting in your code, so that you don’t bump into the per-second limit. This might look different depending on the language your using, but it can be as simple as adding a sleep() function in your code.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 27, 2019, 3:59pm UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004/3 "2019-06-27T15:59:20Z")

</div>

Just to add my two cents here, @PowerMyAnalytic, you can also use [this endpoint](https://developers.hubspot.com/docs/methods/cms_email/get-the-statistics-for-a-marketing-email) from the new [Marketing Email API](https://developers.hubspot.com/docs/methods/lists/marketing-email-overview) to get data for a single marketing email, which can include multiple campaigns (sends). Depending on the data you’re looking for, this could also help conserve calls.

---

<div class="post-metadata">

**Author:** ![PowerMyAnalytic](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/powermyanalytic/32/78471_2.png) [@PowerMyAnalytic](https://community.hubspot.com/u/PowerMyAnalytic)\
**Post date:** [July 8, 2019, 11:33am UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004/4 "2019-07-08T11:33:55Z")

</div>

Thank you for the answer.

I understand now the 10/sec limit.

But, can you provide **batch option**?

That can decrease the number of requsts

1500 requests to get campaigns data is not good to us

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [July 9, 2019, 1:35pm UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004/5 "2019-07-09T13:35:21Z")

</div>

Hi, @PowerMyAnalytic.

I empathize with your frustration.

I’m not aware of plans to release a batch version of the [_Get campaign data_](https://developers.hubspot.com/docs/methods/email/get_campaign_data) endpoint, but I certainly see the value.

Could you post a feature request on the Community [Ideas Forum](https://community.hubspot.com/t5/custom/page/page-id/ideaslandingpage) per [these best practices](https://community.hubspot.com/t5/Guidelines-Announcements/HubSpot-Idea-Exchange-Submission-Guidelines/m-p/11670#M10)? Upvotes and comments help the product teams prioritize ideas which have the greatest potential impact on users, so I’ll be happy to upvote if you share a link below.

---

<div class="post-metadata">

**Author:** ![PowerMyAnalytic](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/powermyanalytic/32/78471_2.png) [@PowerMyAnalytic](https://community.hubspot.com/u/PowerMyAnalytic)\
**Post date:** [July 11, 2019, 8:27am UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004/6 "2019-07-11T08:27:42Z")

</div>

Thank you!

[https://community.hubspot.com/t5/HubSpot-Ideas/get-all-campaigns-data/idi-p/280062#M37656](https://community.hubspot.com/t5/HubSpot-Ideas/get-all-campaigns-data/idi-p/280062#M37656)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [July 11, 2019, 11:52am UTC](https://community.hubspot.com/t/get-all-campaigns-data/15004/7 "2019-07-11T11:52:43Z")

</div>

Thank you, @PowerMyAnalytic. I have upvoted the feature request!
