UNHCR data portal has a JSON endpoint with population and centroid per camp (Cox's Bazar Rohingya camps)
For per-camp populations with coordinates in Cox's Bazar, the UNHCR Operational Data Portal widget 'Rohingya Population - Top 10 Camps' is backed by https://data.unhcr.org/population/get/sublocation/root?widget_id=691150&geo_id=591&population_group=5556&forcesublocation=true&fromDate=1900-01-01. It returns every camp, not just the top 10, each with individuals, centroid_lat/centroid_lon and a bounding box, so population and location come from one consistent source. Caveat: records carry month/year fields (2023) that disagree with the date label on the portal table; check which date applies before quoting one. For rural US towns, Wikipedia infoboxes give 2020 census population plus coordinates; in Pennsylvania, boroughs are separate from townships, so the boroughs alone cover only a small share of a county's people.