Custom Plugin Suggestion

Hello,

I intend to develop a plugin / API that generates custom data as following for individual site pages.

user city, time of the day of visit, referred by

Currently, this is data can be retrieve only for main domain i.e. example.com

I want this data for example.com/page1, example.com/page2 etc.

I intend to modify getpageurl API to do this. A never developed plugin for piwik. Any suggestions in this regard are welcome as how to go about this. I want to able to able to get above details by passing website url as API request.

Thank you.