I having some trouble understanding the data from the methods using via API tracking.
My guess should be that the number from VisitsSummary.getVisits should be equal to the sum of nb_visits from Actions.getPageUrls, but this is not the case at all.
I have tried your solution and got this result:
VisitsSummary.getVisits = 1410
Actions.getPageUrls (without filter_limit=-1) = 1602
Actions.getPageUrls (with filter_limit=-1) = 2293
Which number is the correct one and why is it so different?