What is difference between API and integration testing?

What is difference between API and integration testing?

While comparing integration tests at the level of API using UI-interface-oriented end-to-end tests, it should be noted that the scope of the API tests is quite narrow. This is due to the fact that the focus lies only on two-component integration or different application layers. On the other hand, end-to-end tests would be covering every layer and component belonging to a distributed system or an application.