Finds Pets by tags.
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
GET
/pet/findByTagsQuery parameters
tagsstring[]requiredTags to filter by
Responses
200successful operation
Array of
Petidinteger<int64>namestringrequiredcategoryCategoryShow propertiesHide properties
idinteger<int64>namestringphotoUrlsstring[]requiredtagsTag[]Show propertiesHide properties
Array of
Tagidinteger<int64>namestringstatusstringpet status in the store
Allowed:
availablependingsold400Invalid tag value
defaultUnexpected error
Request
curl -X GET "/api/v3/pet/findByTags?tags=string"const response = await fetch("/api/v3/pet/findByTags?tags=string", {
method: "GET"
});import requests
response = requests.get(
"/api/v3/pet/findByTags?tags=string",
)Response
[
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
]Invalid tag value
Unexpected error