google-analytics-data
Google Analytics Data API client library
Decision gist · record as of 2026-08-14
Yes. This is the official, actively maintained client for Google Analytics Data API with low install friction, permissive licensing, no known vulnerabilities, and broad Python version support (3.10+). Install it if you need to query Google Analytics data programmatically; it is the standard choice for this task. Prerequisite: Google Cloud project setup and authentication configuration.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Google Cloud project setup with Google Analytics Data API enabled, authentication credentials configured, and Python >= 3.10.
- Low friction installation with a pure Python wheel.
- Actively maintained with recent releases; last commit 2026-08-14.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions; attribution required.
last release 2026-06-03 (72 days) · last repo commit 2026-08-14 · 5,373 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,781,790 downloads/mo, #1,849 on PyPI
Alternatives
Verify before relying
pip install google-analytics-data
from google.analytics.data_v1beta import BetaAnalyticsDataClient
from google.analytics.data_v1beta.types import RunReportRequest
client = BetaAnalyticsDataClient()
request = RunReportRequest(property="properties/YOUR_PROPERTY_ID")
response = client.run_report(request)- Whether the library supports all current Google Analytics Data API features or a subset thereof.
- Performance characteristics when querying large datasets or high-frequency report generation.
- Whether additional setup beyond standard gcloud authentication is required for specific use cases.
What it is and what it does
google-analytics-data is the official Python client for Google's Analytics Data API, enabling programmatic access to report data from Google Analytics properties. It wraps the underlying gRPC API with a Pythonic interface, handling authentication, serialization, and request/response marshaling through dependencies on google-api-core, google-auth, and protobuf.
Developers use it to build applications that query analytics metrics and dimensions, automate reporting workflows, or integrate analytics data into dashboards and business intelligence systems. The library requires a Google Cloud project with the Analytics Data API enabled and proper authentication credentials; it supports Python 3.10 and later versions.
Use it for
- Automate daily or weekly analytics report generation and delivery to stakeholders without manual GA interface access.
- Build custom dashboards that pull real-time or historical analytics data and combine it with other business metrics.
- Extract analytics data for specific date ranges, segments, or properties to feed into data warehouses or analysis pipelines.
- Programmatically monitor key performance indicators and trigger alerts when metrics cross defined thresholds.
- Integrate analytics insights into internal tools, CRM systems, or marketing automation platforms.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is the official, actively maintained client for Google Analytics Data API with low install friction, permissive licensing, no known vulnerabilities, and broad Python version support (3.10+). Install it if you need to query Google Analytics data programmatically; it is the standard choice for this task. Prerequisite: Google Cloud project setup and authentication configuration.
Install
google-analytics-data on PyPI
Before you install
Low friction installation with a pure Python wheel. Actively maintained with recent releases; last commit 2026-08-14. Requires Python >= 3.10 and depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf).
Requires Google Cloud project setup with Google Analytics Data API enabled, authentication credentials configured, and Python >= 3.10.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions; attribution required.
Quickstart
pip install google-analytics-data
from google.analytics.data_v1beta import BetaAnalyticsDataClient
from google.analytics.data_v1beta.types import RunReportRequest
client = BetaAnalyticsDataClient()
request = RunReportRequest(property="properties/YOUR_PROPERTY_ID")
response = client.run_report(request)
Verify before relying
- Whether the library supports all current Google Analytics Data API features or a subset thereof.
- Performance characteristics when querying large datasets or high-frequency report generation.
- Whether additional setup beyond standard gcloud authentication is required for specific use cases.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesgoogle-api-coregoogle-authgrpcioproto-plusprotobuf |
| Maintenance | Actively maintained 72 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,781,790 / month, #1,849 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet |
Evidence: google_analytics_data-0.23.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “google analytics api client”
- google-analytics-dataPython client library for querying Google Analytics Data API to…
- google-analytics-adminPython client library for the Google Analytics Admin API, enabling…
- google-cloud-geminidataanalyticsPython client library for Google Cloud's Data Analytics API with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also google-analytics-admin · google-cloud-geminidataanalytics · universal-analytics-python3 · owslib · google-maps-places · google-ads-admanager · google-cloud-monitoring · google-shopping-type · google-cloud-billing · google-cloud-bigquery-logging