Hi @magda,
you are able to do the following in a custom action:
reversed_events = list(reversed(tracker.events))
This results in a list over which you can iterate to the point of interest. I recommend to take a look at the tracker’s full JSON to get an idea of the information that is stored in there
Did that help?
Kind regards
Julian