API observations in API hub Stay organized with collections Save and categorize content based on your preferences.
This pageapplies toApigee andApigee hybrid.
Preview — API observations
This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.
TheAPI observations feature in API hub helps you address the challenges of undocumented and unmanaged APIs, also known asshadow APIs, which can introduce significant security and governance risks in your API infrastructure. Evolving from theShadow API Discovery feature in Apigee, API observations in API hub uses automated discovery processes to find and catalog all your APIs—both known and unknown—into a single, unified, and managed view.
Note: API observations in API hub relies on the Apigee Shadow API Discovery feature, which is included as part of the paid ApigeeAdvanced API Security add-on. This means you can incur charges related to your Apigee usage. Seepricing and billing for more information.How API observations works
API observations provides a comprehensive and continuously updated view of your API infrastructure. It works by automatically finding and cataloging undocumented or unmanaged APIs through the analysis of network traffic within your ingested data sources. This process of discovering and observing APIs is referred to as anAPI observation.
The process of discovering and observing an API is referred to as anobservation. An API observation is the result of combining API signals to represent a detected API endpoint and its operations. It's important to note that an API observation is not a complete API definition; it can represent one or more potential APIs depending on the scope of the observed endpoint. Once detected, thesediscovered API observations are automatically sent to and cataloged in API hub, creating a single, searchable catalog of all your APIs.
Enable API observations in API hub
To use API observations in API hub, you must first associate your desired API assets or data sources with API hub. You can do this while attaching Apigee runtime projects to API hub. For more information, seeConfigure API observations in API hub.
API observations in API hub relies on the Apigee Shadow API Discovery feature, which is included as part of the paid ApigeeAdvanced API Security add-on. This means that in order to use API observations in API hub, you must also have the Advanced API Security add-on enabled for your Apigee organization. The Advanced API Security add-on is available for Google Cloud projects with or without Apigee provisioning:
- For subscription customers, the Advanced API Security add-on is available with the Apigee organization. SeeManage Advanced API Security for Subscription organizations.
- For pay-as-you-go customers, the add-on must be enabled for at least one Apigee environment. SeeManage Advanced API Security for Pay-as-you-go organizations.
- For Google Cloud projects not provisioned for Apigee, you can enable the Advanced API Security add-on by contactingApigee Sales.
- Shadow API Discovery is not available for Apigee evaluation environments.
Supported data sources
API observations in API hub supports the following data source:
| Data source | How to enable | Description |
|---|---|---|
| Apigee | Attach Apigee runtime projects to API hub | When you attach an Apigee runtime project to API hub, it automatically importsApigee API observation jobs from that project. APIs discovered by these jobs are then analyzed and compared to documented APIs in API hub. If an API is a match, it is cataloged. If no match is found, the API is marked asunknown. |
Discovered API observations
TheAPI observations page in API hub displays a list of all detected APIs from all associated data sources, including both known and unknown APIs. For each discovered API observation, the following details are collected and displayed:
- Hostname: the hostname of the data source from which the API observation was collected.
- Observations: the total number of API operations, categorized as known and unknown, for the observation.
- Server IPs: a comma-separated list of all observed IP addresses.
- Source Type: the primary data source from which the observation was collected.
- Project ID: the Google Cloud project ID associated with the observation.
- Source Locations: a comma-separated list of all the geographical locations where the observation was detected.
- Observed By: the name and location of the Apigee API Observation job that initially detected the observation (this column is only available if the source is from Apigee).
- Last Event Detected (UTC): the timestamp (in UTC) of the most recent detection of the discovered API observation
IAM roles and permissions
To use API observations in API hub, you need the following IAM roles and permissions:
| IAM roles | Permissions |
|---|---|
API Management Admin (roles/apim.admin) |
|
API Management Viewer (roles/apim.viewer) |
|
Provisioning Admin Role (roles/apihub.provisioningAdmin) |
|
Viewer Role (roles/apihub.viewer) |
|
Pricing and billing
The API observations feature in API hub is provided at no direct cost. However, since API observations in API hub leverages Shadow API discovery, which is part of the Apigee Advanced API Security add-on, you can incur charges related to your Apigee usage. While the feature itself doesn't have direct costs, the discovery and observation process can involve data processing from your existing Apigee runtime projects, which can incur charges or hit quota limits.
For more information, seeShadow API Discovery.
What's next
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-17 UTC.