The user_id is hashed and impossible to get without logging in from the API and as the user to get it. For both of these methods, the API supports username=, which I feel is much more convenient for API calls rather than the hashed name.