logo
On this page

Finds Pets by tags

GET

https://petstore.swagger.io/v2/pet/findByTags

deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

Request

Query Parameters

    tags string[]required

    Tags to filter by

Responses

successful operation
Schema
  • Array[
  • id object
    category Category
    id int64

    Category ID

    name string

    Possible values: non-empty

    Category name

    sub object
    Test Sub Category
    prop1 string

    Dumb Property

    name stringrequired

    The name given to a pet

    photoUrls url[]required

    Possible values: <= 20

    The list of URL to a cute photos featuring pet

    friend circular(Pet)
    tags Tag[]required
    Possible values: >= 1
    Tags attached to the pet
  • Array[
  • id object
    name string

    Possible values: non-empty

    Tag name

  • ]
  • status string

    Possible values: [available, pending, sold]

    Pet status in the store

    petType string
    Possible values: [cat, dog, bee]
    Type of a pet
    huntingSkill stringrequired

    Possible values: [clueless, lazy, adventurous, aggressive]

    Default value: lazy

    The measured skill for hunting

  • ]

Authorization: oauth2

name: petstore_authtype: oauth2scopes: write:pets,read:petsdescription: Get access to data while protecting your account credentials.
OAuth2 is also a safer and more secure way to give you access.
flows: {
  "implicit": {
    "authorizationUrl": "http://petstore.swagger.io/api/oauth/dialog",
    "scopes": {
      "write:pets": "modify pets in your account",
      "read:pets": "read your pets"
    }
  }
}

1
Copied!
Request
Collapse all
Base URL
https://petstore.swagger.io/v2
Default server
Auth
Bearer Token
Parameters
queryrequired
RESPONSEClear

Click the "Send" button above and see the response here!

On this page

Back to top