APIs & Integrations

PowerMyAnalytic
Contributeur de premier rang

get all campaigns data

Résolue

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 Solutions acceptées
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

get all campaigns data

Résolue

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

Voir la solution dans l'envoi d'origine

PowerMyAnalytic
Solution
Contributeur de premier rang

get all campaigns data

Résolue
6 Réponses
Derek_Gervais
Ancien salarié HubSpot
Ancien salarié HubSpot

get all campaigns data

Résolue

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 Votes
PowerMyAnalytic
Contributeur de premier rang

get all campaigns data

Résolue

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

Résolue

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
Contributeur de premier rang

get all campaigns data

Résolue
IsaacTakushi
HubSpot Employee
HubSpot Employee

get all campaigns data

Résolue

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

Isaac Takushi

Associate Certification Manager
IsaacTakushi
HubSpot Employee
HubSpot Employee

get all campaigns data

Résolue

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