I'm looking to find a way to access the property "public can access the community" in the communities setting, is that even it exposed using apis?
This is possible by using the ExperienceBundle API using the property "isAvailableToGuests"
"Indicates whether public users have access to the site (true) or not (false). The default value is false.Not supported if the active template for the community doesn't support login (such as Help Center)."
However, this will require the ExperienceBundle API to be enabled. It is set to off by default but can be activated by clicking a checkbox in the Community settings