Difference in data with API calls

I am using Piwik API calls and getting huge difference in data. I am using VisitsSummary.get API call with eventCategory segment for an event category and Events.getCategory API call for nb_visits and nb_uniq_visitors. The difference in data between these two endpoints is quite large, it’s around 5-10 times. Is it supposed to be like this or is it a bug?

We are seeing similar issues. Our Piwik UI shows different numbers than the VisitsSummary.get endpoint is returning.

Anurag, how does your VisitsSummary.get compare to your UI numbers?

Here’s the API call we’re making:
https://notourrealdomain/index.php?module=API&method=VisitsSummary.get&idSite=18419&period=range&date=2016-05-23,2016-06-15&segment=referrerName==2260773&format=JSON&token_auth=notourrealtoken

And here are the results:
{“nb_visits”:30,“nb_actions”:31,“nb_visits_converted”:0,“bounce_count”:29,“sum_visit_length”:161,“max_actions”:2,“bounce_rate”:“97%”,“nb_actions_per_visit”:1,“avg_time_on_site”:5}

However, in the UI, we see very different numbers:

Hello

can you please comment in the similar bug report here: Visits are count differently between segmentation and visits - devices · Issue #10261 · matomo-org/piwik · GitHub

the more reports we get the more likely we are to find the issue and solve it :+1: