api: Implement feedback #990 Thanks @kokhang for the help! Fix build issues caused by wrong package used for api