fixed import of get_api method