Not sure what you are doing here thats relevant to API Calls.
The code you pasted doesn’t specify a user_id so should always return the user information for the provided oAuth or an error otherwise.
You’ve used a variety of tools and I’m confused what you’ve tried where now…