Petstore icon

Petstore

Interact with Petstore API

Overview

This node operation 'Find Pets By Status' queries the Petstore API to retrieve a list of pets filtered by their status. It is useful for scenarios where you want to fetch pets that are currently available, pending adoption, or sold. For example, a pet adoption service could use this to display all available pets to potential adopters.

Properties

Name Meaning
Status Specifies the pet status to filter the search results by. Options include 'available', 'pending', and 'sold'.

Output

JSON

  • id - Unique identifier of the pet.
  • name - Name of the pet.
  • status - Current status of the pet (available, pending, sold).
  • category - Category object describing the type of pet (e.g., dog, cat).
  • photoUrls - Array of URLs pointing to photos of the pet.
  • tags - Array of tags associated with the pet.

Dependencies

Troubleshooting

  • If the node returns an empty list, verify that the 'Status' property is set correctly and that pets with that status exist in the Petstore.
  • HTTP errors may occur if the Petstore API is unreachable or if authentication credentials are invalid or missing. Check network connectivity and credential configuration.
  • Ensure the 'Status' parameter is one of the allowed values ('available', 'pending', 'sold') to avoid request errors.

Links

Discussion