Find pets by tags
List pets that match one or more tag values.
Returns an array of pets filtered by required tag values. The contract recommends tag1, tag2, and tag3 for testing.
Return pets filtered by tags.
/pet/findByTagsOAuth 2.0 bearer token with `write:pets` and `read:pets` scopes.
Tag values to filter by. The schema uses exploded array serialization, while the operation description says multiple values can be comma-separated.
curl --request GET \ --url https://petstore3.swagger.io/api/v3/pet/findByTags?tags=tag1 \ --header 'Authorization: Bearer example_access_token'
[
{
"id": 10,
"name": "doggie",
"photoUrls": ["https://example.com/images/doggie.jpg"],
"tags": [{ "id": 1, "name": "tag1" }],
"status": "available"
}
]For multiple tags, the description and serialization metadata conflict: the description says comma-separated strings, while the parameter uses exploded array serialization. Check your client's generated request rather than assuming one representation. The contract also defines a default Unexpected error response without a fixed status or body schema.