You can use the Get Users endpoint, and if you provide either an OAuth token from the user you’re wanting details on, or their login (username), it will return among other things their id.
You can use the Get Users endpoint, and if you provide either an OAuth token from the user you’re wanting details on, or their login (username), it will return among other things their id.