You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于使用Meetup.com GraphQL API获取附近活动的技术咨询

使用Meetup.com GraphQL API获取附近活动的技术咨询

Hey Hassanjava! I’ve worked with the Meetup GraphQL API before, so let’s figure out how to pull nearby events without relying on a specific search keyword.

Your current keywordSearch query works well for targeted searches, but to get all events near your coordinates, you can tweak the filter by either omitting the query parameter entirely or setting it to an empty string. The API will then ignore the keyword filter and only use your latitude, longitude, and radius to return relevant results.

Here’s the adjusted query you can use:

query {
  keywordSearch(filter: {
    lat: 57.10557,
    lon: 12.25078,
    radius: 100,
    source: EVENTS
  }) {
    count
    edges {
      cursor
      node {
        id
        result {
          ... on Event {
            title
            eventUrl
            description
            dateTime
            going
            shortDescription
          }
        }
      }
    }
  }
}

If the API enforces the query parameter (some endpoints require it even for broad searches), you can set it to an empty string instead:

query {
  keywordSearch(filter: {
    query: "",
    lat: 57.10557,
    lon: 12.25078,
    radius: 100,
    source: EVENTS
  }) {
    count
    edges {
      cursor
      node {
        id
        result {
          ... on Event {
            title
            eventUrl
            description
            dateTime
            going
            shortDescription
          }
        }
      }
    }
  }
}

A few quick tips to keep in mind:

  • Double-check the radius unit: Meetup’s API typically uses miles for radius values. If you need kilometers, convert your number first (100 miles ≈ 160 km).
  • Ensure your API credentials have permission to access public event data—some restricted groups won’t show up unless you’re a member.
  • If keywordSearch gives you trouble, check if the exploreEvents endpoint is available in your API version; it’s designed for location-based event discovery without keywords.

Hopefully this gets you the nearby events you’re looking for!

备注:内容来源于stack exchange,提问作者Hassanjava

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 11:13:06