Can you explain API testing with an example?

Can you explain API testing with an example? I want to undertandd this clearly.