MailChimp.Net.V3 6.0.1

dotnet add package MailChimp.Net.V3 --version 6.0.1
                    
NuGet\Install-Package MailChimp.Net.V3 -Version 6.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MailChimp.Net.V3" Version="6.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MailChimp.Net.V3" Version="6.0.1" />
                    
Directory.Packages.props
<PackageReference Include="MailChimp.Net.V3" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MailChimp.Net.V3 --version 6.0.1
                    
#r "nuget: MailChimp.Net.V3, 6.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MailChimp.Net.V3@6.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MailChimp.Net.V3&version=6.0.1
                    
Install as a Cake Addin
#tool nuget:?package=MailChimp.Net.V3&version=6.0.1
                    
Install as a Cake Tool

MailChimp.Net - A Mail Chimp 3.0 Wrapper

Backers on Open Collective Sponsors on Open Collective

License

MailChimp.Net is licensed under the MIT license.

Quick Start

Install the NuGet package from the package manager console:

Install-Package MailChimp.Net.V3

Using it in code

using MailChimp.Net;
using MailChimp.Net.Interfaces;

IMailChimpManager manager = new MailChimpManager(apiKey); //if you have it in code

<add key="MailChimpApiKey" value="apiKEY" />
IMailChimpManager manager = new MailChimpManager(); //if you have it in config

Hint: MailChimp needs at least TLS 1.2. To use this library you have to set TLS 1.2 in ServicePointManager

ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol | SecurityProtocolType.Tls12;

Examples

// Instantiate new manager
IMailChimpManager mailChimpManager = new MailChimpManager(apiKey);
Getting all lists:
var mailChimpListCollection = await this.mailChimpManager.Lists.GetAllAsync().ConfigureAwait(false);
Getting 50 Lists:
var mailChimpListCollection = await this.mailChimpManager.Lists.GetAllAsync(new ListRequest
                                                               {
                                                                   Limit = 50
                                                               }).ConfigureAwait(false);
Getting Users from List:
var listId = "TestListId";
await this.mailChimpManager.Members.GetAllAsync(listId).ConfigureAwait(false);
Adding New User To List
var listId = "TestListId";
// Use the Status property if updating an existing member
var member = new Member { EmailAddress = $"githubTestAccount@test.com", StatusIfNew = Status.Subscribed };
member.MergeFields.Add("FNAME", "HOLY");
member.MergeFields.Add("LNAME", "COW");
await this.mailChimpManager.Members.AddOrUpdateAsync(listId, member);
Updating An Existing User
// Get reference to existing user if you don't already have it
var listId = "TestListId";
var members = await this.mailChimpManager.Members.GetAllAsync(listId).ConfigureAwait(false);
var member = members.First(x => x.EmailAddress == "abc@def.com");

// Update the user
member.MergeFields.Add("FNAME", "New first name");
member.MergeFields.Add("LNAME", "New last name");
await this.mailChimpManager.Members.AddOrUpdateAsync(listId, member);
Adding/Removing a Tag From a User
Tags tags = new Tags();
tags.MemberTags.Add(new Tag() { Name = "Awesome Person", Status = "active" });
await this.mailChimpManager.Members.AddTagsAsync(listId, "abc@def.com", tags);

To remove the tag, use "inactive" as the Status.

Status

Full Mailchimp Marketing API coverage (models, interfaces, and logic wired on IMailChimpManager).

Target frameworks: net45, net472, netstandard1.3, netstandard2.0, net10.0

TFM JSON serializer Newtonsoft.Json Microsoft.Extensions.*
net45 Newtonsoft.Json 13.0.4 Yes
net472 Newtonsoft.Json 13.0.4 Yes 10.0.10
netstandard1.3 Newtonsoft.Json 13.0.4 Yes 1.1.2 (last line supporting netstandard1.x)
netstandard2.0 Newtonsoft.Json 13.0.4 Yes 10.0.10
net10.0 System.Text.Json None 10.0.10

Models use library-local [MailChimpJsonProperty] / [MailChimpJsonConverter] attributes. Legacy TFMs map those through a Newtonsoft contract resolver; net10.0 maps them through System.Text.Json type-info modifiers. API JSON shapes stay aligned across TFMs, and net10.0 has no Newtonsoft dependency at compile time or runtime.

  • API / Ping 100%
  • Account Exports 100%
  • Audiences / Contacts (BETA) 100%
  • Authorized Apps 100%
  • Automation flows / Customer Journeys (trigger) 100%
  • Classic Automations (+ create/archive, email update/delete) 100%
  • Batch Operations 100%
  • Batch Webhooks 100%
  • Campaigns (+ search, pause/resume/create-resend) 100%
  • Campaign Content 100%
  • Campaign Feedback 100%
  • Campaign Folders 100%
  • Campaign Send Checklist 100%
  • Connected Sites 100%
  • Conversations 100% (obsolete — prefer Mailchimp Inbox)
  • Conversations Messages 100% (obsolete — prefer Mailchimp Inbox)
  • E-commerce Stores 100%
  • E-commerce Carts / Customers / Orders / Order Lines 100%
  • E-commerce Products / Variants / Images 100%
  • E-commerce Promo Rules / Codes 100%
  • E-commerce account-level Orders + PUT upserts 100%
  • Facebook Ads 100%
  • File Manager Files / Folders / Files-in-Folder 100%
  • Landing Pages (+ content, publish/unpublish) 100%
  • Lists / Audiences 100%
  • List Abuse Reports / Activity / Clients / Growth History 100%
  • List Interest Categories / Interests 100%
  • List Locations 100%
  • List Members (+ goals, activity feed, tags, events) 100%
  • List Segments / Merge Fields / Signup Forms / Surveys / Webhooks 100%
  • Reporting (landing pages, surveys, facebook ads) 100%
  • Reports (campaign) + ecommerce product activity 100%
  • Search Campaigns / Search Members 100%
  • SMS Campaigns (+ content/actions) 100%
  • Template Folders / Templates / Default Content 100%
  • Verified Domains 100%

Total 100%

Contributors

This project exists thanks to all the people who contribute. [Contribute]. <a href="https://github.com/brandonseydel/MailChimp.Net/graphs/contributors"><img src="https://opencollective.com/mailchimp/contributors.svg?width=890&button=false" /></a>

Backers

Thank you to all our backers! 🙏 [Become a backer]

<a href="https://opencollective.com/mailchimp#backers" target="_blank"><img src="https://opencollective.com/mailchimp/backers.svg?width=890"></a>

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

<a href="https://opencollective.com/mailchimp/sponsor/0/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/0/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/1/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/1/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/2/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/2/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/3/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/3/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/4/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/4/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/5/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/5/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/6/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/6/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/7/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/7/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/8/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/8/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/9/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/9/avatar.svg"></a>

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (15)

Showing the top 5 NuGet packages that depend on MailChimp.Net.V3:

Package Downloads
N3O.Umbraco.Newsletters.Mailchimp

TODO

GarciaCore.Application

Package Description

USNSiteBuilder.Core

Core library for uSkinned Site Builder for Umbraco Version 17

Kartris

Kartris is a free, open source cart system optimized for performance and capable of handling 1,000,000+ SKUs out of the box

Cosmos.Common

This package contains all the common methods and objects used by the Cosmos CMS editor website, and by any website service the role of a publishing website.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.1 3,427 8/6/2026
6.0.0 1,041 8/4/2026
5.8.2 237,147 8/28/2025
5.7.0 214,678 2/28/2025
5.6.0 104,445 10/15/2024
5.5.0 1,209,847 5/15/2023
5.4.1 146,230 3/5/2023
5.4.0 15,364 3/2/2023
5.3.1 1,258,596 10/25/2021
5.3.0 1,385 10/25/2021
5.2.0 546,614 4/7/2021
5.1.0 204,442 12/30/2020
5.0.0 115,641 11/2/2020
4.2.1 1,361,796 9/17/2019
4.2.0 42,943 7/31/2019
4.1.0 253,442 5/19/2019
4.0.0 76,158 3/28/2019
3.5.0 302,493 12/6/2018
3.4.0 109,679 10/2/2018
3.3.0 107,588 7/14/2018
Loading failed

6.0.1: URL-encode query values (fixes SearchAsync with + emails); EmailActivityReportRequest.Since; proxy-excluded open stats; Member SMS fields and Note contact_id; optimize MarketingPermissions fetch.
           6.0.0: Full Marketing API coverage; add net10.0 TFM; dual JSON (Newtonsoft on legacy TFMs, System.Text.Json only on net10.0); shared MailChimpJson* attributes; dependency bumps; breaking: WebHook.UpdateAsync now takes WebHook instead of MergeField.