In this study, we demonstrated that serum IL-5 and IFN-γ levels were correlated with the efficacy of anti-PD-1 treatment in metastatic GC and NSCLC patients. Here, IFNG is linked to gastric cancer.