This study compares the microbial diversity and content of bioactive compounds in dried goji berries available on the Polish market to those of the most highly valued goji berries from the Ningxia region in China. The content of phenols, flavonoids, and carotenoids were determined, as well as the antioxidant capacities of the fruits. The quantitative and qualitative composition of the microbiota inhabiting the fruits was assessed using metagenomics by high-throughput sequencing on the Illumina platform. The highest quality was demonstrated by naturally dried fruits from the Ningxia region. These berries were characterized by a high content of polyphenols and high antioxidant activity, as well as high microbial quality. The lowest antioxidant capacity was shown by goji berries cultivated in Poland. However, they contained a high amount of carotenoids. The highest microbial contamination was found in the goji berries available in Poland (>106CFU/g), which is important in terms of consumer safety. Despite the widely accepted benefits of consuming goji berries, both the country of cultivation and the preservation method may influence their composition, bioactivity, and microbial quality.