MailChimp API v3 - Get members by email

1.3k views Asked by At

I am using MailChimp API v1/v2. In that version, I could get member-info for multiple members by providing their emails to member-info API

Now, I want to upgrade to v3, however, I am unable to find the equivalent API endpoint for member-info in v3. I can't use /batches operation, as I will be calling the API on the fly and will show the response to my users.

Any pointers/suggestions?

2

There are 2 answers

1
infused On

There is no way to look up multiple list members with v3 without using the batch API, but you can get each member one by one using this endpoint:

GET /lists/{list_id}/members/{subscriber_hash}

Here's an example using the Gibbon gem:

email_hash = Digest::MD5.hexdigest("[email protected]") 
request = Gibbon::Request.new(api_key:"YOUR API KEY")
member_info = request.lists("YOUR LIST ID").members(email_hash).retrieve
0
jhut89 On

There is also a /search-members endpoint you could use to find your members. http://developer.mailchimp.com/documentation/mailchimp/reference/search-members/#read-get_search_members