Reporting API getDownload encoding downloadUrl

Hi all.

I am brand new to Piwik and am trying to get the API to report the number of downloads of a specific file. From the documentation I have

  • Actions.getDownload (downloadUrl, idSite, period, date, segment = ‘’)
    and I am told that I need to urlencode the downloadUrl.

My download url (for testing) is:
and urlencoded it becomes
so my full query becomes:

But when I run this, I get an empty result although I can see the downloads through the web interface.
Can anybody please tell me what I am doing wrong?

your API URL request looks correct. Could you call instead Actions.getDownloads and check that your URL is returned as you expect?