How to get the report of subscribers from mail

To get a report of subscribers from Mailchimp, you can follow these steps:

Method 1: Using the Mailchimp Dashboard

  1. Log in to your Mailchimp account and navigate to the "Reports" tab.
  2. Click on "Subscribers" from the dropdown menu.
  3. You can filter the report by date range, list, and other criteria using the options on the left side of the page.
  4. Click on the "Run Report" button to generate the report.
  5. The report will display a list of subscribers, including their email addresses, names, and other information.

Method 2: Using the Mailchimp API

  1. You'll need to have a Mailchimp API key to use this method. You can find your API key in the Mailchimp dashboard under "Account" > "API Keys".
  2. Use a programming language like Python or JavaScript to make an API request to the Mailchimp API.
  3. Use the GET /lists/{list_id}/members endpoint to retrieve a list of subscribers.
  4. You can filter the response by date range, list, and other criteria using query parameters.
  5. The API response will contain a list of subscribers, including their email addresses, names, and other information.

Example API Request

Here's an example API request in Python using the requests library:

import requests

api_key = "your_api_key_here"
list_id = "your_list_id_here"

url = f"https://api.mailchimp.com/v3.0/lists/{list_id}/members"
headers = {"Authorization": f"Bearer {api_key}"}

response = requests.get(url, headers=headers)

if response.status_code == 200:
    subscribers = response.json()["members"]
    for subscriber in subscribers:
        print(subscriber["email_address"], subscriber["name"])
else:
    print("Error:", response.status_code)

Method 3: Using a Third-Party Tool

There are many third-party tools and integrations available that can help you retrieve a report of subscribers from Mailchimp. Some popular options include: