How to find trigger point/ event for TTN storage integration API

Hello All,
I am fetching data from TTN storage integration API and dump into the PostgreSQL database. I run the python script manually for fetching data but I want trigger point for storage integration API i.e. when new data came into API , only then my script run. So how I find trigger point or event happend when new data came into API.

There isn’t one and everyone in the community would prefer you to use either a WebHook or MQTT rather than use the Data Storage as a source to keep the load on the servers down. But if you absolutely must, please only pull data since the last request.

If you need some code to get started, this is well used: GitHub - descartes/TheThingsStack-Integration-Starters: Starter / Template code for various The Things Stack (v3) integrations