Mycotoxin contamination is widespread in plants and herbs, posing serious threats to the consumer and human health. Of them, alternariol (AOH) has attracted great attention as an "emerging" mycotoxin in medicinal herbs. However, a specific and high-throughput extraction method for AOH is currently lacking. Thus, developing an efficient pre-treatment technique for AOH detection is extremely vital. Here, a novel automated magnetic solid-phase extraction method was proposed for the highly efficient extraction of AOH. Combining the aptamer-functionalized magnetic nanoparticles (AMNPs) and the automatic purification instrument, AOH could be extracted in medicinal herbs in high throughput (20 samples) and a short time (30min). The main parameters affecting extraction were optimized, and the method was finally carried out by incubation AMNPs with 3mL of sample solution for 10min, and then desorption in 75% methanol for liquid-phase detection. Under optimal conditions, good reproducibility, stability, and selectivity were realized with an adsorption capacity of 550.84ng/mg. AOH extraction in three edible herbs showed good resistance to matrix interference with recovery rates from 86% to 111%. In combination with AMNPs and the automatic purification instrument, high-throughput and labor-free extraction of AOH in different complex matrices was achieved, which could be extended in other complex matrices.