Segment on VisitCount not working(?)


I try to run a HTTP-API with a segment on VisitCount.
Since I need only pagetitles who have less then a certain count of visits.
Only I do see the segment but I do not see an effect on the data.
I have used the demo-URL to mark my issue:

The last row = segment=visitCount<4.
But in the XML-data I still see nb_visits over 4.

What am I doing wrong or how can I really excersise this segment?

Thanks in advance.

Hi there,

visitCount segment means Number of visits by one visitor, so it will select visits that have visited this website at least N times before this current visti.

What you want is to filter out the result set ? This is not possible to only have the rows with nb_visits > 4 returned, so you will have to do this with your script that calls the API

Hi Matt,

Can be closed. We did find a other way.

Thanks in advance.

How I can get rows with UserCountry.getCountry, where nb_visits > 10 or bounce_count > 10 or sum_daily_nb_uniq_visitors < 3000 …?,today&format=JSON&token_auth=anonymous


Hi there,

It’s not possible yet to do this, but we’d love to implement it. Could you please create a feature request on our tracker? Issues · matomo-org/piwik · GitHub