Usually you can get population data sets from each country’s statistics office. E.g. for UK:

If you want to get fancy you could try to use OSM’s landuse and building data to estimate on a higher resolution where people actually live.

2 Likes