This topic introduces Apigee API Analytics.
Apigee API Analytics collects and calculates a wealth of information that flows through API proxies. You can visualize this data with graphs and charts in the Apigee UI, or you can download the raw data for offline analysis using the Apigee APIs.
Analytics help you answer common questions, such as:
You can analyze data for a specific Host name or for an entire environment.
The answers to questions like these help you improve your APIs, troubleshoot problems, and make better business decisions related to your API program.
Through a continual process of collecting, analyzing, and visualizing data, Apigee API Analytics helps your API team improve their APIs and helps app developers improve their apps:
The type of Apigee organization you use will determine the steps required to get started with Apigee API Analytics. If you are unsure whether you are using a Subscription or Pay-as-you-go Apigee organization, contact your Apigee organization administrator.
If you are an Apigee Subscription customer, access to Apigee API Analytics is included in your subscription entitlements and automatically enabled for each of your Apigee environments.
You can access analytics data for your Subscription organization using either the Apigee UI in Cloud console or the Apigee API. For more details, see How do I access my analytics data.
If you are a Pay-as-you-go customer, you must enable Apigee API Analytics as a paid add-on in order to begin using analytics data. For more information on enabling the Apigee API Analytics add-on for your Intermediate or Comprehensive Apigee environments, see Manage the Apigee API Analytics add-on.
After the Apigee API Analytics add-on is enabled in your environments, you can access your analytics data and manage your Apigee API Analytics add-on using the Apigee UI in Cloud console, or the Apigee API. For more details, see How do I access my analytics data. Analytics data and add-on management is not available in the classic Apigee UI for Pay-as-you-go orgs.
Apigee API Analytics collects and analyzes a broad spectrum of data that flows across API proxies such as:
For a complete listing of data collected by API Analytics, see Analytics metrics, dimensions, and filters reference.
Apigee natively collects a wealth of data. You might also want to collect custom analytics data specific to your API proxies, apps, products, or developers. For example, you might want to gather analytics data from query parameters, request headers, request and response bodies, or variables that you define in your APIs.
You can collect custom analytics data with the DataCapture policy, and then use the analytics UI or API to examine the collected data.
There are two time intervals that control when and for how long you can view your analytics data:
If you have a Pay-as-you-go organization, you can enable the Apigee API Analytics add-on at an environment level. Once the add-on is enabled for an environment, analytics data for the environment is retained for 14 months. You can access the environment's historic analytics data from the API Metrics page in the console as long as the add-on is enabled.
If you disable the Apigee API Analytics add-on for an environment in a Pay-as-you-go organization, the analytics data for the environment is deleted after 30 days. If you re-enable the add-on in the same environment within 30 days of disablement, you can regain access to analytics data for the environment through the retention period of 14 months. No data is restored if the add-on is re-enabled for the environment after 30 days.
If you want to retain analytics data for any environment in a Pay-as-you-go organization beyond the 14-month retention period, we recommend that you export and save your data in another location. You may also want to export your Analytics data before disabling the Apigee API Analytics add-on, or within the 30-day window after disablement. For more information, see Exporting data from Analytics.
Where your analytics data is stored and processed is determined by your analytics region, which you specified when you installed Apigee:
ANALYTICS_REGION
.us-west1
region. You cannot change this default location.Analytics data is stored and processed as follows:
Apigee API Analytics provides data visualization tools built into the Apigee UI. These tools include predefined analytics dashboards and custom reports that display data in graphs and charts and let you drill down to see data grouped into different dimensions (such as by API proxy, IP address, or HTTP status code).
You can also download analytics data using the Apigee API. Once downloaded, you can import that data into your own data visualization tools or analytics system.
The Apigee UI provides a set of predefined dashboards that you can use to view analytics data.
To open the Analytics dashboards (for Pay-as-you-go or Subscription organizations):
Select from the following tabs to view the dashboards:
For more information, see Using the analytics dashboards.
Custom reports let you drill-down into specific API metrics and view the exact data that you want to see. You can create a custom report using any of the analytics data built into Apigee.
When building a custom report, you select the data you want to see (metrics), group the data in meaningful ways (dimensions), and optionally limit the data returned based on specific characteristics of the data (filtering).
You can also set the chart type displayed in the custom report as a column or line chart. The following images show chart examples for transactions per second grouped by API proxy:
Column - Each API proxy is represented by a different column:
Line - Each API proxy is represented be a different line:
For more, see Creating and managing custom reports.
Use the Apigee API to download analytics data. For example, you can use the API to build your own visualization tools that you can embed in portals or custom apps.
Here's an example API call to retrieve analytics data for API proxies:
curl "https://apigee.googleapis.com/v1/organizations/myorg/environments/test/stats/apiproxy?select=sum(message_count)&timeRange=6/24/2022%2000:00~6/25/2022%2023:59&timeUnit=hour" \ -H "Authorization: Bearer $TOKEN"
This call returns:
The timeRange
query parameter specifies the time period in the form:
?timeRange=MM/DD/YYYY%20HH:MM~MM/DD/YYYY%20HH:MM
Notice the %20
before HH:MM
. The timeRange
parameter requires a URL-encoded space character before HH:MM
, or a +
character, as in: MM/DD/YYYY+HH:MM~MM/DD/YYYY+HH:MM
.
For more, see Using the metrics API.
You can use the Apigee API to export all analytics data for an entire day from Apigee to your own data repository, such as Google Cloud Storage or BigQuery. You can then take advantage of the powerful query and machine learning capabilities offered by Google Cloud BigQuery and TensorFlow to perform your own data analysis.
For more, see Exporting data from Analytics.
When you think of app developers as your customers, you'll want to make sure they have the tools and information available to them to make the best use of your API.
App developers are not only concerned about the quality of their apps, they are very interested in your APIs. The Drupal-based developer portal includes an optional App Performance page designed to give app developers access to important metrics for their apps. This page gives developers information about:
For more information, see Monitor apps in the Drupal 8 documentation.
Additionally, you can share analytics with your developers by:
What do we mean by complete analytics? You can, for example, create an API proxy and Apigee will collect analytics data about that proxy. But what about metrics for the developer or app that called the API proxy? If Apigee doesn't know who made an API call, it can't collect that data.
A few steps are required to let Apigee figure out which developers and which developer apps are calling your API proxies. Here is a list of those steps with links to more detailed information:
The following tutorials guide you through the necessary steps that let you see analytics for developers and apps: Secure an API by requiring API keys and Secure an API with OAuth.
This section lists important information for Apigee hybrid users.
Older versions of Apigee hybrid do not support Apigee API Analytics.
apigee-udca
service account configured. See Specify configuration overrides.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-04-24 UTC.