Skip to content

Instantly share code, notes, and snippets.

@pshirali
Created April 9, 2019 17:57
Show Gist options
  • Save pshirali/81822965be83270dcd4456e6828c446c to your computer and use it in GitHub Desktop.
Save pshirali/81822965be83270dcd4456e6828c446c to your computer and use it in GitHub Desktop.

Fetch the RSVP list from a Meetup.com event

  1. Ensure you have curl and jq
  2. Visit: https://secure.meetup.com/meetup_api/key/ while you are logged in. Read all the warnings. Unhide your API-key and save it privately.

On your local machine:

curl -s https://api.meetup.com/<URL_NAME>/events/<EVENT_ID>/rsvps?key=<API_KEY> \
| jq '.[] | select(.response == "yes") | .member.name'

Replace <URL_NAME>, <EVENT_ID> and <API_KEY>

Reference

API Reference: https://www.meetup.com/meetup_api/docs/:urlname/events/:event_id/rsvps/#list

A successful response is a list-of-Event-RSVPs. The structure of keys for each RSVP in the list is listed below. Craft your jq filter accordingly:

{
    "created"
    "event": {
        "id"
        "name"
        "time"
        "utc_offset"
        "yes_rsvp_count"
    },
    "group": {
        "group_photo": {
            "base_url"
            "highres_link"
            "id"
            "photo_link"
            "thumb_link"
            "type"
        },
        "id"
        "join_mode"
        "localized_location"
        "members"
        "name"
        "status"
        "urlname"
        "who"
    },
    "guests"
    "member": {
        "event_context": {
            "host"
        },
        "id"
        "name"
    },
    "response"
    "updated"
    "venue": {
        "address_1"
        "city"
        "country"
        "id"
        "lat"
        "localized_country_name"
        "lon"
        "name"
        "repinned"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment