Revert "Added getApi() function"

This reverts commit 4224bd867314dc85f1dd0b86c62ca893f4ade271.