APIs & Integrations

JeffreyPia
Member

HubSpot API to get popular posts

SOLVE

Hi folks,

Need some guidance figuring out a solution for this task:

I have a Wordpress blog that uses Hubspot for tracking purposes. My colleague has an account that can access the Analytics. I would like to use an API endpoint (via Javascript or PHP) to return the most popular 6(-ish) posts (URLs are fine), maybe within a date timeframe. I would then use that info to query WordPress and display the respective post content per client request. Ideally I would run this query just once per day, and cache the results.

 

I have tried creating a dev account, but I'm not sure if it being tied to my account would work, or if it needs to be created from my colleague's account. Just not sure what the next steps should be, so any assistance would be greatly appreciated!

 

Thanks in advance,

Jeff

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

HubSpot API to get popular posts

SOLVE

Hi, @JeffreyPia.

 

It looks like this post was moved from the CMS Development board and you posted another one here.

 

@JasminLin and I can answer any additional questions you may have in that thread!

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

HubSpot API to get popular posts

SOLVE

Hi, @JeffreyPia.

 

It looks like this post was moved from the CMS Development board and you posted another one here.

 

@JasminLin and I can answer any additional questions you may have in that thread!

Isaac Takushi

Associate Certification Manager
0 Upvotes