An API is a set of functions and procedures that an operating system or service provides to allow computer programs to request and access some of its capabilities. Web services are frequently just web APIs that can be accessed over a network like the internet and executed remotely. Most web services use RESTful APIs, which define resources with URLs and use HTTP methods like GET and POST to interact with those resources. APIs can return data in formats like JSON or XML.