Find pet by ID

Returns a single pet

SecurityAPI Key: api_key
Request
path Parameters
petId
required
integer <int64>
Deprecated

ID of pet to return

get
/pet/{petId}
Responses

200

successful operation

Response Schema:
id
integer <int64>

Pet ID

object

Categories this pet belongs to

name
required
string

The name given to a pet

photoUrls
required
Array of strings <url> <= 20 items

The list of URL to a cute photos featuring pet

friend
object Recursive
Array of objects (Tag) non-empty

Tags attached to the pet

status
string

Pet status in the store

Enum: "available" "pending" "sold"
petType
string

Type of a pet

huntingSkill
required
string
Default: "lazy"

The measured skill for hunting

Enum: "clueless" "lazy" "adventurous" "aggressive"

400

Invalid ID supplied

404

Pet not found

Response samples
{ "id": 0, "category": { "id": 0, "name": "string", }, "name": "Guru", "photoUrls": [ "string" ], "friend": { }, "tags": [ ], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }