AimThe aim of this study is to analyze the chemical composition of raspberry using liquid chromatography‐mass spectrometry (LC–MS) technology, predict the potential effects of raspberry in treating type 2 diabetes through network pharmacology, and conduct preliminary validation through in vitro experiments.MethodsA Waters CORTECS C18 column (3.0 mm × 100 mm, 2.7 μm) was used; mobile phase A consisted of 0.1% formic acid in water and mobile phase B consisted of 0.1% formic acid in acetonitrile. Gradient elution was performed with full‐scan mode in both positive and negative ion modes, covering a mass range of m/z 100–1500. The chemical components of raspberry were analyzed and identified based on secondary spectra from databases and relevant literature. The disease targets related to type 2 diabetes were searched, and protein–protein interaction network analysis as well as gene ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analysis were conducted on the intersecting targets of the active components of raspberry and the disease. HepG2 cells were used for experimental validation, with high glucose‐induced insulin resistance models established. The CCK‐8 method was employed to assess the effects of raspberry on cell proliferation, while Western blotting was used to measure the expression of proteins related to the AGE/RAGE signaling pathway.ResultsA total of 47 components were identified, including 10 organic acids, 15 flavonoids, 12 phenols, 2 alkaloids, 4 terpenoids, 1 miscellaneous compound, 1 stilbene, 1 steroid and its derivatives, and 1 diterpenoid. Through database screening, seven active components were identified: kaempferol, epicatechin, ellagic acid, crocetin, stigmasterol, fisetin, and isorhamnetin. KEGG and GO results indicated that the therapeutic effects of raspberry on type 2 diabetes may be related to the advanced glycation end product (AGE)– receptor for advanced glycation end product (RAGE) signaling pathway. Establishment of an insulin resistance model in HepG2 cells demonstrated that, compared to the control group, the raspberry treatment group upregulated p53 protein expression while downregulating the expression of RAGE, Akt1, and Caspase‐3 proteins.ConclusionThis study preliminarily elucidates that the therapeutic effects of raspberry in treating type 2 diabetes may be mediated through the inhibition of the AGE–RAGE signaling pathway, providing important references for the study of the pharmacological basis and clinical application of raspberry.