The present invention provides a gastrointestinal sampling capsule includes an enclosure, a sampling port on the enclosure and a sampling module connected to the enclosure. The sampling port includes a plurality of sampling holes, and the sampling module includes a sample chamber and a sampling trigger unit which controls a connection or disconnection between the sampling port and the sample chamber to turn on sampling or turn off sampling. The gastrointestinal sampling capsule further includes a connecting passage arranged between the sample chamber and the sampling port, wherein an inlet of the connecting passage corresponds to the sampling port and an outlet of the connecting passage is connected to the sample chamber. A gap is provided between the plurality of sampling holes and the inlet of the connecting passage, through which the plurality of sampling holes are connected to the connecting passage.