Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I retrieve list members using given a unique_email_id on Mailchimp API v3?

Given a unique_email_id, how can I retrieve all list members matching that ID?

I am attempting to use the search-members endpoint, ala what I do for searching email-addresses:

https://us9.api.mailchimp.com/3.0/[email protected]

but instead (given a unique_email_id of 4dce5

https://us9.api.mailchimp.com/3.0/search-members?query=4dce5

and I'm getting no results.

Is there another endpoint I'm missing?

like image 576
chrismanderson Avatar asked Jul 19 '17 13:07

chrismanderson


People also ask

What is Subscriber hash MailChimp?

According to the documentation, subscriber_hash refers to 'The MD5 hash of the lowercase version of the list member's email address. '


1 Answers

However using the query string ?unique_email_id=X attached to the end of GET lists/list_id/members will pull up anyone with that specific EUID.

Indeed this works very well. Example :

GET /3.0/lists/dfc3cf4b38/members?unique_email_id=f4b75a9d78&fields=members.email_address

will return :

{"members":[{"email_address":"[email protected]"}]}
like image 52
Dacey Avatar answered Oct 03 '22 22:10

Dacey