Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the segment id of a tag in Mailchimp?

I'm trying to use the Mailchimp API v3 to add tags to multiple subscribers. According to the Mailchimp API documentation, I need the segment id of the tag to do this. Where can I find this?

like image 814
Nicole Hemenway Avatar asked Mar 08 '19 22:03

Nicole Hemenway


People also ask

How do I create a segment from a tag in Mailchimp?

Click the List drop-down menu and choose the audience you want to work with. Click the Tag or Segment drop-down menu and choose Group or new segment. Choose your segmentation conditions. Click the Any drop-down to set the logic for your segment.

What are tags and segments in Mailchimp?

Tags, groups, and segments are the main audience management tools you'll find in Mailchimp. Learn more about how they work together. Tags are built for your own, internal audience organization.


2 Answers

Found it.

1) Log into the Mailchimp API Playground
2) Click Lists, then Subresources, then segments.
3) Click on the relevant segment.
4) You'll see: "id: {your_segment_id}" under Details.

like image 160
Nicole Hemenway Avatar answered Dec 30 '22 21:12

Nicole Hemenway


I think I could find more simple way to find segment_id.

  1. Log into Mailchimp using your account
  2. Go to audience->View Contacts. Click on Manage Contacts and select Segments
  3. Right click on your segment and do copy link
  4. Paste copied link anywhere to get segment_id from URL. URL would be like https://us20.admin.mailchimp.com/lists/segments/view-members?id=xxxx&segment_id=xxxx
like image 22
Usman Mughal Avatar answered Dec 30 '22 20:12

Usman Mughal