How to sell your API

If you’ve developed a brilliant API then there’s a chance you could bring home some serious cashola if other developers find a need for it. Hopefully, by the end of this blog your API will be in the API marketplace where hundreds of thousands of developers like myself roam to look for new, exciting APIs.

If you have an API that you think people will like, but you’re not 100% certain it’s sellable, then likely you don’t want to have to set up an entire website with payment processing integrated to find out that nobody actually wants it. Using an API Marketplace is your best shot at getting instant customer feedback.

Make something useful

The first step is to make something people want. The API that I created for this blog isn’t going to break the market or make me millions but it’s just to take you through the process. I’ve created a word of the day API, so you provide the API with a date and it’ll give you a word for that date:
GET: /words/{date}

{
    "date": "2020-03-28",
    "word": "lampblack",
    "description": "The fine impalpable soot obtained from the smoke of carbonaceous substances which have been only partly burnt, as in the flame of a smoking lamp. It consists of ...
}

Deploy your API

Deploy your API, my word of the day app is deployed using Azure functions with table storage, I’d recommend using serverless archictecture to keep the price down, but remember to consider the cold start times as the avg latency per call to your API could be a major selling point – nobody wants a slow API.

Here’s a request to my word of the day app that hit a cold start, a very
Example of a slow API call

When your API is up and running, you’re ready to sell.

Sell your API

As mentioned I’m going to be using an API marketplace. An API marketplace is simply a site where developers put their APIs to sell, the marketplace takes care of the ins and outs of the payment so you as a developer don’t need to worry about it, you also don’t need to worry about purchasing a domain as the endpoint the programmer will be calling will be a proxy set up by the marketplace. As a consumer you can browse thousands of free/paid APIs and also manage all your APIs in one dashboard – or you can just use it to find the API you want to use and then go to their website directly, if they have one.

The API marketplace we’re going to use in this blog is https://rapidapi.com — it really is rapid — a great platform that has many different categories so you can see the popular APIs for the field you’re in.

Once you’ve added your API to RapidAPI you can choose from either Monthly subscription or Pay Per Use for you API (That the consumers will pay). Rapid API have a number of different tiers for pricing, so the higher tier you pay, the less they skim off the top – in my example I just use the free tier. I expect if your API is getting hundreds of thousands of requests through the marketplace then it probably would be financially beneficial to go up a tier.
https://i.imgur.com/elI33XK.png
When you’ve decided on pricing and you’ve restricted who can call your API, either by checking for the X-RapidAPI-Proxy-Secret in the requests to your API or providing the marketplace with the header you want it to add to make the request (this is explained very well in the settings before you deploy your app to the marketplace).

Then deploy your app to the marketplace and let it rain requests!
Make your API public - Let it rain requests

Conclusion

I hope this has been helpful, there’s really not a lot to it. I know there will be some developers out there that have created awesome APIs but haven’t ever used an API marketplace. API marketplaces provide you with a test bed for your APIs, it prevents you from having to go through all the faff of adding a payment system only to find out that no body needs your API!

Leave a Reply