Stay organized with collections Save and categorize content based on your preferences.
You can use the Data API to programmatically access Google Analytics (Google Analytics) report data. This API isn't compatible with legacy Universal Analytics properties.
Learn more about Google Analytics properties.
This API provides features in Alpha and Beta channels. Alpha and Beta products may have limited support, and changes to these products may not be compatible with other Alpha and Beta versions.
Alpha: Features are in an early preview stage. While we try to notify you of upcoming changes, expect to encounter breaking changes before the API is publicly released.
Beta: No breaking changes are expected in this channel.
For official Google Analytics API announcements, subscribe to the Google Analytics API Notify Group.
Here are some examples you might report on using the Google Analytics Data API v1:
You can also use the Google Analytics Data API v1 to do the following:
To get started, see the client library quickstart. There are client libraries in Java, Python, Node.js, and other languages to simplify your implementation.
Available methodsHere's a list of the Data API methods. For more details, see the reference documentation.
runReport
This method returns a customized report of your Google Analytics event data and is the preferred method for simple report queries.batchRunReports
This is a batch version of the runReport method which lets you generate multiple reports using a single API call.runPivotReport
This method returns a customized pivot report of you Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. Each pivot describes the visible dimension columns and rows in the report response.batchRunPivotReports
This is a batch version of the runPivotReport method which lets you generate multiple reports using a single API call.getMetadata
This method returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. The response of this method also includes the Custom dimensions and metrics available for the specified Google Analytics property.checkCompatibility
This method lists dimensions and metrics that can be added to a report request and maintain compatibility.runRealtimeReport
This method returns a customized report of realtime event data for your property. Events appear in realtime reports seconds after they have been sent to the Google Analytics. Realtime reports show events and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to 60 minutes for Google Analytics 360 properties).properties.audienceExports
A group of methods that let you generate Audience Exports, which include a snapshot of the users in an audience.properties.recurringAudienceLists
(Early preview) A group of methods that let you manage recurring Audience Exports. A recurring audience export produces new audience lists each day.runFunnelReport
(Early preview) This method returns a customized funnel report of your Google Analytics event data. Funnel exploration lets you visualize the steps your users take to complete a task and quickly see how well they are succeeding or failing at each step.For a list of all the dimensions and metrics supported by the Data API, see the API schema documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-10 UTC."],[[["The Google Analytics Data API (v1) allows programmatic access to Google Analytics report data, excluding Universal Analytics properties."],["This API offers methods for retrieving various report types, including standard, pivot, realtime, and funnel reports, and enables tasks like building custom dashboards and automating reporting."],["Users can leverage client libraries in Java, Python, Node.js, and other languages for streamlined implementation."],["The API is currently in Alpha and Beta stages with potential for breaking changes, particularly in Alpha features."],["Comprehensive documentation, including API schema, quickstart guides, and reference materials, are available to aid developers in utilizing the API effectively."]]],["The Google Analytics Data API allows programmatic access to report data, excluding legacy Universal Analytics properties. It offers Alpha and Beta channels with varying stability. Key actions include generating reports (simple, pivot, funnel, real-time), batching reports, retrieving metadata, and checking compatibility. The API can build dashboards, automate reporting, and integrate data with other apps. Client libraries simplify implementation. Methods include `runReport`, `runPivotReport`, `runFunnelReport`, and managing audience exports, among others.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4