Can someone explain to me the basic concept of API and the parts of it and how it functions just be declaring an API call?

Also, how does one go about understanding and using advanced API?