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, IL5 is linked to non-small cell lung carcinoma.