Accurate monitoring of trace pesticides in complex matrix remains a challenge in food safety supervision. Herein, we designed a facile zeolitic imidazolate framework (ZIF)-8/aptamer-based assay for the sensitive detection of acetamiprid. ZIF-8 efficiently adsorbs 6-carboxyfluorescein-labeled complementary DNA (cDNA-FAM) via electrostatic interaction, hydrogen bonding and Zn2+ coordination, which contributed to resistance to cDNA-FAM displacement by biological ligands. ZIF-8 serves as an “ion pump” that contains lots of Zn2+ who boosts cDNA-FAM adsorption and triggers the photoinduced electron transfer (PET) effect from FAM to ZIF-8, improving the sensing sensitivity. Acetamiprid could trigger the change in the adsorption state of cDNA-FAM, further tuning the PET effect and causing fluorescence conversion. The fluorescence assay showed a high sensitivity for monitoring acetamiprid with a detection limit of 0.05 ng mL−1 in the apple sample. This ZIF/DNA-based analytical platform provides a powerful tool for facile and low-cost screening of pesticide residues, with promising applications in food safety monitoring.