Hi there,
This can be easily done. First, retrieve the member’s slug from the page URL, and use it to perform a query against the members’ database, and then return the specific data that you want.
Make sure to only run this code on the backend (for security), and only return the absolute necessary data, and also to explain this in your privacy policy.
Note: This thread is old, and will be closed, if you have further questions feel free to open up a new thread.