@zhakirsetie Well, it’s going to be difficult. If you don’t know who’s using the API then you log who’s using it and reach out with them to warn them of its pending closure and point them to the new API to use.
So, set a sunset date, and then disable the API at that date. If the API is key to someone’s application, then they’re obviously going to seek out information and if you have it prominently displayed that version X was retired on whatever date after however long notice, and to use version Y in place.