ConntectApi can be used to get the records that are followed in Salesforce Chatter Streams.
Sample Code:
ConnectApi.ChatterStream objCS = ConnectApi.ChatterFeeds.getStream(
null, '0Fq3t00000000u9CAA'
);
System.debug(
'Chatter Stream ' +
objCS
);
for ( ConnectApi.FeedEnabledEntity objFEE : objCS.subscriptions ) {
System.debug( 'Record Id is ' + objFEE.id );
System.debug( 'Record Name is ' + objFEE.name );
}
Output: