Export Mailchimp Data with the API: A Node.js Script
Export your Mailchimp data with the API and you get something the dashboard export doesn't give you: a repeatable, scriptable backup you can run whenever you like and feed straight into another system. With Bending Spoons agreeing on November 19, 2026 to buy Mailchimp from Intuit (closing is expected in early 2027), plenty of teams want a complete copy of their data on their own disk. Nothing has…
This guide outlines a Node.js script for exporting Mailchimp data using the API. The script covers various aspects of the Mailchimp API, including listing audiences, exporting contacts by status, saving sent campaign HTML, and optionally loading subscribed contacts into Cresca.
The script utilizes the Mailchimp API key and server prefix to authenticate requests. It handles pagination by making individual requests and utilizing the total_items field in responses. The script includes a pagination function and a main function to handle the export process.
Key points include the availability of specific data points like merged fields and campaign HTML through different API endpoints. The script also outlines the steps needed to set up the API key, server prefix, and optional Cresca API key for loading subscribed contacts.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.