The Japanese government provides data on the number of foreign residents at the Japanese municipality - origin nationality level (and for some years, immigration status - origin nationality level) but file format differs across years. I harmonized this into a single muncipality panel. Raw data is available here from 2006 for large municipalities (市/区) and from 2012 for all municipalities. Please feel free to contact me if you are interested in using this data.