APIs & Integrations

PowerMyAnalytic
Top colaborador(a)

get all campaigns data

resolver

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 Solução aceitas
IsaacTakushi
Solução
HubSpot Employee
HubSpot Employee

get all campaigns data

resolver

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

Exibir solução no post original

6 Respostas 6
Derek_Gervais
Alunos da HubSpot
Alunos da HubSpot

get all campaigns data

resolver

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 Avaliação positiva
PowerMyAnalytic
Top colaborador(a)

get all campaigns data

resolver

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
Solução
HubSpot Employee
HubSpot Employee

get all campaigns data

resolver

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
Solução
Top colaborador(a)

get all campaigns data

resolver
IsaacTakushi
HubSpot Employee
HubSpot Employee

get all campaigns data

resolver

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

Isaac Takushi

Associate Certification Manager
IsaacTakushi
HubSpot Employee
HubSpot Employee

get all campaigns data

resolver

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