Petstore icon

Petstore

Interact with Petstore API

User → Get User By Name

AI-generated

Overview

This node operation fetches user details by their username from the Petstore API. It is useful when you need to retrieve specific user information based on a known username, such as for user management, verification, or display purposes. For example, you can input a username like 'user1' to get that user's profile data.

Properties

Name Meaning
Username The username of the user to fetch. This is a required string input that specifies which user's details to retrieve.

Output

JSON

  • id - Unique identifier of the user.
  • username - The username of the user.
  • firstName - User's first name.
  • lastName - User's last name.
  • email - User's email address.
  • password - User's password (usually hashed or masked).
  • phone - User's phone number.
  • userStatus - Status code representing the user's state.

Dependencies

Troubleshooting

  • Ensure the username provided exists; otherwise, the API may return a 404 or empty response.
  • Check network connectivity to the Petstore API endpoint.
  • Verify that any required API authentication (if configured) is correctly set up to avoid authorization errors.

Links

Discussion