API - Actions get pageurls and pagetitles in one REST query dataset

Hi everyone,

with the API requests, I am trying to fetch information regarding the top pages, viewed of a tracked website. For the results I want to query the title of each page as well as its url (for direct access) in one API request - or at least that’s what I’ve tried so far using the documentation. My results so far gives me either all information regarding page urls or page titles but I’m kind of struggeling on how to fetch these information in one call.

This is what gets me the desired information to build the links for each entry without the page titles:

https://matomo.mydomain.org/?module=API&idSite=1&method=Actions.getPageUrls&period=year&date=today&flat=1&filter_limit=10&format=JSON&token_auth=000000000000000000000

And this gives me everything with the page titles, except the urls:

https://matomo.mydomain.org/?module=API&idSite=1&method=Actions.getPageTitles&period=year&date=today&flat=1&filter_limit=10&format=JSON&token_auth=000000000000000000000

I’ve also tried to setup a Bulk request, combining both of them but honestly cannot find a way to connect each dataset to one and another between both of them. It looks like so:

https://matomo.mydomain.org/?module=API&idSite=1&method=API.getBulkRequest&format=JSON&urls[]=module%3DAPI%26method%3DActions.getPageUrls%26idSite%3D1&urls[]=module%3DAPI%26method%3DActions.getPageTitles%26idSite%3D1&period=year&date=today&flat=1&filter_limit=10&token_auth=000000000000000000000

Is there any way to get both information somehow within one API call so I can build up a list for each item with its page title and also setup the link with the corresponding url as well?

Thanks for all your help and support!