Endpoint Get Lists
Name
get_lists
Description
Get information about all lists in the account. [API reference]
Related Tables
Parameters
Parameter | Required | Options | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name:
Label: Created before (Format: 2015-10-21T15:41:36) Restrict response to lists created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00. |
|
|||||||||||||||||||||||||||
Name:
Label: Created after (Format: 2015-10-21T15:41:36) Restrict results to lists created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00. |
|
|||||||||||||||||||||||||||
Name:
Label: Created before last campaign send date (Format: 2015-10-21T15:41:36) Restrict results to lists created before the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00. |
|
|||||||||||||||||||||||||||
Name:
Label: Created after last campaign send date (Format: 2015-10-21T15:41:36) Restrict results to lists created after the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00. |
|
|||||||||||||||||||||||||||
Name:
Label: Includes email address Restrict results to lists that include a specific subscriber's email address. |
||||||||||||||||||||||||||||
Name:
Label: Contains active ecommerce store Restrict results to lists that contain an active, connected, undeleted ecommerce store. |
|
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(100)
|
100 | |
WebId |
DT_I4
|
int
|
||
Name |
DT_WSTR
|
nvarchar(100)
|
100 | |
Company |
DT_WSTR
|
nvarchar(500)
|
500 | |
Address1 |
DT_WSTR
|
nvarchar(500)
|
500 | |
Address2 |
DT_WSTR
|
nvarchar(500)
|
500 | |
City |
DT_WSTR
|
nvarchar(100)
|
100 | |
State |
DT_WSTR
|
nvarchar(100)
|
100 | |
Zip |
DT_WSTR
|
nvarchar(100)
|
100 | |
Country |
DT_WSTR
|
nvarchar(100)
|
100 | |
Phone |
DT_WSTR
|
nvarchar(100)
|
100 | |
PermissionReminder |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
UseArchiveBar |
DT_BOOL
|
bit
|
||
CampaignDefaultFromName |
DT_WSTR
|
nvarchar(100)
|
100 | |
CampaignDefaultFromEmail |
DT_WSTR
|
nvarchar(500)
|
500 | |
CampaignDefaultSubject |
DT_WSTR
|
nvarchar(500)
|
500 | |
CampaignDefaultLanguage |
DT_WSTR
|
nvarchar(100)
|
100 | |
NotifyOnSubscribe |
DT_WSTR
|
nvarchar(500)
|
500 | |
NotifyOnUnsubscribe |
DT_WSTR
|
nvarchar(500)
|
500 | |
DateCreated |
DT_DBTIMESTAMP
|
datetime
|
||
ListRating |
DT_I4
|
int
|
||
EmailTypeOption |
DT_BOOL
|
bit
|
||
SubscribeUrlShort |
DT_WSTR
|
nvarchar(512)
|
512 | |
SubscribeUrlLong |
DT_WSTR
|
nvarchar(1024)
|
1024 | |
BeamerAddress |
DT_WSTR
|
nvarchar(500)
|
500 | |
Visibility |
DT_WSTR
|
nvarchar(100)
|
100 | |
DoubleOptin |
DT_BOOL
|
bit
|
||
HasWelcome |
DT_BOOL
|
bit
|
||
MarketingPermissions |
DT_BOOL
|
bit
|
||
Modules |
DT_WSTR
|
nvarchar(500)
|
500 | |
MemberCount |
DT_I4
|
int
|
||
UnsubscribeCount |
DT_I4
|
int
|
||
CleanedCount |
DT_I4
|
int
|
||
MemberCountSinceSend |
DT_I4
|
int
|
||
UnsubscribeCountSinceSend |
DT_I4
|
int
|
||
CleanedCountSinceSend |
DT_I4
|
int
|
||
CampaignCount |
DT_I4
|
int
|
||
CampaignLastSent |
DT_WSTR
|
nvarchar(500)
|
500 | |
MergeFieldCount |
DT_I4
|
int
|
||
AvgSubRate |
DT_I4
|
int
|
||
AvgUnsubRate |
DT_I4
|
int
|
||
TargetSubRate |
DT_I4
|
int
|
||
OpenRate |
DT_I4
|
int
|
||
ClickRate |
DT_I4
|
int
|
||
LastSubDate |
DT_DBTIMESTAMP
|
datetime
|
||
LastUnsubDate |
DT_DBTIMESTAMP
|
datetime
|
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use Mailchimp Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
This Endpoint belongs to the Lists table, therefore it is better to use it, instead of accessing the endpoint directly:
Optional Parameters | |
---|---|
Created before (Format: 2015-10-21T15:41:36) | |
Created after (Format: 2015-10-21T15:41:36) | |
Created before last campaign send date (Format: 2015-10-21T15:41:36) | |
Created after last campaign send date (Format: 2015-10-21T15:41:36) | |
Includes email address | |
Contains active ecommerce store |

API Destination
This Endpoint belongs to the Lists table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to get lists:
Optional Parameters | |
---|---|
Created before (Format: 2015-10-21T15:41:36) | |
Created after (Format: 2015-10-21T15:41:36) | |
Created before last campaign send date (Format: 2015-10-21T15:41:36) | |
Created after last campaign send date (Format: 2015-10-21T15:41:36) | |
Includes email address | |
Contains active ecommerce store |

ODBC application
Use these SQL queries in your ODBC application data source:
Get list of lists/audiences in your Mailchimp account
SELECT * FROM Lists
Get specific columns in list of lists/audiences in your Mailchimp account
SELECT Id, WebId, Name, Company, Address1, Address2, City, State, Zip, Country, Phone, PermissionReminder, UseArchiveBar, CampaignDefaultFromName, CampaignDefaultFromEmail, CampaignDefaultSubject, CampaignDefaultLanguage, NotifyOnSubscribe, NotifyOnUnsubscribe, DateCreated, ListRating, EmailTypeOption, SubscribeUrlShort, SubscribeUrlLong, BeamerAddress, Visibility, DoubleOptin, HasWelcome, MarketingPermissions, Modules, MemberCount, UnsubscribeCount, CleanedCount, MemberCountSinceSend, UnsubscribeCountSinceSend, CleanedCountSinceSend, CampaignCount, CampaignLastSent, MergeFieldCount, AvgSubRate, AvgUnsubRate, TargetSubRate, OpenRate, ClickRate, LastSubDate, LastUnsubDate
FROM Lists
get_lists
endpoint belongs to
Lists
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get list of lists/audiences in your Mailchimp account
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Lists';
EXEC (@MyQuery) AT [LS_TO_MAILCHIMP_IN_GATEWAY];
Get specific columns in list of lists/audiences in your Mailchimp account
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT Id, WebId, Name, Company, Address1, Address2, City, State, Zip, Country, Phone, PermissionReminder, UseArchiveBar, CampaignDefaultFromName, CampaignDefaultFromEmail, CampaignDefaultSubject, CampaignDefaultLanguage, NotifyOnSubscribe, NotifyOnUnsubscribe, DateCreated, ListRating, EmailTypeOption, SubscribeUrlShort, SubscribeUrlLong, BeamerAddress, Visibility, DoubleOptin, HasWelcome, MarketingPermissions, Modules, MemberCount, UnsubscribeCount, CleanedCount, MemberCountSinceSend, UnsubscribeCountSinceSend, CleanedCountSinceSend, CampaignCount, CampaignLastSent, MergeFieldCount, AvgSubRate, AvgUnsubRate, TargetSubRate, OpenRate, ClickRate, LastSubDate, LastUnsubDate
FROM Lists';
EXEC (@MyQuery) AT [LS_TO_MAILCHIMP_IN_GATEWAY];
get_lists
endpoint belongs to
Lists
table(s), and can therefore be used via those table(s).