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
- Log in to your Mailchimp account and navigate to the "Reports" tab.
- Click on "Subscribers" from the dropdown menu.
- You can filter the report by date range, list, and other criteria using the options on the left side of the page.
- Click on the "Run Report" button to generate the report.
- The report will display a list of subscribers, including their email addresses, names, and other information.
Method 2: Using the Mailchimp API
- 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".
- Use a programming language like Python or JavaScript to make an API request to the Mailchimp API.
- Use the
GET /lists/{list_id}/members
endpoint to retrieve a list of subscribers. - You can filter the response by date range, list, and other criteria using query parameters.
- 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:
- Zapier: A workflow automation tool that can connect Mailchimp to other apps and services.
- Automator: A tool that allows you to automate tasks and workflows in Mailchimp.
- Mailchimp integrations: Many third-party apps and services offer integrations with Mailchimp that can help you retrieve subscriber data.