mailchimp

How can I get interest groups from the MailChimp 3.0 API?


Anyone know what the proper endpoint is to get all interest groups for a list in Mailchimp's 3.0 API? The only documentation I can find is here: https://github.com/mailchimp/APIv3-examples/wiki/Resources

When I attempt to use /3.0/lists/{list_id}/interest-groupings as mentioned I get the following response:

Class Object ( [type] => http://kb.mailchimp.com/api/error-docs/404-resource-not-found [title] => Resource Not Found [status] => 404 [detail] => The resource 'InterestGroupings_Collection' could not be found. [instance] => )

Requested url looks like this: https://DATA_CENTER.api.mailchimp.com/3.0/lists/LIST_ID/interest-groupings?apikey=API_KEY

I clearly do not have the proper endpoint but thought I would ask as I found the answer to my other issue here on SO.


Solution

  • You're looking at severely outdated docs from the beta -- you'd be better off checking out the API Playground, but the endpoint you're looking for is interest-categories.