Mucins are the main components of the gastrointestinal mucus layer. Mucin glycosylation is critical to most intermolecular and intercellular interactions. However, due to the highly complex and heterogeneous mucin glycan structures, the encoded biological information remains largely encrypted. Here we have developed a methodology based on force spectroscopy to identify biologically accessible glycoepitopes in purified porcine gastric mucin (pPGM) and purified porcine jejunal mucin (pPJM). The binding specificity of lectins Ricinus communis agglutinin I (RCA), peanut (Arachis hypogaea) agglutinin (PNA), Maackia amurensis lectin II (MALII), and Ulex europaeus agglutinin I (UEA) was utilized in force spectroscopy measurements to quantify the affinity and spatial distribution of their cognate sugars at the molecular scale. Binding energy of 4, 1.6, and 26 aJ was determined on pPGM for RCA, PNA, and UEA. Binding was abolished by competition with free ligands, demonstrating the validity of the affinity data. The distributions of the nearest binding site separations estimated the number of binding sites in a 200-nm mucin segment to be 4 for RCA, PNA, and UEA, and 1.8 for MALII. Binding site separations were affected by partial defucosylation of pPGM. Furthermore, we showed that this new approach can resolve differences between gastric and jejunum mucins.—Gunning, A. P., Kirby, A. R., Fuell, C., Pin, C., Tailford L. E., Juge, N. Mining the “glycocode”—exploring the spatial distribution of glycans in gastrointestinal mucin using force spectroscopy.