How to get KPIs and metrics from the Bento API

In this article we will explain how we get your metrics data from Bento to display in MinimalDashboard, but if you want to use this data in your own application you can either use our API or follow the instructions below to write your own implementation.

Bento is an email marketing platform focused on simplicity, offering automation, segmentation, and analytics for small businesses and creators with a modern API givign you access to your current subscriber metrics. You can find their documentation here: Bento's API.

Contents

Authentication

Bento requires a HTTP Basic authentication using the publishable key from your account as the username and the secret key as the password.

You can find these values in your user settings (the cog menu) by going to “API Keys”.

You’ll also need the site_uuid for the site you want to fetch data for. On the API Keys page there’s a list of sites you have access to and can copy the id. Append that to any endpoint query like this https://app.bentonow.com/api/v1/stats/site?site_uuid=...

Endpoint

The primary endpoint for account statistics is: https://app.bentonow.com/api/v1/stats/site.

You currently can’t get historic data (or derive it from your subscriber data unless you are on an enterprise account).

How to get your subscriber metrics from Bento

To get the current subscriber count send a GET request to:

https://app.bentonow.com/api/v1/stats/site
  // Replace this with the id of the site
  ?site_id=<YOUR_SITE_ID>

This will return both your current subscriber and unsubscriber count for your account

{
  "user_count": 1,
  "subscriber_count": 42,
  "unsubscriber_count": 13
}

Looking for more?

Have a look at our API knowledge base with many more services...

icon related to Bento

Bento

Email Marketing

If you'd like to have a ready-made dashboard with all the metrics from Bento instead, you can create one with MinimalDashboard in a few clicks.

Create dashboards to show

  • Subscriber Count
  • Unsubscriber Count
Create your Bento dashboard today