load the api class.