Beijing residents have often wondered whether the city's air pollution is getting better or worse.

Although the U.S. Embassy in Beijing and the Chinese government both publish air-quality readings every hour, limited historical data is publicly available. This partly changed last month when the U.S. State Department posted online a treasure trove of data showing hourly readings taken since 2008 at an air-monitoring station at its Beijing embassy.

...