No rule for this one
No ending or word group predicts the article of API. Learn it as a pair and say it out loud: die API.
die API
It's die API. API is feminine, plural die APIs.
Die API funktioniert.
The API works.
No ending or word group predicts the article of API. Learn it as a pair and say it out loud: die API.