# Plan based API call limits

**URL:** <https://forum.bubble.io/t/plan-based-api-call-limits/165662>\
**Category:** APIs\
**Created:** [August 21, 2021, 6:54pm UTC](https://forum.bubble.io/t/plan-based-api-call-limits/165662 "2021-08-21T18:54:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alasadi.m1738](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@alasadi.m1738](https://forum.bubble.io/u/alasadi.m1738)\
**Post date:** [August 21, 2021, 6:54pm UTC](https://forum.bubble.io/t/plan-based-api-call-limits/165662/1 "2021-08-21T18:54:16Z")

</div>

Hey all,

So I’ve built an app that has 9 plans - 1 freemium where users sign up and they’re immediately subscribed and have access to 10 API calls per month which can be triggered through two input fields.

The other 8 plans are all paid plans - 4 annual and 4 monthly.

I was wondering if anyone can help me make it so that I can set limits on the API calls people can make per month or per year based on their plans.

These are the limits I need:

1st tier - 100 calls/m (monthly plan) 1200 calls/yr (yearly plan)  
2nd tier - 300 calls/m (monthly plan) 3600 calls/yr (yearly plan)  
3rd tier - 600 calls/m (monthly plan) 7200 calls/yr (yearly plan)  
4th tier - 1200 calls/m (monthly plan) 14,400 calls/yr (yearly plan)

If you need more info, please let me know.

Thanks,  
Mohamad

---

<div class="post-metadata">

**Author:** ![shpak.serhiy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/shpak.serhiy/32/122411_2.png) [@shpak.serhiy](https://forum.bubble.io/u/shpak.serhiy)\
**Post date:** [September 3, 2021, 6:24am UTC](https://forum.bubble.io/t/plan-based-api-call-limits/165662/2 "2021-09-03T06:24:02Z")

</div>

You can create a counter field on User and increase by 1 every time the API workflow is triggered. Place a conditional on the API workflow to check whether the counter value of the user is less or equal to the limit.
