Skip to main content
GET
/
pet
/
{petId}
Find pet by ID.
curl --request GET \
  --url https://petstore3.swagger.io/api/v3/pet/{petId} \
  --header 'api_key: <api-key>'
{
  "name": "doggie",
  "photoUrls": [
    "<string>"
  ],
  "id": 10,
  "category": {
    "id": 1,
    "name": "Dogs"
  },
  "tags": [
    {
      "id": 123,
      "name": "<string>"
    }
  ],
  "status": "available"
}

Authorizations

api_key
string
header
required

Path Parameters

petId
integer<int64>
required

ID of pet to return

Response

successful operation

name
string
required
Example:

"doggie"

photoUrls
string[]
required
id
integer<int64>
Example:

10

category
object
tags
object[]
status
enum<string>

pet status in the store

Available options:
available,
pending,
sold