API monetization is currently a trending topic for many organizations looking to beef up their revenue. Of course, monetizing APIs isn't the easiest of tasks and requires quite a few moving parts.
When it comes to monetization, you're going to need an entire technology stack to handle the heavy lifting. Creating a stack that allows you to build a product and get to market rapidly is great. However, what's not so great is if that same choice limits the scalability and features of a product in the future. Over-provisioning your selected components can also be a hindrance to a future use case that may or may not come to fruition, adding complexity and cost. A balance has to be found.
What this means is that you'll need to choose the components within your stack to ensure that your current needs are met easily and quickly while still having the option to expand and scale when you're ready. Optimally, this stack would contain components that fit between your current needs and the needs of your product and customers in the future.
When it comes to making money from your APIs, picking the right stack can help you get up and running quickly and allow for flexibility for your business and its customers. Let's look at a few ways to assess which stack best fits your API monetization needs.
What is API monetization?
As the API economy continues to grow, so does the potential to generate revenue from APIs. If you have APIs that other companies or individuals could be using, usage-based billing, metering, and API monetization are something you've likely thought about.
When we speak of API monetization, we're looking at generating revenue from our APIs. Whether through charging per user, per API call, or another metric, API monetization covers a whole gamut of possibilities when it comes to deciding how to charge for usage. If your business model doesn’t include using your API resources to drive additional revenue, you could be missing out on a potential revenue driver. If these APIs already exist, API revenue could be a quick win.
API monetization billing models
API revenue can be generated through an array of different billing models. You may charge an API consumer after they have used your API, this is a post-paid billing model. You may also decide to charge an API consumer up-front for usage in a pre-paid or pay-as-you-go type billing model. There are various pros and cons to each approach, the exact use case and customer base generally tend to drive businesses to adopt one method or another, sometimes even both.
Once you've decided that you want to use your APIs to generate further revenue, you are then tasked with building out the system and infrastructure to do so. The solution will likely have a few moving parts, and each of these parts will play a crucial role in your API monetization stack.
What does an API monetization stack look like?
A more practical approach to the architecture of an API billing solution is to break the solution into three parts: your API(s), API analytics to track usage, and a billing provider. Let's look at these components in a bit more depth.
The API
Here, when we talk about the API, we're referring to everything to do with the API, including securing the API, rate-limiting, transformations, and so on.
Usually, part of the API setup includes some type of API management layer — like an API proxy or an API gateway. Most modern businesses are using API gateways, such as Kong Gateway, that provide all of these capabilities and more.
API analytics
As the API is being used, you'll want to gather metrics about that usage.
Since the analytics platform is seeing API consumption metrics around every API call, it makes sense for this to be the system of record for tracking usage and sending it to the billing provider. Moesif, for instance, offers functionality that allows API usage to be aggregated and used for billing purposes by sending the usage reports to a billing provider.
Billing provider
The billing provider will receive usage amounts for each customer, tally up the amounts over the billing period, issue an invoice, and collect the amount owing. Billing providers such as Stripe, Recurly, and Chargebee are common tools for this purpose. Subscription and billing management are also available on most of these platforms as well.
Choosing a gateway or proxy for your API
One thing is for sure, using an API gateway will make securing and managing your APIs much easier than doing it without. Most gateways support a wide variety of authorization and authentication protocols to control API access, tools for generating and managing an API key, great support for rate limiting and quotas, and other features such as the ability to apply transformations to requests and responses.
An API management platform may also provide a developer portal so that API users can easily see which APIs are available and get access to them.
Although APIs can be managed without an API gateway or proxy, having one means that you can establish a more uniform way to secure and manage the APIs. Essentially allowing you to manage all of your API-related concerns under a single pane of glass. From a scalability and security perspective, there's no better solution.