Helix api, subscribe to multiple streamers

I want to subscribe to multiple streamers instead of just one, not sure the command to do this, tried adding the extra id to the end of the hub.topic but it died. my axios call is below.
i tried doing something like …“hub.topic”: ‘https://api.twitch.tv/helix/streams?user_id=14827261,240377874
this was based off of an old post but im sure its no longer relevant and that was also using kraken not helix.

axios({
  method: 'post',
  url: 'https://api.twitch.tv/helix/webhooks/hub',
  headers: {'client-ID': 'some cool client id number'},
  data: {
    "hub.callback": `http://${keys.baseCallback}/api/twitch/callback`,
    "hub.mode": 'subscribe',
    "hub.topic": 'https://api.twitch.tv/helix/streams?user_id=14827261',
    "hub.lease_seconds": 10000,
    "hub.secret": 'my super cool secret code'
  }
})

You cant bulk create webhook subscriptions.
You need to do them 1 by 1

ok thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.