APIs & Integrations

PowerMyAnalytic
Top Contributor

get all campaigns data

SOLVE

Hi HubSpot,

 

I tryed to get campaign data with

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?

2 Accepted solutions
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

get all campaigns data

SOLVE

Hi, @PowerMyAnalytic.

 

I empathize with your frustration.

 

I'm not aware of plans to release a batch version of the Get campaign data endpoint, but I certainly see the value.

 

Could you post a feature request on the Community Ideas Forum per these best practices? 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.

Isaac Takushi

Associate Certification Manager

View solution in original post

6 Replies 6
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

get all campaigns data

SOLVE

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.

0 Upvotes
PowerMyAnalytic
Top Contributor

get all campaigns data

SOLVE

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

IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

get all campaigns data

SOLVE

Hi, @PowerMyAnalytic.

 

I empathize with your frustration.

 

I'm not aware of plans to release a batch version of the Get campaign data endpoint, but I certainly see the value.

 

Could you post a feature request on the Community Ideas Forum per these best practices? 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.

Isaac Takushi

Associate Certification Manager
PowerMyAnalytic
Solution
Top Contributor

get all campaigns data

SOLVE
IsaacTakushi
HubSpot Employee
HubSpot Employee

get all campaigns data

SOLVE

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

Isaac Takushi

Associate Certification Manager
IsaacTakushi
HubSpot Employee
HubSpot Employee

get all campaigns data

SOLVE

Just to add my two cents here, @PowerMyAnalytic, you can also use this endpoint from the new Marketing Email API 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.

Isaac Takushi

Associate Certification Manager