Currently Niantic does not offer an API for gathering information on public wayspots. However, you can use the Wayfarer app on iOS and create your own scans. The Wayfarer app should be available for Android some time in July.
If you’d like to get information about nearby VPS-activated wayspots, you’ll want to query the VPS Coverage API.
With this API, you can retrieve a list of nearby VPS-activated wayspots. Each LocalizationTarget that gets returned by the API contains a unique identifier, a pair of latitude/longitude coordinates, a name, and an image that’s intended to help guide the players to the VPS-activated wayspot location.
Unlike the metadata information about current VPS-activated wayspots which can be retrieved from the VPS Coverage API, the metadata associated with a private scan location is not currently available at runtime and is only available via the My Meshes page of the Lightship portal.