Why monthly Unique visitors differ from the sum of daily unique visitors of that same month?

Hi,
Could you explain me why the amount of monthly unique visitors differs from the sum of the daily unique visitors of that same month? Example: if I export the main metrics by month, the amount of unique visitors for December 2017 is 26.006. If I export the main metrics table by day and I sum up the unique visitors of the 31 days of December 2017, I get 36.311 unique visitors for that month…
Many thanks in advance,
Reinoud.

Have you tried doing the same with an HTTP REST request? The values that you enter for the &date and &period parameters might offer a clue.

Roddy

Hi - I have the same error, the count of unique visitors are different when I filter by date range and month. How do I do a HTTP REST request?

Thanks much,
Kausaliya Rangarajan

Hi, Kausaliya!

Matomo has changed the manual and I can no longer find all of the pages that I used to teach myself how to retrieve data on my own. The best that I can offer at this time is the following page and example.

PAGE: https://developer.matomo.org/guides/piwiks-reporting-api

EXAMPLE:
`https://…/matomo/index.php

?module=API
&method=ImageGraph.get
&idSite=1
&apiModule=UserCountry
&apiAction=getCountry
&token_auth=...
&period=year
&date=yesterday`

You must supply your own authorization code and path.

Roddy

Thanks Roddy, will try this!