Viewing API Statistics
The API Publisher Web application provides several statistical dashboards as follows:
- Usage of all APIs and usage of all APIs per creator.
- Average response times.
- Usage of an API per subscriber.
- Usage of an API per subscriber per version.
- Number of subscriptions per API.
Apart from the number of subscriptions per API, all other statistical dashboards require that an instance of the WSO2 Business Activity Monitor 2.0 is installed. For instructions on setting up an instance of the WSO2 Business Activity Monitor in order to view statistics, refer to section Monitoring and Statistics.
Once the prerequisites are satisfied, follow the instructions below to view statistics through the API Publisher.
1. First, trigger some activities via the API gateway as explained in section Testing an API and wait a few instants.
2. Log in to the API Publisher as a "creator" or "publisher".
- In publisher role, you are able to see all statistics under the "APIs" menu.
- In creator role, in addition to all statistics, you also see specific stats for the APIs you created.
Both "creator" and "publisher" roles can view API-level usage and subscription statistics by clicking on a selected API and referring to its "Versions" and "Users" tabs. Several examples of usage and performance statistics are given below:
Also, few examples of API-level statistics are shown below:
You can also see specific statistics for API subscribers from the Users tab. For example,