---
title: "Finds Pets by status."
method: GET
path: "/pet/findByStatus"
tags: ["pet"]
---

# Finds Pets by status.

`GET /pet/findByStatus`

Multiple status values can be provided with comma separated strings.

## Query parameters

- `status` 'available' | 'pending' | 'sold', required

## Response `200`

successful operation

- Pet[]
  - `id` integer
  - `name` string, required
  - `category` Category
    - `id` integer
    - `name` string
  - `photoUrls` string[], required
  - `tags` Tag[]
    - `id` integer
    - `name` string
  - `status` 'available' | 'pending' | 'sold' — pet status in the store

## Other responses

- `400` — Invalid status value
- `default` — Unexpected error

## Changes

- **2025-08-01** `ce2fca7e5726` — 1 breaking
  - the `query` request parameter `status` became required
- **2025-03-12** `253de9e0f0ae` — 2 breaking, 2 info
  - the response's body type/format changed from `array`/`` to `object`/`` for status `default`
  - removed the media type `application/xml` for the response with the status `default`
  - added the required property `code` to the response with the `default` status
  - added the required property `message` to the response with the `default` status

[Change history](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0/changes/pet/findByStatus/get.md)

---

[API](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0.md) · [All operations](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swagger/swagger-petstore-openapi-3-0/revisions/e1a2480ffa44/schema)
