Reporting API Reference does not return data for specific date ranges


#1

Hi everyone,

I want to get data from the Matomo reporting API for specific date ranges. To do this, I would type:

https://example.example/?module=API&method=Live.getLastVisitsDetails&idSite=1&date=previous7&period=range&format=json&token_auth=example

But the API only returns data for today, in this case. I’ve tried other options as well without any satisfying results. Is my API request incorrect or is it some kind of bug?

Thank you very much for your help!


(Peterbo) #2

Try to append the parameter &filter_limit=-1 if you have many visits. The result is probably limited to x results (without the parameter).

But careful: The resultset can be quite large.


#3

Thanks a lot! That solved my problem. :slight_smile: