What does API Monitoring Mean for API Product Managers and Growth Teams

Updated:
7 minute read

Today, countless engineering teams have leveraged API monitoring to track infrastructure health and report when services are down or unhealthy. There are a variety of API metrics that can be tracked that are aligned with engineering goals such as uptime, average latency, requests per minute, and errors per minute. However, these metrics are not aligned with the business goals of product owners and growth teams. This article goes through how to leverage API monitoring tools to further your business growth and product road map.

Deck version

Overview of business goals

As a product manager, your goal and targets usually fit in one of three areas:

  1. Adoption
  2. Engagement
  3. Retention

Companies focus on different areas depending on the state of the product. At the launch of an API, adoption will likely be your first priority since it’s hard to optimize for engagement and retention when no one even knows about your API in the first place. Once you experimented with adoption and have a small set of users who tested your API, you may start looking for ways to boost engagement and then retention which can be done by optimizing onboarding, ensuring the right product features exist, and are valuable for the users. Once you see engagement and retention metrics at good levels (i.e. a small group of loyal users), you may then shift back to focusing on adoption since you can now double down on a product that is working.

1. Adoption

Adoption focuses on top of the funnel growth of your API. The methods to drive adoption depends on the type of API you’re creating. For an internal API, you may evangelize the API with other departments and teams at your company who can leverage it. For a public API, you may leverage a combination of paid ads and content along with direct outreach.

2. Engagement

Once you have a group of users sign up and test your API, you want to ensure you can drive product engagement (i.e. usage) After all, APIs that generate a large amount of interest and sign ups, but cannot maintain high product usage are at risk of losing investment. Any project initiative is launched to create value for its users, whether those are internal teams, or external customers and partners.

3. Retention

Retention is similar to engagement except it tracks the decay function of that engagement over time for a cohort of users. Of the three product metrics, retention is one of the best proxies to product/market fit, since it excludes external factors such as high adoption pumped up by super large sales and marketing budgets. If you have a loyal and sticky product, then retention will be higher than a product that is a leaky boat.

1. Monitoring API adoption

Tracking adoption of API products is similar to adoption of other products and best done with a funnel. The developer funnel tracks a user’s journey from initial sign up to shipping a working app using your API. Unlike other funnels such as for measuring mobile app acquisition, an API user could stay in a single funnel stage for days or longer. This means you should not only be tracking the conversion rate for each step, but also the time it takes to reach the next step.

API Adoption Funnel

Recommended steps to track in your funnel:

  1. Pre-integration stage: A user signed up or generated an API key.
  2. Sandbox stage: A user made their first API call. The time from stage 1 to this stage can be called Time to First Hello World (TTFHW)
  3. Production stage: A user deployed their fully working app which creates something of value. The time to this stage from previous stage can be called Time to First Working App (TTFWA)

By mapping out your adoption flow in stages, you can discover areas in the product requiring improvement.F

For many API platforms, lack of docs and easy onboarding slows TTFHW. This can include

  • A lengthy onboarding process with many integration steps
  • No SDK that targets their programming language or framework requiring extra development
  • Poor or out of date documentation. Most developers love doing research into an API before integrating.

On the other hand, other internal stakeholders outside the developer’s control slow down TTFWA such as:

  • Legal and compliance risk
  • Project priorities
  • Blockers on performance testing and security review

2. Monitoring API engagement

Once a user adopts your API, you want to drive high engagement and usage.

Vanity metrics

Choose your metrics wisely and don’t fall into the trap of false (i.e. vanity) product metrics. While many marketing teams are accountable for page views and sign ups, these metrics only measure the top of the funnel and not the success of the product itself. You could even have a landing page without any product and drive a high number of sign ups just from a large advertising budget. Similarly, there are many infrastructure metrics that are aligned with engineering goals rather than product goals. For example, a growing Requests per Minute metric could imply a successful product, yet the growth could be artificially high due to lots of health probes or bot traffic. Even average latency is not the best metric to measure product performance since a consistently slow API can be fine, unlike the experience of loading a slow website.

Weekly active API tokens

Weekly active API tokens, the number of distinct tokens accessing the API in a given week, is one of the best north star metrics to track for API products. Because a single developer account can create multiple API tokens, such as for sandbox and production environments, a more accurate measurement would be Weekly Active Users or Weekly Active Companies. However, this requires analytics infrastructure that can link API tokens to a respective user or company account.

Weekly Active API Tokens

When a developer signs up to use your API, you should also be tracking referring domain and UTM parameters. This enables you to group weekly active tokens by UTM source or UTM campaign to better understand the marketing channels that are contributing to growth in usage and engagement.

Weekly Active API Tokens by Acquisition Channel

Top customers by API traffic

Understanding the top consumers of your API helps you understand what your most valuable users want. By breaking it down by endpoints or features, you can look at second order metrics such as which endpoints are popular with your most engaged users, but are not being leveraged by those who are not really consuming your API. It’s possible there is a small group of highly valuable features that needs greater exposure.

Top customers broken down by endpoints called

90th percentile latency

Average latency can be a false metric since it doesn’t show variation in latency. Most users consuming your API can handle an API that’s consistently high latency since it’s predictable. However, an API with high variance in latency is harder to work with. Latency variation causes false alarms to be sent, triggers race conditions in code, and makes it harder to capacity plan. One way to measure this is via the 9xth percentile latency. You can also group this by customer, endpoints, or other data to find the hotspots with largest latency variance.

90th percentile API latency

3. Monitoring API retention

Once you have a good understanding of adoption and engagement, it’s important to look into API product retention to find areas of the product that require improvement. Product retention is a concept born out of revenue retention and requires segmenting your user base into cohorts such as via sign up date. Then, you track the percentage of each cohort returning to engage with your platform.

API product retention

While all retention curves slope downward since no product can guarantee 100% retention after they sign up, good products that provide long-term customer value have retention curves that approach a non-zero equilibrium over time like the one above. However, bad products that do not have product/market fit will exhibit retention curves that slope down to zero. This means you have a leaky boat and should prioritize fixing your product retention before further investment in adoption. Otherwise, you are just wasting time and money to acquire users who don’t stick around.

API product retention broken down by SDK

In the above metric, we are exploring API retention grouped by the user’s SDK. We can see that PHP has a far lower retention percentage than the other SDKs. This could imply that PHP is buggy or has some performance issues that require fixing.

Closing thoughts

Getting developers to adopt your API is hard. It requires having a good intuition of what developers want while not letting personal biases get in the way. The two best ways to build products developers actually love are through 1. looking at real usage data and 2. customer discovery and surveys. Having both qualitative and quantitative data is important to plan and invest in the correct product initiatives.

Understand Your API Adoption Funnel With Moesif

Learn More
Understand Your API Adoption Funnel With Moesif

Leave a comment