Foodborne illnesses caused by Salmonella bacteria pose a significant threat to public health. It is still challenging to detect them effectively. Herein, biotemplated Janus disk-shaped magnetic microrobots (BJDMs) based on diatomite are developed for the highly efficient detection of Salmonella in milk. The BJDMs were loaded with aptamer, which can be magnetically actuated in the swarm to capture Salmonella in a linear range of 5.8 × 10