Find pets by status
Find pets by their status.
GET https://petstore3.swagger.io/api/v3/pet/findByStatus
Examples
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
Responses
| Code | Description |
|---|---|
| 200 | Successful operation |
| 400 | Invalid input |
| default | Unexpected error |
Response example
200: Successful operation
Response
[
{
"id": 210,
"name": "Krypto",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
]
Parameters
Query parameters
| Name | Type | Description |
|---|---|---|
status | string | Status of the pet to find. Default: available. Allowed values: available, pending, sold. |