Member Activity

Get details about subscribers’ recent activity.

Available methods

    • Get recent list member activity

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

      Get the last 50 events of a member’s activity on a specific list, including opens, clicks, and unsubscribes.

      Path parameters

      list_id The unique id for the list.
      subscriber_hash The MD5 hash of the lowercase version of the list member’s email address.

      Query string parameters

      fields Type: Array Title: Fields Read only: false A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
      exclude_fields Type: Array Title: Exclude Fields Read only: false A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.

      Response body parameters

      activity Type: Array Title: Activity Read only: false An array of objects, each representing a member event.
      Show properties
      action Type: String Title: Action Type Read only: false The type of action recorded for the subscriber.
      timestamp Type: String Title: Timestamp Read only: false The date and time recorded for the action.
      url Type: String Title: URL Read only: false For clicks, the URL the subscriber clicked on.
      type Type: String Title: Campaign Type Read only: false The type of campaign that was sent.
      campaign_id Type: String Title: Campaign ID Read only: false The web-based ID for the campaign.
      title Type: String Title: Campaign Title Read only: false If set, the campaign’s title.
      parent_campaign Type: String Title: Parent Campaign ID Read only: false The ID of the parent campaign.
      email_id Type: String Title: Email Hash Read only: true The MD5 hash of the lowercase version of the list member’s email address.
      list_id Type: String Title: List ID Read only: true The list id.
      total_items Type: Integer Title: Item Count Read only: false The total number of items matching the query regardless of pagination.
      _links Type: Array Title: Links Read only: true A list of link types and descriptions for the API schema documents.
      Show properties
      rel Type: String Title: Rel Read only: true As with an HTML ‘rel’ attribute, this describes the type of link.
      href Type: String Title: Href Read only: true This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
      method Type: String Title: Method Read only: true The HTTP method that should be used when accessing the URL defined in ‘href’.
      Possible Values:
      • GET
      • POST
      • PUT
      • PATCH
      • DELETE
      • OPTIONS
      • HEAD
      targetSchema Type: String Title: Target Schema Read only: true For GETs, this is a URL representing the schema that the response should conform to.
      schema Type: String Title: Schema Read only: true For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.

      Example request

      
      curl --request GET \
      --url 'https://usX.api.mailchimp.com/3.0/lists/57afe96172/members/62eeb292278cc15f5817cb78f7790b08/activity' \
      --user 'anystring:apikey' \
      --include
                                      

      Example response

      
      HTTP/1.1 200 OK
      Server: nginx
      Content-Type: application/json; charset=utf-8
      Content-Length: 4370
      Vary: Accept-Encoding
      X-Request-Id: 3f11aee8-a5a2-4ddf-87d7-bc229c3bf8b2
      Link: <https://api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json>; rel="describedBy"
      Date: Wed, 16 Sep 2015 21:42:58 GMT
      Connection: keep-alive
      
      
      {
        "activity": [
          {
            "action": "open",
            "timestamp": "2015-09-15T19:15:47+00:00",
            "campaign_id": "42694e9e57",
            "title": "Freddie's Jokes Vol. 1"
          },
          {
            "action": "sent",
            "timestamp": "2015-09-15T19:05:51+00:00",
            "type": "regular",
            "campaign_id": "42694e9e57",
            "title": "Freddie's Jokes Vol. 1"
          },
          {
            "action": "mandrill_send",
            "timestamp": "2015-09-02T17:16:41+00:00",
            "campaign_id": "",
            "title": "Freddie's Jokes Vol. 3"
          },
          {
            "action": "mandrill_open",
            "timestamp": "2015-07-13T18:14:09+00:00",
            "campaign_id": "",
            "title": "Freddie's Jokes Vol. 3"
          }
        ],
        "email_id": "62eeb292278cc15f5817cb78f7790b08",
        "list_id": "57afe96172",
        "_links": [
          {
            "rel": "self",
            "href": "https://usX.api.mailchimp.com/3.0/lists/57afe96172/members/62eeb292278cc15f5817cb78f7790b08/activity",
            "method": "GET",
            "targetSchema": "https://api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"
          },
          {
            "rel": "parent",
            "href": "https://usX.api.mailchimp.com/3.0/lists/57afe96172/members/62eeb292278cc15f5817cb78f7790b08",
            "method": "GET",
            "targetSchema": "https://api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"
          }
        ],
        "total_items": 4
      }
                                      

      Error response

      type Type: String Title: Problem Type Read only: false An absolute URI that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type.
      title Type: String Title: Error Title Read only: false A short, human-readable summary of the problem type. It shouldn’t change based on the occurrence of the problem, except for purposes of localization.
      status Type: Integer Title: HTTP Status Code Read only: false The HTTP status code (RFC2616, Section 6) generated by the origin server for this occurrence of the problem.
      detail Type: String Title: Error Message Read only: false A human-readable explanation specific to this occurrence of the problem. Learn more about errors.
      instance Type: String Title: Instance ID Read only: false A string that identifies this specific occurrence of the problem. Please provide this ID when contacting support.