Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: period unit for 'range' #804

Open
wants to merge 1 commit into
base: live
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/5.x/reporting-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ The APIs let you programmatically request any analytics reports from Matomo, for
* _YYYY-MM-DD,YYYY-MM-DD_ for every period (day, week, month or year) in the date range

* Note: if you set 'period=range' to request data for a custom date range, the API will return the sum of data for the specified date range.
When 'period=range', the following keywords are supported for the parameter 'date':
When 'period=range', the implicit period unit is 'day' and following keywords are supported for the parameter 'date':

* _lastX_
* _lastX_
* _previousX_
* _YYYY-MM-DD,YYYY-MM-DD_, both dates can be replaced with magic keywords (the first one does not support _today_ and _yesterday_). eg. _YYYY-MM-DD,today_, _lastMonth,YYYY-MM-DD_ or _lastYear,lastWeek_

Expand Down