Example per-article monthly data for Jan and Feb 2016:
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia/all-access/user/Barack_Obama/monthly/2016010100/2016030100
The response gives timestamps with the 1st day of the month in YYYYMMDDHH format, e.g. 2016010100 and 2016020100
Example aggregate monthly data for Jan and Feb 2016:
https://wikimedia.org/api/rest_v1/metrics/pageviews/aggregate/fr.wikipedia.org/all-access/user/monthly/2016010100/2016030100
The response gives back an invalid timestamp, with zero as the day of the month, 2016010000 and 2016020000. The response timestamp should match what is considered valid for the request, e.g. if I use 2016010000 and 2016020000 I get an error:
https://wikimedia.org/api/rest_v1/metrics/pageviews/aggregate/fr.wikipedia.org/all-access/user/monthly/2016010000/2016020000