by My personal experience is that many people assume that whenever I talk about APIs, I am talking about REST. Not only people, even big organizations, banks, and companies limiting themselves to considering APIs only to REST.
For example, I heavily work in Java, so I will take an example from Java API only.
I hope it is clear now that APIs are not equal to only REST.