API vs Interface
An interface defines a specific data structure, while an API encompasses a broader set of data structures and methods. Unlike traits, APIs do not contain code, with the notable exception of testing code. This distinction highlights the collaborative nature of APIs and their role in software development.In this clip
From this podcast

Software Engineering Radio - the podcast for professional software developers
Episode 36: Interview Guy Steele
Related Questions