Refined getter functions in api file