API methods Actions.XXX
return empty with period set to range and date between first and last day of current month on matomo 3.X
#18068
Labels
answered
For when a question was asked and we referred to forum or answered it.
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
The issue occurs when the
period
parameter is set torange
and thedate
parameter set to first and last day of current month:This API call with
period=range
anddate=2021-09-01,2021-09-29
returns data:whereas this one with
period=range
anddate=2021-09-01,2021-09-30
returns empty (http status code 200):The same issue happens with other Actions.XXX methods:
https://analytics.company.com/?module=API&method=Actions.getPageUrls&idSite=4&period=range&date=2021-09-01,2021-09-30&format=JSON&token_auth=BRuebEp5YJOxn0B3oFRUdur4ReS3K99&flat=1&filter_limit=-1&expanded=1
https://analytics.company.com/?module=API&method=Actions.getPageTitles&idSite=4&period=range&date=2021-09-01,2021-09-30&format=JSON&token_auth=BRuebEp5YJOxn0B3oFRUdur4ReS3K99&flat=1&filter_limit=-1&expanded=1
https://analytics.company.com/?module=API&method=Actions.getEntryPageUrls&idSite=4&period=range&date=2021-09-01,2021-09-30&format=JSON&token_auth=BRuebEp5YJOxn0B3oFRUdur4ReS3K99&flat=1&filter_limit=-1&expanded=1
...
but not with past months:
https://analytics.company.com/?module=API&method=Actions.getDownloads&idSite=4&period=range&date=2021-08-01,2021-08-30&format=JSON&token_auth=BRuebEp5YJOxn0B3oFRUdur4ReS3K99&flat=1&filter_limit=-1&expanded=1
https://analytics.company.com/?module=API&method=Actions.getDownloads&idSite=4&period=range&date=2021-07-01,2021-07-31&format=JSON&token_auth=BRuebEp5YJOxn0B3oFRUdur4ReS3K99&flat=1&filter_limit=-1&expanded=1
Workaround with
period=month&
not workingAccording to the doc, we tried to use
period=month
:The API call returns incomplete data, some entries are missing.
Expected Behavior
API call should return a JSON response with data from the first day until the last day of this month.
Current Behavior
API call return empty response.
Steps to Reproduce (for Bugs)
API calls on demo.matomo.cloud demo site work fine:
The demo site is running matomo v4.4.1 whereas our instance is v3.14.1
Environment
Cheers,
ben
The text was updated successfully, but these errors were encountered: