Use a proper API instead of an environment variable.