How to get KPIs and metrics from the Drip API
In this article we will explain how we get your metrics data from Drip 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.
Drip is an eCommerce-focused email marketing platform offering advanced automation, personalized campaigns, and detailed customer insights to boost sales with a modern API giving you access to your subscriber metrics data. You can find their documentation here: Drip's API.
Contents
- Authentication
- Endpoint
- How to get your subscriber count from Drip
- How to get your unsubscriber count from Drip
Authentication
Drip’s API support Basic authentication for private intergations. Use the API token available from your account page as the username and an empty password.
Endpoint
The primary endpoint for subscriber metrics is:
https://api.getdrip.com/v2/<account-id>/subscribers
To get the account id you can use the list endpoint:
https://api.getdrip.com/v2/accounts
You currently can’t get historic data for subscriber metrics.
How to get your subscriber count from Drip
To get the current subscriber count send a GET request to:
https://api.getdrip.com/v2/<account-id>/subscribers
While returning the first page of all subscribers the meta property will also contain a total_count
indicating the total number of subscribers.
{
"meta": {
"total_count": 1
}
}
How to get your unsubscriber count from Drip
To get the current subscriber count send a GET request to:
https://api.getdrip.com/v2/<account-id/subscribers
?status=unsubscribed
As above this will return all unsubscribed entries on your list, but will also contain a total_count
indicating the total number of unsubscribed entries.
{
"meta": {
"total_count": 1
}
}
Looking for more?
Have a look at our API knowledge base with many more services...
Drip
Email Marketing
If you'd like to have a ready-made dashboard with all the metrics from Drip instead, you can create one with MinimalDashboard in a few clicks.
Create dashboards to show
- Active Subscriber Count
- Unsubscriber Count
- Total Subscriber Count