BACKGROUND: Influenza vaccination early after myocardial infarction (MI) improves prognosis but vaccine effectiveness may differ dependent on type of MI.METHODS: A total of 2571 participants were prospectively enrolled in the IAMI trial and randomly assigned to receive in-hospital inactivated influenza vaccine or saline placebo. The trial was conducted at 30 centers in 8 countries from October 1, 2016 to March 1, 2020. Here we report vaccine effectiveness in the 2467 participants with ST-segment elevation MI (STEMI, n=1348) or non-ST-segment elevation MI (NSTEMI, n=1119). The primary endpoint was the composite of all-cause death, MI, or stent thrombosis at 12 months. Cumulative incidence of the primary and key secondary endpoints by randomized treatment and NSTEMI/STEMI was estimated using the Kaplan-Meier method. Treatment effects were evaluated with formal interaction testing to assess for effect modification.RESULTS: Baseline risk was higher in participants with NSTEMI. In the NSTEMI group the primary endpoint occurred in 6.5% of participants assigned to influenza vaccine and 10.5% assigned to placebo (hazard ratio [HR], 0.60; 95% CI, 0.39-0.91), compared to 4.1% assigned to influenza vaccine and 4.5% assigned to placebo in the STEMI group (HR, 0.90; 95% CI, 0.54-1.50, P=0.237 for interaction). Similar findings were seen for the key secondary endpoints of all-cause death and cardiovascular death. The Kaplan-Meier risk difference in all-cause death at 1 year was more pronounced in participants with NSTEMI (NSTEMI: HR, 0.47; 95% CI 0.28-0.80, STEMI: HR, 0.86; 95% CI, 0.43-1.70, interaction P=0.028).CONCLUSIONS: The beneficial effect of influenza vaccination on adverse cardiovascular events may be enhanced in patients with NSTEMI compared to those with STEMI.