← Mailerlite

List Subscribers with Mailerlite API

Pipedream makes it easy to connect APIs for Mailerlite and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
List Subscribers with the Mailerlite API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to List Subscribers with the Mailerlite API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the List Subscribers action
    1. Connect your Mailerlite account
    2. Optional- Select a Group
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

List Subscribers with Mailerlite API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Mailerlite
 
Try it
List Subscribers with Mailerlite API on New Message from Discord API
Discord + Mailerlite
 
Try it
List Subscribers with Mailerlite API on New Message In Channels from Slack API
Slack + Mailerlite
 
Try it
List Subscribers with Mailerlite API on New Message in Channel from Discord Bot API
Discord Bot + Mailerlite
 
Try it
List Subscribers with Mailerlite API on New Submission from Typeform API
Typeform + Mailerlite
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

List Subscribers on Mailerlite
Description:Lists all subscribers in a group. [See the docs here](https://developers.mailerlite.com/reference/subscribers)
Version:0.0.1
Key:mailerlite-list-subscribers

Code

import mailerlite from "../../mailerlite.app.mjs";
import constants from "../../common/constants.mjs";

export default {
  key: "mailerlite-list-subscribers",
  name: "List Subscribers",
  description: "Lists all subscribers in a group. [See the docs here](https://developers.mailerlite.com/reference/subscribers)",
  version: "0.0.1",
  type: "action",
  props: {
    mailerlite,
    group: {
      propDefinition: [
        mailerlite,
        "group",
      ],
      description: "List subscribers in the selected group. Leave blank to list all active subscribers.",
      optional: true,
      reloadProps: true,
    },
  },
  async additionalProps() {
    const props = {};
    if (this.group) {
      props.type = {
        type: "string",
        label: "Type",
        description: "Subscriber Type",
        options: constants.SUBSCRIBER_TYPE_OPTIONS,
        optional: true,
      };
    }
    return props;
  },
  async run({ $ }) {
    const subscribers = [];
    const params = {
      type: this.type,
      limit: constants.PAGE_LIMIT,
      offset: 0,
    };
    let resp;

    do {
      resp = await this.mailerlite.listSubscribers(this.group, params);
      subscribers.push(...resp);
      params.offset += params.limit;
    } while (resp?.length === params.limit);

    $.export("$summary", `Retrieved ${subscribers.length} subscriber(s)`);
    return subscribers;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
MailerlitemailerliteappThis component uses the Mailerlite app.
GroupgroupstringSelect a value from the drop down menu.

Authentication

Mailerlite uses API keys for authentication. When you connect your Mailerlite account, Pipedream securely stores the keys so you can easily authenticate to Mailerlite APIs in both code and no-code steps.

Get your Mailerlite developer API key here

About Mailerlite

Email marketing software

More Ways to Use Mailerlite

Actions

Create Subscriber with the Mailerlite API

Create a new subscriber. See docs

 
Try it
Remove Subscriber From Group with the Mailerlite API

Removes single subscriber from specified group. See the docs here

 
Try it
Subscribe to MailerLite Group with the Mailerlite API

Add a subscriber to a group. See the docs here

 
Try it
Update Subscriber with the Mailerlite API

Updates single active subscriber. See docs

 
Try it