That is legally not okay and even forbidden to disclose personal data. For that, you have to be either the owner (as with the land register extract) or prove a legitimate interest. And a simple "I would like to know who owns the property" is not sufficient for that.

That is how or similarly how it is stated at every authority. You are not a buyer but just a curious person. If an authority does not pay attention, you get the statement about the owner. It is basically strictly forbidden for a pure ownership search.