News for hackers. Stuff that matters.

Ask HN: API as a Service?

Is there any SaaS offering that lets you quickly create a provisioned, usage based API for your existing cloud services?

Let me explain.

Let's say I have some code that transforms widgets. Right now, I'm the only person who could invoke it.

I would ideally like to sell access to it. I would integrate with some SaaS API-as-a-service. They would handle creating user accounts, multi-user access, 2FA, billing, and monitoring usage.

I would set them up with an endpoint to my service along with the expected inputs. I would be responsible for hosting the API endpoint as well as supplying the containers to execute the services.

Perhaps they would request modifying the function to include an additional parameter for tracking purposes.

Then they would be billed either based on usage or a flat fee..

My guess is that maybe the solution involves serverless somehow.

( 5 comments | 2 points | on HN )
Re:Ask HN: API as a Service? by caffeinatedwes on Friday May 11, 2018 @01:16PM (#17049097)
Have you heard of Cheddar? It's a usage-based billing API that does almost everything you're talking about, minus the 2FA. That might have to be an external service, but if you're interested, I can double check.

https://gtchdr.com/2jRxYHx

Full disclaimer: I work there. (We're doing a massive website update, so until that's done, it might be helpful to chat. Let me know.)

Re:Ask HN: API as a Service? by galbraith on Thursday May 10, 2018 @12:28AM (#17036381)
Don't outsource such an important part of your business. It's not that hard to charge people -- just log requests and bill their credit cards monthly. When you're starting out and have < 100 paying customers, you can do it manually in a couple hours a month.
Re:Ask HN: API as a Service? by blackflame7000 on Thursday May 10, 2018 @12:48AM (#17036467)
I have a decent background in this sort of tech and would be willing to help out
Re:Ask HN: API as a Service? by scottybowl on Thursday May 10, 2018 @01:41AM (#17036647)
and detectlanguage, smooch - there's quite a lot of API as a Service companies out there
Re:Ask HN: API as a Service? by scottybowl on Thursday May 10, 2018 @01:39AM (#17036642)
check out ritekit, they do this