If you whitelist a user custom field in public user custom fields site setting then you can get it in /u/USERNAME.json API endpoint.
Else if you whitelist in staff user custom fields setting then you can get it in the same API endpoint if you used a staff user’s / global api key.