This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

View API Statistics V2

API Publisher statistics

Log in to the API Publisher. If you have API creator and publisher privileges, the statistical menus that you see change as described below:

  • If you have permission as publisher, the All Statistics menu will be visible in the left panel of the API Publisher.
  • If you have permission to create APIs, in addition to the All Statistics menu, you also see the Statistics menu in the left panel of the API Publisher. The latter shows stats specific to the APIs created by you.
  • Anyone who can create and/or publish APIs can view API-level usage and subscription statistics by clicking on a selected API and referring to its Versions and Users tabs.
     

Given below are the statistical dashboards that are available:

  • API Subscriptions: Number of subscriptions per API (across all versions of an API)
  • API Usage: Number of API calls being made per API (across all versions of an API)
  • API Response Times: 
  • API Last Access Times: The subscribers who did the last 10 API invocations and the APIs/versions they invoked
  • API Usage by Resource Path: Usage of an API and from which resource path (per API version)
  • API Usage by Destination: To see destination-based usage tracking, you must first enable it. See API Usage by Destination.
  • API Usage by User: Number of times a user has accessed an API
  • Faulty Invocations: The number of API invocations that failed to reach the endpoint per API per user
    In a faulty API invocation, the message is mediated though the fault sequence. By default, the API Manager considers an API invocation to be faulty when the backend service is unavailable.

Several examples of usage and performance statistics are given below:

  • API Subscriptions
  • API Usage
  • Last Access Times:
  • API Usage by Resource Path:
  • API Usage by User:
  • API Usage by Destination 
    An overview of the requests that leave the API Gateway to destination endpoints. It's particularly useful when the same API can reach different destinations such as load-balanced endpoints. This graph is not enabled by default. You must do it manually as follows:
    1. Log in to the Admin Dashboard Web application (https://<Server Host>:9443/admin-dashboard). 

    2. Click the Configure Analytics menu, enable and configure API usage publishing and statistics.
       

    3. When creating the API, enable the graph from the Implement tab of the API Publisher UI:

API Store statistics

Log in to the API Store. You can self subscribe to the store. Next, click the Statistics menu.

Given below are the statistical dashboards that are available:

  • API Usage per Application: 
  • Top Users per Application: Users who make the most API invocations, per application
  • API Usage from Resource Path per Application: 
  • Faulty Invocations per Application: Number of faulty API invocations, per application
    In a faulty API invocation, the message is mediated though the fault sequence. By default, the API Manager considers an API invocation to be faulty when the backend service is unavailable.

Several examples of usage and performance statistics are given below:

  • API usage per application
  • Top Users:
  • API usage from resource path, per application
  • Faulty Invocations: