{"id":28475,"library":"zi-api-auth-client","title":"ZI API Auth Client","description":"A Python library supporting username-password and PKI authentication methods for ZoomInfo enterprise APIs. Current version 2.0.3, released under an MIT-like license. Release cadence is irregular.","status":"active","version":"2.0.3","language":"python","source_language":"en","source_url":"https://github.com/Zoominfo/api-auth-python-client","tags":["authentication","zoom-info","api-client","pki","username-password"],"install":[{"cmd":"pip install zi-api-auth-client","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Used for HTTP requests to authentication endpoints.","package":"requests","optional":false}],"imports":[{"note":"Old package naming used underscores and different module path.","wrong":"from ziapi.auth import AuthClient","symbol":"AuthClient","correct":"from zi_api_auth_client import AuthClient"}],"quickstart":{"code":"from zi_api_auth_client import AuthClient\n\nclient = AuthClient(\n    username=os.environ.get('ZI_USERNAME', ''),\n    password=os.environ.get('ZI_PASSWORD', ''),\n)\ntoken = client.get_access_token()\nprint(token)","lang":"python","description":"Initialize AuthClient with credentials and obtain an access token."},"warnings":[{"fix":"Update imports to 'from zi_api_auth_client import AuthClient' and reinstall package.","message":"Version 2.0.0+ changed the package name from 'ziapi_auth_client' to 'zi_api_auth_client'. Existing imports will break.","severity":"breaking","affected_versions":"<2.0.0"},{"fix":"Replace 'client.get_token()' with 'client.get_access_token()'.","message":"The method 'get_token()' is deprecated in favor of 'get_access_token()' since version 1.5.0.","severity":"deprecated","affected_versions":">=1.5.0, <2.0.0"},{"fix":"Ensure you call load_dotenv() if using .env files, or pass credentials directly.","message":"Environment variables are not automatically loaded. You must explicitly pass credentials or set them via os.environ.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install latest version: pip install --upgrade zi-api-auth-client","cause":"Installed version <2.0.0 where package name was 'ziapi_auth_client'.","error":"ImportError: No module named 'zi_api_auth_client'"},{"fix":"Use 'get_access_token()' instead.","cause":"Using deprecated method name. get_token() was removed in version 2.0.0.","error":"AttributeError: 'AuthClient' object has no attribute 'get_token'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}