Access bubble app metrics through API?

Hello, wanted to ask maybe it’s possible getting this graph of application usage through API?


Would like adding it to internal dashboard with all the other monitored stuff.

Thank you!

Bubble doesn’t expose a specific endpoint to retrieve this graph to my knowledge. I think you will need to use a bit of an out-the-box solution here but I hope I can be corrected

Connect with me:

2 Likes

+1 with @adam30, although it would be cool to be able to.

@laura.oppenheimer?

1 Like

If you know of any out-of-the-box solutions that can grab such charts…?

I think the only method now would be accessing Bubble’s server logs somehow as the WU for each action are posted there. It may involve some code.

@flusk have definitely figured it out, so it is possible but I haven’t actually done it myself

2 Likes

Looks like all this graph is coming from this single very convenient API call

https://bubble.io/appeditor/get_workload_usage_by_date

But it requires a logged in users cookies, so it’s definitely possible to ‘hack it together’ , but having access with a regular API key would definitely be great :- )

@tomajx I didn’t think to look at the dev tools but this makes a lot of sense.

If you can poll this endpoint, that would definitely be the way to do it!

Yup! We’ve heard requests for this and I think it could be very cool for customers who have a lot of WU to manage and/or want to set up custom alerting. This isn’t on the roadmap right now but we are working on some improved WU tooling - more on that soon!

2 Likes