Skip to content

Find pet by ID.

GET
/pet/{petId}
curl -X GET '/api/v3/pet/0'

Returns a single pet.

petId
required
integer format: int64

ID of pet to return

Successful operation

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
Allowed values: available pending sold
tags
Array<object>
object
id
integer format: int64
name
string
Example
{
"category": {
"id": 1,
"name": "Dogs"
},
"id": 10,
"name": "doggie",
"status": "available"
}

Invalid ID supplied

Pet not found

Unexpected error

Try it

Send a real request to this endpoint. Credentials stay in your browser; the call is routed through the portal's hardened proxy.

Suggest an edit to this page