# Retrieving mots popular posts via API

**URL:** <https://community.hubspot.com/t/retrieving-mots-popular-posts-via-api/14372>\
**Category:** APIs & Integrations\
**Tags:** cms-content, developer-tools, webhooks\
**Created:** [May 14, 2019, 5:25pm UTC](https://community.hubspot.com/t/retrieving-mots-popular-posts-via-api/14372 "2019-05-14T17:25:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JeffreyPia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jeffreypia/32/53612_2.png) [@JeffreyPia](https://community.hubspot.com/u/JeffreyPia)\
**Post date:** [May 17, 2019, 2:39pm UTC](https://community.hubspot.com/t/retrieving-mots-popular-posts-via-api/14372/3 "2019-05-17T14:39:17Z")

</div>

Hi Jasmin,

Thanks for getting back to me! Yes, I believe that endpoint should be a good start, especially w/ the param for time\_period. I intend to use PHP and cURL the data in once per day. Think the hapikey should suffice for that?

The authentication part is where I was getting confused. Is it as simple as implementing within the endpoint url?  
i.e. do a cURL to /analytics/v2/reports/pages/[time\_period]?hapikey=[hapikey]&[additional parms]

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fmethods%2Fauth%2Foauth-overview)**

---

_[View the full topic](https://community.hubspot.com/t/retrieving-mots-popular-posts-via-api/14372)._
