Finds Pets by tags.
GET
/pet/findByTags
curl -X GET 'https://petstore3.swagger.io/api/v3/pet/findByTags?tags=%5B%22string%22%5D'package main
import ( "context" "net/http")
func main() { ctx := context.Background() req, err := http.NewRequestWithContext(ctx, "GET", "https://petstore3.swagger.io/api/v3/pet/findByTags?tags=%5B%22string%22%5D", nil) if err != nil { panic(err) } resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close()}import requests
response = requests.request("GET", "https://petstore3.swagger.io/api/v3/pet/findByTags?tags=%5B%22string%22%5D")print(response.json())const response = await fetch('https://petstore3.swagger.io/api/v3/pet/findByTags?tags=%5B%22string%22%5D', { method: 'GET' });const data = await response.json();Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” tags
required
Array<string>
Tags to filter by
Responses
Section titled “ Responses ”Successful operation
Array<object>
object
category
object
id
integer format: int64
name
string
id
integer format: int64
name
required
string
photoUrls
required
Array<string>
status
Pet status in the store
string
tags
Array<object>
object
id
integer format: int64
name
string
Example
[ { "category": { "id": 1, "name": "Dogs" }, "id": 10, "name": "doggie", "status": "available" }]Array<object>
object
category
object
id
integer format: int64
Example
1 name
string
Example
Dogs id
integer format: int64
Example
10 name
required
string
Example
doggie photoUrls
required
Array<string>
status
Pet status in the store
string
tags
Array<object>
object
id
integer format: int64
name
string
Invalid tag value
default
Section titled “default ”Unexpected error