How to Monitoring Trending Posts?

You might be able to get some useful data by monitoring the daily and weekly top topics routes. Top topics are calculated based on views, likes, and reply count. Daily top topics are recalculated once every hour. Weekly top topics are only recalculated once per day, so there would be no point in querying the route more often than that.

The best way to get the exact data you are looking for would be to write a Data Explorer query and then run the query through the API. On our hosting, the Data Explorer plugin is available on the Business plan.