GET https://zulip.ipd.kit.edu/api/v1/streams/{stream_id}/members
Get all users subscribed to a stream.
Usage examples
Python
curl
#!/usr/bin/env python3importzulip# Pass the path to your zuliprc file here.client=zulip.Client(config_file="~/zuliprc")# Get the subscribers to a streamresult=client.get_subscribers(stream="new stream")print(result)
curl -sSX GET -G https://zulip.ipd.kit.edu/api/v1/streams/1/members \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
Parameters
stream_idintegerrequired in path
Example: 1
The ID of the stream to access.
Response
Return values
subscribers: (integer)[]
A list containing the IDs of all active users who are subscribed
to the stream.
Example response(s)
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
ignored_parameters_unsupported array.