On this page
Finds Pets by tags.
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
GET
/pet/findByTagsFinds Pets by tags.curl 'https://petstore3.swagger.io/api/v3/pet/findByTags?tags=string' \
-H 'Authorization: Bearer <token>'Example response · 200
[
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
]#Authentication
petstore_authwrite:petsread:pets#Parameters
tagsarray of stringrequiredqueryTags to filter by
#Responses
successful operation
application/json · Type: array of Pet
idinteger (int64)namestringrequiredcategoryCategoryphotoUrlsarray of stringrequiredtagsarray of Tagstatusstringpet status in the store
Allowed values: "available", "pending", "sold"
application/xml · Type: array of Pet
idinteger (int64)namestringrequiredcategoryCategoryphotoUrlsarray of stringrequiredtagsarray of Tagstatusstringpet status in the store
Allowed values: "available", "pending", "sold"
[
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
]<pet>
<id>10</id>
<name>doggie</name>
<category>
<id>1</id>
<name>Dogs</name>
</category>
<photoUrls>
<photoUrl>string</photoUrl>
</photoUrls>
<tags>
<tag>
<id>0</id>
<name>string</name>
</tag>
</tags>
<status>available</status>
</pet>Invalid tag value
Unexpected error