# API Endpoint for Page Details

**URL:** <https://community.hubspot.com/t/api-endpoint-for-page-details/133414>\
**Category:** APIs & Integrations\
**Tags:** cms-content, professional\
**Created:** [May 27, 2025, 1:03pm UTC](https://community.hubspot.com/t/api-endpoint-for-page-details/133414 "2025-05-27T13:03:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoli\_Mmutsi](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@Yoli\_Mmutsi](https://community.hubspot.com/u/Yoli_Mmutsi)\
**Post date:** [May 27, 2025, 1:03pm UTC](https://community.hubspot.com/t/api-endpoint-for-page-details/133414/1 "2025-05-27T13:03:02Z")

</div>

I have went through the API endpoints documentation provided by HubSpot. I just cannot seem to find a URL that gives me the number of PageViews, Page URL, and Page Name as part of its response

---

<div class="post-metadata">

**Author:** ![Josh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josh/32/17115_2.png) [@Josh](https://community.hubspot.com/u/Josh)\
**Post date:** [May 27, 2025, 5:00pm UTC](https://community.hubspot.com/t/api-endpoint-for-page-details/133414/2 "2025-05-27T17:00:10Z")

</div>

Hi [@Yoli\_Mmutsi](https://community.hubspot.com/t5/user/viewprofilepage/user-id/947065),

From what I understand, granular analytics (such as sessions by page) is somewhat limited from the API and there’s not a call that will pull all of the information you’re looking for. I would suggest trying this:  
To get the page name and page URL, use the [Pages API](https://developers.hubspot.com/docs/reference/api/cms/pages) (/cms/v3/pages/site-pages or /landing-pages)—that gives you the metadata for each page, including the name, slug, and full URL.

Then, to get page views, the [Analytics API](https://developers.hubspot.com/docs/reference/api/analytics-and-events/reporting#get-analytics-data-for-specific-objects) v2 endpoint (/analytics/v2/reports/pages/total) is your best option. It returns view data by URL.

Since the Analytics API returns data by URL (not page ID), you’ll need to match up those URLs with the ones from the Pages API to align everything.

This probably isn’t the perfect route, but hopefully you can get the result you’re looking for in the end. Maybe someone has a better solution!

---

<div class="post-metadata">

**Author:** ![Yoli\_Mmutsi](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@Yoli\_Mmutsi](https://community.hubspot.com/u/Yoli_Mmutsi)\
**Post date:** [May 28, 2025, 11:59am UTC](https://community.hubspot.com/t/api-endpoint-for-page-details/133414/3 "2025-05-28T11:59:14Z")

</div>

Hey Josh, this works : /analytics/v2/reports/pages/total. Now is there a way to get the information on a monthly or daily basis e.g “[https://api.hubapi.com/analytics/v2/reports/totals/summarize/daily?start=20240901&end=20241031](https://api.hubapi.com/analytics/v2/reports/totals/summarize/daily?start=20240901&end=20241031)” , I tried making additions of frequency in the URL but I keep getting errors
