This question has come up a few times, but there's no way in the API to access the dashboard display data.
But the location analytics page does allow CSV download, if you dig into it, you'll see the CSV buttons actually contain the data you want, like this in the Proximity button...
data:text/csv;charset=utf-8,Network,time,Connected,Visitors,Passersby%0Aall_networks,17%20Jan%202023%2000:00:00,5.00,759.00,2204.00%0Aall_networks,18%20Jan%202023%2000:00:00,3.00,781.00,2444.00%0Aall_networks,19%20Jan%202023%2000:00:00,2.00,747.00,2356.00%0Aall_networks,20%20Jan%202023%2000:00:00,2.00,503.00,2316.00%0Aall_networks,21%20Jan%202023%2000:00:00,2.00,185.00,1787.00%0Aall_networks,22%20Jan%202023%2000:00:00,2.00,169.00,1620.00%0Aall_networks,23%20Jan%202023%2000:00:00,2.00,609.00,1061.00%0A
It's a bit clunky, but you could write a script to load the analytics page for the target network/dates, then grab the data from the three CSV buttons.