Getting visitors for a specific URL

We are considering using Piwik for our web application, so many great features. I have a question that I cannot find an answer to after reviewing docs on API. Is it possible, using API, to get visitor count for a dynamic URL within a domain. For example:

domain.com/product.php?id=101
domain.com/product.php?id=102
domain.com/category.php?id=501
domain.com/category.php?id=502

If it is possible, can you point me in a right direction in docs / show example? Thanks

Yes, you can use: http://piwik.org/docs/analytics-api/reference/#Actions

in particular the function Actions.getPageUrl (pageUrl, idSite, period, date, segment = ‘’)

Can you tell me how to do this? I have been trying for a few hours to get a page counter and I don’t know how to fix it.
I have tried:


$url = 'index.php?video=1234';
$resulting = file_get_contents("http://www.website.com/piwik/?module=API&method=Actions.getPageUrl&pageUrl=$url&idSite=1&period=range&date=2013-04-05,today&format=php&token_auth=$token_auth");

But that doesn’t work… :frowning:

URL should be full URL + should be URL encoded