Porous microneedles with tunable porosity and desirable mechanical properties are successfully fabricated. The integration of PMN with aptasensor enable the efficient detection of netilmicin in fish, milk and river water samples, demonstrating high recovery rates. The PMN represent potential tools for the convenient and rapid detection of antibiotic residues within complex food matrices, thereby enhancing food safety monitoring.