API Endpoint for Page Details

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

Hi @Yoli_Mmutsi,

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 (/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 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!

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” , I tried making additions of frequency in the URL but I keep getting errors