{"id":27776,"library":"ga-api-client","title":"GA API Client","description":"A Python client for the Google Analytics Data API v1 (beta). Version 0.6.6, released periodically.","status":"active","version":"0.6.6","language":"python","source_language":"en","source_url":"https://github.com/ngoc-vuong-dev/ga-api-client","tags":["google-analytics","analytics","api-client","google-data-api"],"install":[{"cmd":"pip install ga-api-client","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Authentication for Google APIs","package":"google-auth","optional":false},{"reason":"Underlying API client for Google APIs","package":"google-api-python-client","optional":false},{"reason":"Google Analytics Data API v1 library","package":"google-analytics-data","optional":false}],"imports":[{"wrong":"from ga_api_client import GAAPIClient","symbol":"ga_api_client","correct":"from ga_api import ga_api_client"}],"quickstart":{"code":"from ga_api_client import GAAPIClient\nimport os\n\nclient = GAAPIClient(\n    property_id='123456789',\n    service_account_file=os.environ.get('GA_SERVICE_ACCOUNT_FILE', 'service-account.json')\n)\nresponse = client.run_report(metrics=['activeUsers'], date_ranges=['7daysAgo'])\nprint(response)","lang":"python","description":"Initialize client and run a simple active users report."},"warnings":[{"fix":"Replace `client = GAAPIClient(credentials=...)` with `client = GAAPIClient(service_account_file='path/to/key.json')`.","message":"Version 0.6.0 removed the `credentials` parameter; use `service_account_file` or `service_account_info` instead.","severity":"breaking","affected_versions":">=0.6.0"},{"fix":"Use `dimension_filter` instead of `dimension_filters` in `run_report()`.","message":"The `run_report` method's `dimension_filters` parameter is deprecated in favor of `dimension_filter` (singular).","severity":"deprecated","affected_versions":"<0.6.5"},{"fix":"Ensure `property_id` is a plain numeric string like '123456789'.","message":"Property ID must be numeric (string of digits); passing a string with 'properties/' prefix or non-numeric values raises a misleading 404 error.","severity":"gotcha","affected_versions":"all"},{"fix":"Reinitialize the client or implement a token refresh mechanism using google-auth's `RefreshToken`.","message":"The client does not automatically refresh expired OAuth tokens; long-running applications may encounter token expiration errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.6.6':16 'analyt':10,21,22 'api':2,12,24,29 'api-cli':23 'beta':14 'client':3,6,25 'data':11,28 'ga':1 'googl':9,20,27 'google-analyt':19 'google-data-api':26 'period':18 'python':5 'releas':17 'v1':13 'version':15","created_at":"2026-05-09T05:52:02.081348+00:00","updated_at":"2026-05-09T05:52:02.081348+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/ga-api-client/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["gcp","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}