Skip to content

Instantly share code, notes, and snippets.

@scottyab
Last active September 26, 2023 09:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottyab/54037a82d9681eb3d1fc2e9e8872dfa0 to your computer and use it in GitHub Desktop.
Save scottyab/54037a82d9681eb3d1fc2e9e8872dfa0 to your computer and use it in GitHub Desktop.
Query all the past events a meetup.com group has hosted. Meetup doesn’t great way of surfacing a meetup groups past events (paging through the calendar is PITA). This GraphQL query can be run from the MeetupAPI GraphQL playground https://www.meetup.com/api/playground/#graphQl-playground
{ "urlname": "YOUR URL PATH here, for https://www.meetup.com/swmobile the urlname is swmobile" }
query ($urlname: String!) {
groupByUrlname(urlname: $urlname) {
pastEvents(input: {first: 300}) {
count
pageInfo {
endCursor
}
edges {
node {
id
title
host { name }
dateTime
going
eventUrl
}
}
}
}
}
@scottyab
Copy link
Author

scottyab commented Aug 14, 2023

Here's an example of the above in place on the graphQl-playground
meetup graph ql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment