To determine the most relevant pathogens for CAP in Germany, patients with radiologically confirmed pulmonary infiltrates and at least one clinical sign of lung infection were prospectively recruited within the CAPNETZ cohort from 2004 until 2016. In 990 out of 4.672 patients (21%) receiving complete diagnostics the most prominent change of pathogens was a decrease of S. pneumoniae (58% in 2004 to 37.5% in 2016; p ≤ 0.001, ρ = − 0.148) and an increase of H. influenzae (12.2% to 20.8%; p = 0.001, ρ = 0.104).