A device for obtaining biological material or biological information from a sample with a heterogeneous matrix, for example a sample of human or animal stools, the device comprising: - a container configured to receive a content comprising the sample and at least one suspending solution intended to allow suspending said sample, - a cap (11, 21, 31) configured to close the container, the cap comprising: ▪ at least one calibrated sampling element to take a predetermined volume of said sample corresponding to a given mass; said calibrated sampling element (113, 213, 313) comprising at least one calibrated hollow part (1132, 2132, 3132, 4132, 5132, 6132, 7132) connected to an internal part of the cap and extending from the internal part of the cap to the interior of the container when said cap and container are assembled together, ▪ at least one opening allowing the fluid communication between the interior of the container to the exterior of the device when the cap and container are assembled together, ▪ at least one filtration element arranged to filter the content when said content passes from the interior of the container to the exterior of the device via the at least one opening; said filtration element being configured to allow the selective passage of said biological material and/or biological information out of said device, said at least one filtration means being selected from among a gradient filter, and a superposition of at least two filters, the pore size of which decreases from the inside to the outside of the device, characterized in that the container further comprises at least one mechanical suspension element, preferably of spherical shape such as a ball, disposed within the container and configured to be moved by one or more force system external to the device, for example by manual stirring or induced by the vortex, sonicator or magnetic stirrer, bead beater and in that the at least one mechanical suspension element has a size adapted to cooperate with the at least one calibrated hollow part of the calibrated sampling element, preferably in order to facilitate the suspension of the sample with a heterogeneous matrix previously sampled. - a container configured to receive a content comprising the sample and at least one suspending solution intended to allow suspending said sample, - a cap (11, 21, 31) configured to close the container, the cap comprising: ▪ at least one calibrated sampling element to take a predetermined volume of said sample corresponding to a given mass; said calibrated sampling element (113, 213, 313) comprising at least one calibrated hollow part (1132, 2132, 3132, 4132, 5132, 6132, 7132) connected to an internal part of the cap and extending from the internal part of the cap to the interior of the container when said cap and container are assembled together, ▪ at least one opening allowing the fluid communication between the interior of the container to the exterior of the device when the cap and container are assembled together, ▪ at least one filtration element arranged to filter the content when said content passes from the interior of the container to the exterior of the device via the at least one opening; said filtration element being configured to allow the selective passage of said biological material and/or biological information out of said device, said at least one filtration means being selected from among a gradient filter, and a superposition of at least two filters, the pore size of which decreases from the inside to the outside of the device, ▪ at least one calibrated sampling element to take a predetermined volume of said sample corresponding to a given mass; said calibrated sampling element (113, 213, 313) comprising at least one calibrated hollow part (1132, 2132, 3132, 4132, 5132, 6132, 7132) connected to an internal part of the cap and extending from the internal part of the cap to the interior of the container when said cap and container are assembled together, ▪ at least one opening allowing the fluid communication between the interior of the container to the exterior of the device when the cap and container are assembled together, ▪ at least one filtration element arranged to filter the content when said content passes from the interior of the container to the exterior of the device via the at least one opening; said filtration element being configured to allow the selective passage of said biological material and/or biological information out of said device, said at least one filtration means being selected from among a gradient filter, and a superposition of at least two filters, the pore size of which decreases from the inside to the outside of the device,