There is no such API within TTN. You will have to make it yourself. What you can do is create an endpoint where UDP traffic is duplicated to by a gateway where you will collect and analyse data.
I have made this as A POC on Node Red.
1 Like