Find pets by tags
Find pets by their tags.
GET https://petstore3.swagger.io/api/v3/pet/findByTags
Examples
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/pet/findByTags?tags=string" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/pet/findByTags?tags=string" \
-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 |
|---|---|---|
tags | array | Tags to filter by. Default: []. Allowed values: any valid tag names. |