Zhang Weimin, NBS deputy director, thanked the public, particularly the foreigners, for their cooperation during the census.
He told China Daily that those living illegally in China would not face repatriation based on the census information.
Foreigner communities began to form in major economic boomtowns here, like the black community in Guangzhou, capital of South China's Guangdong province, according to Zhai.
The census collected the name, age, gender, nationality, education, purpose and duration of stay of foreigners.
Howie Lam, a 32-year-old US-born Chinese who has been in China for four years for business, said: "As a foreigner in Shanghai, I think there are obviously many privileges that we don't have but the locals do. For example, the property-buying limit (only one allowed for a foreigner) or getting a monthly cell phone plan (you must have local ID to get a monthly cell phone plan)."
"Also, from what I know, visas can be pretty troublesome for some foreigners. It's been okay for me as I have a normal job here, but for others that may not have stable jobs, it may be problematic," he said.
Australian Chris Griffin, a 34-year-old executive chef of White Lotus Catering and Events, who has been in China for five years, recalled his experience with the census.
"A lady came to my apartment and tried to ask me a few questions. My wife, who is Chinese, helped to do the translation for me when the lady asked a few general questions like the length of my stay in China, my age, my name and so on in Chinese," he said.
"I suggest that the government should educate us foreigners as to what social welfare we're entitled and what benefit we qualify for," he noted, adding that the current visa application requirements are too strict.