How to check for new followers while my bot is online using REST?



Please drop an example as well, if possible.


First thing to say is that if you’re looking to do this for the purpose of automated Tweets or replies, you should pay close attention to the automation rules and our recent policy clarification.

The endpoint you’ll need to poll is GET followers/list. Since you’ve specified use of the REST API, you’ll need to regularly check if the list has changed to detect new followers.