How to get files from a public share via OCS Share API without credentials

https://example.com/nextcloud/public.php/webdav is a general webdav endpoint.

Of course you can also query which files are in that public share by using PROPFIND. See the docs: Basic APIs — Nextcloud latest Developer Manual latest documentation