The study dataset consists of 863 near-infrared (NIR) spectra of eight different feed ingredients, namely barley, corn, rapeseed meal, soybean expeller, soybean meal, soybean (whole bean), sunflower meal, and wheat, which are employed to obtain two compound feeds: pig feed and broiler feed. For all the spectra, reference nutritional values were obtained with reference methods for wetchemical quality analysis from accredited laboratories. The considered feed ingredients were harvested from six countries of origin and transported to factories located in four different countries, where the spectra were measured. After measurement, the ingredients were transported to a common production location where they were mixed into feed products. The exact production location was unknown and hence excluded in the study. According to this specification, the NIR spectra belong to 18 classes, characterized by feed ingredient, country of origin and measurement location, as specified in Table (Supplemental Information). Fig. shows, as an example, representative NIR spectra for each class.