The invention provides a method for measuring trace alkaloids and nitrosamines in oral tobacco products. The method includes the following steps that: a) oral tobacco products are sliced, and are added into to an extraction solvent and a deuterated isotope internal standard, extraction is performed with an accelerated solvent extraction method, an extract liquid is collected; b) the extract liquidand a QuECHERS reagent are subjected to vortex mixing for 1-3min, centrifuging is performed at a speed of 9000-11000 rpm for 3-7min, so that a supernate can be obtained; and c) a UPLC-HR-MS method isadopted to perform quantitative analysis on trace alkaloids and specific nitrosamines for the cigarettes in the supernate. With the method disclosed by the invention adopted, 6 trace alkaloids, namely, neonicotine, nornicotine, myosmine, cotinine, nicotelline and N-formyl nornicotine and four specific nitrosamines, namely NNN, NNK, NAT and NAB in the main stream smoke of cigarettes can be measured simultaneously. The method has the advantages of high sensitivity, high accuracy and high selectivity, and is suitable for the rapid determination of trace alkaloids and nitrosamines in batched gum-base oral tobacco products.