View API Analytics

You can use analytics to determine how, when, and why your APIs are being used, review how often and why requests are rejected, and monitor data trends.

API Managers must be issued the Manage API or View All Details API grant to view analytics for that API.

To view API analytics:
  1. Click APIs icon APIs in the navigation menu sidebar. If the navigation menu sidebar is hidden, click Show/Hide Navigation Menu Show/Hide Navigation Menu to show it. If the navigation menu is collapsed and you wish to view the text for the navigation items, click Expand Sidebar Expand Sidebar.
  2. From the APIs List page, click the name of the API that you want to view analytics for.
  3. Click the Analytics icon (Analytics) tab.
    Analytics data for this API appears. The General page appears by default.
  4. Click the General, Applications, or Errors and Rejections tabs to view the available charts.

API Analytics Charts Available on the General Page

View the request volume, response time, and other metrics about requests sent to your APIs on the General page.

Request Volume Chart

Use the Request Volume chart to view request traffic volume, request trends, and request success or failure rates. The Request Volume chart displays the number of requests sent to an API.

To view Request Volume chart data:

  • Select All to display all requests.

  • Select Successful to display successful requests.

  • Select Rejected to display rejected requests.

  • Select Failed to display requests that failed.


Description of request-volume-chart-mp.png follows
Description of the illustration request-volume-chart-mp.png

To view summary information for a specific period, hover your mouse over a vertical bar in the Request Volume chart.

By default, data for the current day is displayed. To display data for a different period, see Filtering Analytics.

Response Time Chart

Use the Response Time chart to view the median response times for requests, response time trends, and the time requests spend in the API and service layers. The Response Time chart displays round-trip request and response times (in milliseconds) for the selected API. The shortest and longest response times for the period are represented by vertical bars. A horizontal bar indicates the median round-trip time for the period.

To view Response Time chart data:
  • Select Round Trip to display the median, the shortest, and the longest round-trip request and response times for the period.

  • Select API Layer to display the median, the shortest, and the longest time that requests and responses were active in the API layer for the period.

  • Select Service Layer to display the median, the shortest, and the longest time that requests and responses were active in the service layer for the period.

Description of response-time-chart-mp.png follows
Description of the illustration response-time-chart-mp.png

To view summary information for a specific period, hover your mouse over a vertical or horizontal bars in the Response Time chart.

By default, data for the current day is displayed. To display data for a different period, see Filtering Analytics.

Payload Size Chart

The Payload Size chart displays the size of the payload sent with each request. The largest and smallest payload sizes for the period are represented by vertical bars. A horizontal bar indicates the median payload size during the period.

To view Payload Size chart data:

  • Select Request to view request payload sizes for the period.

  • Select Response to view response payload sizes for the period.


Description of payload-size-chart.png follows
Description of the illustration payload-size-chart.png

To view summary information for a specific period, hover your mouse over a vertical bar in the Payload Size chart.

By default, data for the current day is displayed. To display data for a different period, see Filtering Analytics.

Requests by Resource Chart

The Requests by Resource chart displays the volume and distribution of requests (as a percentage) to resources for an API.

The Requests by Resource chart displays this data:

  • The volume of requests sent to each resource.

  • The percentage of requests sent to each resource.

  • The volume of rejected requests for each resource.

  • The percentage of rejected requests for each resource.

  • The volume of errors processed by each resource.

  • The percentage of errors processed by each resource.


Description of requests-resource-api.png follows
Description of the illustration requests-resource-api.png

API Analytics Charts Available on the Applications Page

You can see how many requests, per application, have been sent to your APIs on the Applications page of the Analytics page.

Active Applications Chart

The Active Applications chart displays the requests, rejections, and errors resulting from requests to an API. Applications are identified by application keys passed with each request. Requests passed without application keys are collected in an Unknown Applications entry in the chart. If the API is not secured by a key validation policy, all requests, regardless of whether application keys are passed, are collected in the Unknown Applications entry.

The Active Applications chart displays this data:

  • The volume of requests sent from each application.

  • The percentage of requests sent from each application.

  • The volume of rejected requests sent from each application.

  • The percentage of rejected requests sent from each application.

  • The error volume for requests sent from each application.

  • The error percentage for requests sent from each application.


Description of active-applications.png follows
Description of the illustration active-applications.png

API Analytics Charts Available on the Errors and Rejections Page

View rejection and error metrics about requests sent to your APIs on the Errors and Rejections page.

Rejection Rate Chart

The Rejection Rate chart displays the number of rejected requests sent to an API.

To view Rejection Rate chart data:

  • Select All to view all rejections for the period.

  • Select Request Policies to view requests that were rejected by request policies for the period.

  • Select Response Policies to view responses that were rejected by response policies for the period.

  • Select Service to view requests that were rejected by the backend service.

  • Select an option in the no policy filter list: select a policy type (like Header Validation) to view data for all policies of that type, or select the name of a specific policy instance (like tenant-id validation, when that is the name of a specific header validation policy) to view data for that specific policy instance.


Description of rejection-rate.png follows
Description of the illustration rejection-rate.png

To view summary information for a specific period, hover your mouse over a vertical bar in the Rejection Rate chart.

By default, data for the current day is displayed. To display data for a different period, see Filtering Analytics.

Rejection Distribution Chart

The Rejection Distribution chart displays the number of rejections by specific policies or services.

To view Rejection Distribution chart data:

  • Select All to view all rejections per policy or service.

  • Select Request Policies to view the number of rejections per request policy.

  • Select Response Policies to view the number of requests per response policy.

  • Select Service to view the number of rejections per service.

  • Select Show Policy Types to view rejections for each policy type. For example, if you have multiple header validation policies, selecting Show Policy Types displays all header validation policy rejections as a single data point.

  • Select Show Policy Instances to view rejections for each instance of a policy. For example, if you have multiple header validation policies, selecting Show Policy Instances displays rejections from each of the header validation policies as separate data points.


Description of rejection-distribution.png follows
Description of the illustration rejection-distribution.png

To view summary information for a specific policy, hover your mouse over a horizontal bar in the Rejection Distribution chart.

By default, data for the current day is displayed. To display data for a different period, see Filtering Analytics.

Error Rate Chart

The Error Rate chart displays the number of errors as a percentage of all errors for the defined period.

To view Error Rate chart data:

  • Select All to view all errors for the period.

  • Select Request Policies to view errors caused by request policies for the period.

  • Select Response Policies to view errors caused by response policies for the period.

  • Select Service to view errors caused by requests rejected by the backend service.

  • Select Show Policy Types to view errors for each policy type.

  • Select Show Policy Instances to view errors for each instance of a policy.


Description of error-rate.png follows
Description of the illustration error-rate.png

To view summary information for a specific period, hover your mouse over a vertical bar in the Error Rate chart.

By default, data for the current day is displayed. To display data for a different period, see Filtering Analytics.

Error Distribution Chart

The Error Distribution chart displays the number of API request errors for specific policies.

To view Error Distribution chart data:

  • Select All to view all errors.

  • Select Request Policies to view errors caused by request policies.

  • Select Response Policies to view errors caused by response policies.

  • Select Service to view errors caused by the backend service.

  • Select Show Policy Types to view errors for each policy type. For example, if you have multiple header validation policies, selecting Show Policy Types displays all header validation policy rejections as a single data point.

  • Select Show Policy Instances to view errors for each instance of a policy. For example, if you have multiple header validation policies, selecting Show Policy Instances displays rejections from each of the header validation policies as separate data points.


Description of error-distribution.png follows
Description of the illustration error-distribution.png

To view summary information for a specific policy, hover your mouse over an entry in the Error Distribution chart.