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 IFNG; the disease is gastric cancer.