Our results suggested that serum IL-5 and IFN-γ levels could be an effective indicator for predicting clinical efficacy and survival with anti-PD-1 blockade in NSCLC and GC patients. The gene discussed is IL5; the disease is non-small cell lung carcinoma.