How to get pageUrl and pageTitle from pageId via API?

Hi all,

I’m currently extracting the Visits Log using the API method Live.GetLastVisitsDetails. I can see a pageId associated to each action and I would like to enrich that information with the URL of the page and also the title. Is there any API method to get this information? I’ve been looking for this in the API reference but I wasn’t able to find anything.
*I’m currently using Matomo Cloud, that’s why I’m using the API instead of querying the database

1 Like

Hi @drprtll
I don’t understand your need.
When I do: https://demo.matomo.cloud/?module=API&method=Live.getLastVisitsDetails&idSite=1&period=day&date=yesterday&format=JSON&token_auth=anonymous
I get this: