6

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?

Nicole Hemenway
  • 563
  • 5
  • 13

2 Answers2

11

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.

Nicole Hemenway
  • 563
  • 5
  • 13
  • 1
    I can't see my segment is this list. But I can the segment name with created date under Audience-> Manage contacts-> Segments but segment id is not listed there. How can I show my segment into Mailchimp API Playground? or find segment id under audience? – Usman Mughal Jan 08 '20 at 10:28
  • I am looking for a 'static segment' / 'tag' ID, but can't see it ANYWHERE..?! – 00-BBB Jan 21 '20 at 11:13
  • 1
    If you have more than 10 segments you won't find it listed in the API playground because the default paging group is 10 and it only displays the first page. You can use Postman to get a full list. – user3665624 Feb 13 '20 at 05:10
7

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
Usman Mughal
  • 201
  • 2
  • 8