Timestamp in API Segmentation

Hello there,

I am using Piwik for my company’s site, and making API call using Live.getLastVisitsDetails method. Everything has been going smoothly so far. The only thing that annoyed me is that I couldn’t precise the date time in the segmentation for the API to select all the visits which are after a specific time. There is a similar post about timestamp in API segmentation, and someone mentioned to add a segment visitDatetime that would accept a timestamp or date time in String. I don’t know whether we already have that feature in the segmentation or not? Thank you.


I use the segment to break down by before, specific or after certain times of the day.

For example;

Return results where the Server time (hour) is before midday.



Same as above, but taking into consideration the time zone of your User/Visitor and not your host.

Hopefully I have not misunderstood your query.