The deputy environment minister’s comments appeared aimed at the US embassy, which puts out its own figures on high pollution levels in Beijing.
The US embassy has a monitoring station on its roof and publishes the results hourly on the internet.
Without mentioning the US, Wu Xiaoqing, deputy minister of Environmental Protection told a press briefing in Beijing that only the Chinese government is authorised to publish air pollution data.
In reply to a question, Mr Wu said that “some foreign embassies and consulates in China are monitoring air quality and publishing the results themselves”.
He said that this contravened the Vienna Convention on Diplomatic Relations and the Vienna Convention on Consular Relations.
But many residents have questioned the accuracy of official government figures, which until this year did not include the most damaging particles.
The US says its own equipment should not be wholly relied on, as its data is compiled from only a single monitor. Its website makes clear that the measurements are for the benefit of embassy personnel and do not give citywide data.
The US monitoring helped spur a public outcry earlier this year that forced China to update its own standards, according to the BBC’s Damian Grammaticas.
China has privately demanded that the US halt its readings in the past, but this is believed to be the first time it has delivered a public warning over the issue, he adds.