Finds Pets by status.
Multiple status values can be provided with comma separated strings.
GET
/pet/findByStatusQuery parameters
statusstringrequiredStatus values that need to be considered for filter
default: "available"
Allowed:
availablependingsoldResponses
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 status value
defaultUnexpected error
Request
curl -X GET "/api/v3/pet/findByStatus?status=available"const response = await fetch("/api/v3/pet/findByStatus?status=available", {
method: "GET"
});import requests
response = requests.get(
"/api/v3/pet/findByStatus?status=available",
)Response
[
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
]Invalid status value
Unexpected error