Respiratory syncytial virus (RSV) is one of the most common virus causing community-acquired pneumonia (CAP) in children. To guide the prevention, diagnosis and treatment of RSV, we aimed to analyze the epidemiology of RSV in hospitalized children with CAP. A total of 9,837 hospitalized children (≤14 years old) with CAP from January 2010 to December 2019 were reviewed. Using the real-time polymerase chain reaction (RT-PCR), the oropharyngeal swab specimens were collected and tested for RSV, influenza virus A (INFA), influenza virus B (INFB), parainfluenza virus (PIV), enterovirus (EV), coronavirus (CoV), human metapneumovirus (HMPV), human bocavirus (HBoV), human rhinovirus (HRV), and adenovirus (ADV) for each patient. The detection rate of RSV was 15.3% (1,507/9,837). From 2010 to 2019, the RSV detection rate showed a wavy change (χ2=166.982, P<0.001), with the highest detection rate in 2011 (158/636, 24.8%). RSV can be detected throughout the year, with the highest detection rate in February (123/482, 25.5%). Children younger than 0.5 years old had the highest detection rate (410/1,671, 24.5%). The detection rate of RSV in male children (1,024/6,226, 16.4%) was higher than that in female children (483/3,611, 13.4%) (P<0.001). A proportion of 17.7% (266/1,507) of RSV positive cases were also co-infected with other viruses, and INFA (41/266, 15.4%) was the most common coinfection virus. After adjusting for potential confounders, the RSV-positive children were associated with increased risk of severe pneumonia [odds ratio (OR) 1.26, 95% confidence interval (CI): 1.04 to 1.53, P=0.019]. Moreover, children with severe pneumonia had significantly lower cycle threshold (CT) values of RSV than those without severe pneumonia (28.88±3.89 vs. 30.42±3.33, P<0.01). Patients with coinfection (38/266, 14.3%) had a higher risk of severe pneumonia than those without coinfection (142/1,241, 11.4%), but the difference was not statistically significant (OR 1.39, 95% CI: 0.94 to 2.05, P=0.101). The detection rate of RSV in CAP hospitalized children changed by years, months, ages, and sexes. CAP hospitalized children with RSV are more likely to develop severe pneumonia than those without RSV. Policy makers and doctors should make timely adjustments to prevention measures, medical resources and treatment options based on these epidemiological characteristics.