Skip to content
Get started

Finds Pets by status

get/pet/findByStatus

Multiple status values can be provided with comma separated strings

Query ParametersExpand Collapse
status: optional "available" or "pending" or "sold"

Status values that need to be considered for filter

Accepts one of the following:
"available"
"pending"
"sold"
ReturnsExpand Collapse
name: string
photoUrls: array of string
id: optional number
category: optional Category { id, name }
id: optional number
name: optional string
status: optional "available" or "pending" or "sold"

pet status in the store

Accepts one of the following:
"available"
"pending"
"sold"
tags: optional array of object { id, name }
id: optional number
name: optional string
Finds Pets by status
curl https://petstore3.swagger.io/api/v3/pet/findByStatus \
    -H "api_key: $PETSTORE_API_KEY"
[
  {
    "name": "doggie",
    "photoUrls": [
      "string"
    ],
    "id": 10,
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "status": "available",
    "tags": [
      {
        "id": 0,
        "name": "name"
      }
    ]
  }
]
Returns Examples
[
  {
    "name": "doggie",
    "photoUrls": [
      "string"
    ],
    "id": 10,
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "status": "available",
    "tags": [
      {
        "id": 0,
        "name": "name"
      }
    ]
  }
]