With Discord User Api you can get anyone basic data in JSON form just using their id
To do that you need to make a request to https://grosik.dev/user/[id] and replace [id] with the id of the user you want to get info about.
You can also get just their picture as image not URL with https://grosik.dev/pfp/[id]/image.png