What does an API return?

APIs are driven by a set of specific technologies, making them easily understood by developers. … Then, instead of returning HTML to represent the information like a website would, an API returns data in one of two possible formats: Extensible Markup Language (XML) JavaScript Object Notation (JSON)

For More Information Please Refer: https://project-open-data.cio.gov/api-basics/