Zell Liew 11/11/2020

What's the difference between an Interface and an API?

Read Original

This article clarifies the often-confused concepts of interfaces and APIs. It explains that an interface is a point of interaction between two systems, using examples like GUI, CLI, and JavaScript's `location` and `fetch`. It then defines an API (Application Programming Interface) as a specific type of interface with a defined set of rules, covering Web APIs for browser interaction and REST APIs for server communication.

What's the difference between an Interface and an API?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week