3
2 Comments

Has anyone built a product that charges based on the number of requests?

So for my side product Cavapi, I'm trying to find a good metric tool that is precise because I will use it for charging the customer.
Cavapi creates static snapshots from Notion API, and customers consume those snapshots through an API.
So I want to keep track of the number of requests they made and possibly use it for the pay-as-you-go billing system, so the metric tool has to be reliable and provide the functionality to break down the metric per customer.
I am looking forward to hearing the solutions you use.
Cheers

posted to Icon for group Developers
Developers
on January 10, 2022
  1. 1

    Do you really need a SaaS solution for this? You could simply tally each API request in a database table against the user ID and use Stripe's volume pricing to charge for it. Only 2-3 lines of code.

    1. 1

      I can do that but since it's a request-based system I was thinking about showing the stats to user which would include the time based metric (like how cloudflare does it for the workers request).
      But you are right I guess for now I just keep 1 row per month and that's it.
      Cheers mate

Trending on Indie Hackers
I spent $0 on marketing and got 1,200 website visitors - Here's my exact playbook User Avatar 67 comments Veo 3.1 vs Sora 2: AI Video Generation in 2025 🎬🤖 User Avatar 30 comments Codenhack Beta — Full Access + Referral User Avatar 21 comments I built eSIMKitStore — helping travelers stay online with instant QR-based eSIMs 🌍 User Avatar 20 comments 🚀 Get Your Brand Featured on FaceSeek User Avatar 18 comments Day 6 - Slow days as a solo founder User Avatar 16 comments