WSO2 Choreo + Moesif API Analytics: Optimize API Performance And Drive Adoption

As developers, we know how essential APIs have become in building modern software systems, from internal services to public-facing products at scale. We spend countless hours crafting elegant code, meticulously designing interfaces, and ensuring everything should work flawlessly. And, we must ship these services fast to stay competitive.
But what happens after deployment? In reality, even the most beautifully crafted API can fall flat without deep insight into its real-world usage. Without the right analytics, we’re essentially flying blind, relying on intuition rather than data. This holds especially true when many use COTS (commercial off-the-shelf) for platforms.
The good news is, you can combine a comprehensive API platform like WSO2 Choreo with a powerful analytics tool like Moesif to gain the visibility you need. Choreo streamlines the development and deployment process, while Moesif API analytics helps you with granular, actionable insights to truly understand API usage and performance.
This article will dive into the practical steps of integrating these tools and practical examples on how to use this integration to build, monitor, and optimize your APIs with confidence.
- What is WSO2 Choreo?
- What is Moesif?
- Benefits of Using WSO2 Choreo and Moesif Together
- How to Set Up WSO2 Choreo With Moesif
- Key Insights: Engineering and Product Metrics
- AI Explain: From Data to Understanding
- Conclusion
What is WSO2 Choreo?
WSO2 Choreo provides a next-generation API management to streamline the design, development, deployment, and management of cloud-native apps and APIs. Think of Choreo as a comprehensive toolkit for the entire API lifecycle that empowers developers and platform engineers to build, expose, and manage APIs faster at scale.
Choreo makes API development and delivery simple by integrating service deployment, traffic control, and authentication into a single platform. Developers can build and publish APIs using both low-code and pro-code approaches, making it easy to iterate and optimize without unnecessary overhead.
From a technical perspective, Choreo includes a robust API gateway—a key component for managing API traffic, enforcing security policies, and, importantly for our purposes, enabling integration with external tools like Moesif. Choreo easily integrates with a specialized analytics platform like Moesif so you can achieve a deeper understanding of API usage and performance.
What is Moesif?
The Moesif platform gives you deep insights into how your customers are using your APIs and how those APIs are performing in real time. Moesif takes you beyond basic monitoring to reveal the intricate details of API traffic, user behavior, and potential bottlenecks.
Moesif automatically collects data related to API usage, performance, and user interactions and allows you to analyze and interpret them in meaningful, accessible ways. This goes beyond simple metrics like request counts and error rates. You can dive into the who, what, when, where, and why of API consumption:
-
Who are your most active users?
-
What are your most popular API endpoints?
-
When are peak usage times?
-
Where are users experiencing friction?
-
Why are certain API calls failing?
We’ve built Moesif to answer these questions and more.
Moesif’s key strength lies in its ability to track not just API events like API calls, but also the contextual data around them such as the user and their journey. With powerful body analytics, you can understand complex usage patterns and identify patterns that cause a bad API experience. This can prove extremely invaluable for troubleshooting and debugging. In such cases, you must understand the context of an API event in its entirety to resolve issues effectively so they don’t escalate.
Beyond troubleshooting, you can leverage Moesif to track API adoption and understand how API usage drives business metrics like revenue or customer satisfaction. can therefore make business-critical decisions with confidence Using such a holistic view, product managers and business leaders can help their organizations understand the true value of their APIs and make strategic decisions about future development efforts. Moesif empowers both technical and business teams to collaborate around a single source of truth for API data.
Benefits of Using WSO2 Choreo and Moesif Together
WSO2 Choreo’s strengths in API development and management, combined with Moesif’s deep API analytics capabilities orchestrate a greater collective impact on your product’s growth. You can build and deploy quickly, and you have the insights to ensure optimal performance and continuous improvement.
Enhanced Visibility and a Single Source of Truth
Choreo provides a centralized platform for managing the entire API lifecycle, while Moesif adds a layer of granular, actionable analytics. This combination eliminates data silos and creates a single source of truth for all API-related information. Engineering teams can quickly identify performance bottlenecks, product teams can track API adoption, and business leaders can understand the overall impact of their API program. Thanks to this unified view, you can collaborate better and make decisions faster and accurately.
Moesif reinforces your goals by equipping you with everything you need for API analytics, observability, and productization.
Accelerated Time to Market and Reduced Development Cycles
Product teams can use Moesif’s data to prioritize new features and iterate faster based on actual user behavior. As a result, you significantly reduce time-to-market and allow teams to ship faster and more confidently.
Resolving Issues Proactively and Improved API Performance for Developers
By integrating Moesif, you get more detailed monitoring and alerting capabilities for your product, covering both operational aspects like uptime and performance, and deeper API Analytics. Instead of reacting to problems after they impact users, teams can identify and address anomalies before they escalate. This helps you provide a better customer experience and satisfaction.
Data-Driven API Product Strategy
When it comes to data-driven decision-making, you need actionable insights into customer behavior and API usage patterns. Moesif makes them readily available. Product managers can quickly investigate and observe business-critical information like the following:
-
The most popular APIs
-
Most used features and ones that are underused
-
How different user segments are interacting with APIs
Product managers can inform API design, prioritize new features, and refine the overall product strategy with data-backed insights. And with a well-defined product strategy that’s customer and market-driven, teams can build APIs that truly meet the needs of their users, leading to increased API adoption and greater business value.
Optimizing AI API Costs
By combining Choreo’s platform capabilities with Moesif’s detailed API analytics, organizations can optimize resource allocation and control operational costs—a critical factor for APIs with high computational overhead like AI APIs. As they often possess expensive compute resources, understanding usage patterns directly correlates with cost control.
For example, consider an organization running an AI-powered text-generation API. They might notice spikes in API calls during business hours but significantly lower traffic at night. With Moesif, they can identify low-usage periods and dynamically scale down compute resources to reduce costs. Similarly, Moesif’s retention analysis can reveal whether free-tier users are overusing certain AI endpoints—for example, high-resolution image processing.
This data-driven approach leads to better resource utilization, reduced costs, and improved overall operational efficiency.
How to Set Up WSO2 Choreo With Moesif
Moesif has native integration with the Choreo platform and installs in three simple steps. For detailed instructions on how to integrate Moesif with Choreo, see Integrate Choreo with Moesif.
If you face any issues setting it up, see the Server Troubleshooting Guide or contact our support team.
Key Insights: Engineering and Product Metrics
Okay, so we’ve got the integration set up. Now comes the fun part—actually seeing what goes on with our APIs. In this section, we’ll go through some practical examples and demonstrate how Moesif makes various engineering and product metrics accessible to you easily and meaningfully.
Dashboard Overview
We’ve designed Moesif’s dashboards to be useful and fully customizable so you can control how you arrange, share, and consume API analytics data. You can customize them to focus on the metrics that matter to your team and your specific project, for example, separate dashboards for product, marketing, and engineering teams. Here’s a Product dashboard containing several product-related metrics:
Each dashboard contains workspaces, each containing an analysis or visualization chart. In the preceding screenshot, the Product dashboard contains workspaces like Top APIs over 7 days, 30-Day API Usage by Company, and so on. You can also create sub-dashboards within a dashboard.
Engineering Metrics
For engineering teams, Moesif provides a wide range of analytics tools to analyze and monitor APIs to make sure they remain performant, identify bottlenecks, and troubleshoot issues promptly. Let’s go through some example metrics.
API Performance and Latency Analysis
Moesif can track key performance indicators (KPIs) like latency, error rates, and throughput. You can perform simple average latency analysis, and also percentile analysis like P90 or P99. The corresponding visualizations allow you to easily interpret the data in real time to spot anomalies and trends.
Percentile analysis more often than not can give you a more accurate idea of your APIs’ performance characteristics, as they don’t suffer from outliers unlike averages. You can do this easily in Moesif. For example, the following illustrates a 24-hour Time Series analysis with an hourly interval performing a P99 analysis across API endpoints
Error Analysis
When it comes to API errors, we typically mean 4xx client errors and 5xx server errors. Moesif goes beyond simple error counts or error code tracking. It captures all the contextual information like headers and payloads of API methods.
This example visualizes hourly 5xx server errors over a 12-day period, using a time series analysis. To pin down the exact issue, we classify the errors further by response status codes.
As another demonstration of Moesif’s powerful API analytics utilities, we’ve folded this time series to visualize the periodic nature of our metric in a better way. If you want to understand recurring patterns like error rate patterns and periodic anomalies, folding is the way to go. This allows you to focus on worst-case scenarios as well in our operational metrics. In this scenario, we check for a particular hour where errors surge to unusually high levels. It can help dig out issues like these:
-
Peak load times overwhelming the API
-
Scheduled maintenance or batch jobs that cause temporary disruptions
-
Time-dependent errors in external services that the API relies on
Here’s another example that breaks down all API error responses in a time series:
That’s one of the neat aspects of Moesif—being able to categorize and break down metrics by different criteria, using various segmentation and grouping utilities. It allows you to observe the distribution of a metric, like in this case, API errors. For example,
-
An increasing number of 401 Unauthorized errors can indicate a security issue.
-
An increase in 502 Bad Gateway errors can signal backend service failures or bottlenecks in database queries.
Product Metrics
For product teams, Moesif provides insights into user behavior, API adoption, and the overall business impact of your APIs. Let’s demonstrate with some examples.
User Engagement
Moesif has built a separate analytics suite for customer analysis that, in conjunction with API analytics, gives you the ability to make accurate product decisions.
For example, here, using a Segmentation analysis, we look at the top users for each endpoint in an API and visualize the data in a stacked bar chart:
API Adoption
Analyzing API adoption gives you answers to questions like the following:
-
Are our new APIs gaining traction?
-
Are certain user segments adopting them faster than others?
When you have these answers and the actionable data to back them up, you can confidently inform marketing efforts and future development.
For example, let’s say you’ve launched a new version of your API (v4), and you want to track its adoption among your existing customer base compared to the immediate prior version (v3). In the following time series, we look at API usage for the past 30 days. We break the data down by company domains and API versions. We choose a custom rolling function Rollling Window to quantify the API call volume metric.
API Usage Analysis
Understanding how customers are using your APIs is an important part of capacity planning and resource allocation. Using Moesif, you can dig into metrics such as API call volume, the most popular endpoints, and usage patterns or areas over time. This information can help engineers identify areas of optimization or where resources might be over-provisioned. From a big picture perspective, it also gives your product team an idea about focus points for growth.
For example, when building a cloud-native AI product in Choreo, Moesif helps you monitor AI consumption, analyze user behavior, and debug API traffic in real time. By capturing HTTP request-response data with high granularity, Moesif allows you to filter and analyze product usage based on token utilization, rate limits, and other cost-related factors.
The Segmentation analysis here provides an overview of top customers ranked by average input token usage, API request count, and associated costs over the last seven days.
HTTP Payload Analysis
One of the most powerful techniques Moesif provides you for troubleshooting is analyzing the full request and response payloads of your API calls. Thanks to this, you can comfortably debug complex issues where the error messages alone don’t suffice. You can examine the exact data being exchanged between your API and its consumers, giving you greater context around errors.
With Moesif, you can inspect complex, deeply nested payloads and quickly zero in on the information that matters most.
Here are some more illustrative use cases using HTTP body analytics:
-
Consider building an AI-powered coding assistant, integrated into Choreo as an API. It receives snippets of code from users, and returns suggestions, completions, or even bug fixes. The context—the surrounding code, the project type, even the user’s coding style—is crucial for accurate results. This context can lead to very large request payloads. You can use Moesif to analyze this in a Live Event Log, for example:
Moesif lets you see inside these requests, understand the context, and help you make sure your AI app is performing as expected, even with large inputs.
-
Key count operators help you analyze the number of keys in an object, making it easier to detect large and complex payloads for performance debugging and optimization.
-
You can specify custom metrics based on the data flowing through your services to gain valuable insights into user behavior and API usage. For example, for a ride-sharing service API, let’s say you want to measure the distribution of ride distances. This isn’t a standard metric like latency or error rate, but it helps understand user behavior and optimizing pricing. With Moesif, you can create a scripted field that extracts the ride distance from the request or response payload, for example, Request.Body.trip.distance_miles and Response.Body.trip_summary.distance_miles
AI Explain: From Data to Understanding
Moesif has introduced AI-powered features to augment your expertise in leveraging API analytics data:
-
Using Smart Search to navigate through customer and API analytics dashboards, workspaces, alert rules, and more.
-
Using AI Explain, our AI-powered conversational interface, in API analytics, customer analytics, and alerting, to quickly uncover valuable insights and investigate issues.
Through these AI-enhanced features, we aim to make API analytics more accessible and understandable. For engineers, AI Explain acts like an intelligent assistant that can summarize complex API usage patterns and highlight anomalies, drastically reducing troubleshooting time during incidents. Instead of manually interpreting data, you get a concise explanation of what’s happening. Product teams benefit from AI-powered insights into user behavior, like identifying cohorts with unusual usage patterns or understanding the impact of new feature releases. Moesif’s AI cuts through the noise to deliver the key insights that both technical and business teams need to make informed decisions, faster. It’s about working smarter, not harder.
For example, consider an embeddings API in WSO2 Choreo. Here’s how you can analyze its growth and adoption using a time series analysis:
Next, you start chatting with Ask AI to quickly get insights into the data:
Conclusion
Using Choreo and Moesif together gives you streamlined API development and delivery with actionable API analytics in every step of your API lifecycle. To see for yourself how Moesif can help you unlock the full potential of your API products, sign up today for a free trial, no credit cards required.