Petstore icon

Petstore

Interact with Petstore API

Pet → Find Pets By Tags

AI-generated

Overview

This node interacts with the Petstore API to find pets filtered by specified tags. It is useful in scenarios where you want to retrieve a list of pets that match certain tag criteria, such as finding all pets labeled as 'friendly' or 'small'. For example, a user can input tags like ['cute', 'small'] to get all pets that have these tags associated with them.

Properties

Name Meaning
Tags Tags to filter pets by; used as query parameters to find matching pets in the Petstore API

Output

JSON

  • id - Unique identifier of the pet
  • name - Name of the pet
  • category - Category object the pet belongs to
  • photoUrls - Array of photo URLs of the pet
  • tags - Array of tags associated with the pet
  • status - Status of the pet in the store (e.g., available, pending, sold)

Dependencies

Troubleshooting

  • Ensure the 'Tags' input is a valid JSON array of strings; invalid JSON or incorrect format may cause request failures.
  • If no pets are returned, verify that the tags exist in the Petstore database and are correctly spelled.
  • Network or authentication errors may occur if the API endpoint is unreachable or credentials (if used) are invalid.

Links

Discussion