Get Activities by Feed Group and User
GET https://api.stream-io-api.com/api/v1.0/feed/{{feed_slug}}/{{user_id}}?api_key={{API_KEY}}
The Feed endpoint is to retrieve activities in a feed (GET), or to submit an activity or list of activities (POST).
Note on Pagination: Using id_lte for pagination is preferable to using offset.
Note on Aggregated Feeds: When using id_lte to paginate an aggregated feed, use the ID of the group that is returned from the API. Using an ID of an individual activity within the group will not work and result in an error.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | ||
limit | string | Optional - Default 25 | |
id_gte | string | Optional - Filter the feed on ids greater than or equal to the given value | |
id_gt | string | Optional - Filter the feed on ids greater than the given value | |
id_lte | string | Optional -Filter the feed on ids smaller than or equal to the given value | |
id_lt | string | Optional - Filter the feed on ids smaller than the given value | |
offset | string | Optional - Default 0 - Offsets the results | |
recentReactionsLimit | string | Optional - Specify number of reactions in the "latest_reactions" attribute, maximum value is 25. | |
withRecentReactions | string | Optional - If true activity object will have attribute "latest_reactions" that contains list of recently created reactions | |
withOwnReactions | string | Optional - If true activity object will have attribute "own_reactions" that contains list of reactions created by the user himself. | |
withReactionCounts | string | Optional - If true activity object will have attribute "reaction_counts" that contains number of reactions for each kind | |
ranking | string | Optional - If ranking is enabled on your feed group you can supply the ranking method to use by supplying the ranking method's slug |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string | ||
Stream-Auth-Type | string |