REST API is used to exchange information between two computers over the Internet securely. It is an approach used to create scalable, efficient, and standardized web APIs that allow different systems to communicate and interact with each other over the Internet.