The element composition of the underground and surface parts of Onobrychis buhseana and Onobrychis bobrovi, which are distributed in the flora of Azerbaijan, was studied by an ICP-MS device, and the amount of 26 elements (Li, Be, B, Na, Mg, Al, K, Ca, V, Cr, Mn, Fe, Co, Ni, Cu, Zn, As, Se, Sr, Ag, Cd, Sn, Ba, Ce, Tl, and Pb) in the raw material was determined in ppm. The composition of raw materials is dominated by some macroelements (calcium, potassium, and magnesium), microelements (iron and zinc), and ultramicroelements (selenium, cobalt, and chromium). Some of the most frequent harmful trace elements, such as As and Cd, were discovered at extremely low concentrations.