check if api is running