RWE interview question

Can you explain what an API does?