How to get API actions.getpageurl the parameter pageUrl working?

Hi, i’m currently have a request to display a sepecific page’s page view , below is my trying but doesn’t work:

http://piwik.mysite.com/index.php?module=API&method=Actions.getPageUrls&pageUrl=https://www.mysite.com/event/526/&format=html&idSite=1&period=day&date=today&token_auth=***

what i always can get from the request is a level 1 directory of my website’s page view, what ever i try for https://www.mysite.com/event/526/ this kind of link doesn’t work.

if you can make an example from your demo to show how to get one URL or Page’s result will be great!

Thanks!

hi there, you must first URL encode the parameter before sending to Piwik. see URL Decoder/Encoder

thanks! Matt! it works!