Animals foraging on variable food sources can refine their estimates of patch quality by monitoring the success of others (i.e. collect 'public information'). Here, we show that both three-spined sticklebacks (Gasterosteus aculeatus) and nine-spined sticklebacks (Pungitius pungitius) use past cues provided by others to locate food but only nine-spined sticklebacks use prior public information to assess patch quality, regardless of whether demonstrators were conspecifics or heterospecifics. Moreover, nine-spined but not three-spined sticklebacks preferentially hid in vegetation during the demonstration, a position from which they could observe both patches simultaneously and collect public information. We conclude that species differences in the use of public information can be explained by variations in habitat choice and response to predation. Our findings expand current understanding of the scope of public-information use in animals by showing that fishes can use public-information in a foraging context and from heterospecifics. The study suggests that public-information use is an adaptation that allows animals vulnerable to predation to acquire valuable foraging information at low risk.