@KASUMUGaffar-6276 Thanks for reaching out. Currently there is no such API to provide that sort of information.
You are most welcome to suggest this as an Idea on our feedback platform, to which other customers can vote. Our PG keeps checking these forums, and when any idea has sufficient votes, they can work towards it.
If the suggested response helped you resolve your issue, do click on "Mark as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.