The analysis of feed composition in terms of ingredients is addressed by Regulation (EC) 767/2009 and is important for detecting economic fraud and for monitoring feed safety. Within the framework of the EU project Feed-code, we developed and internally validated a modular assay, relying on intron polymorphism, for the complete qualitative analysis of the botanical composition of feed and the quantitative determination of six target plant species. Main performance parameters of each module, such as applicability, repeatability, specificity, and limit of detection, were evaluated. The whole assay was applied to a set of feed-like samples and results were in agreement with the expected composition. Application to a large set of compound feed and individual raw materials revealed the occurrence of botanical impurities. When compared with microscopic analysis, the proposed method gave more reliable results. We conclude that the Feed-code prototype, readily upgradable to include more plant species, is worthy of consideration for a full validation through a collaborative trial. Graphical Abstract The modular Feed-code method for the authentication of feed botanical composition.