Axerity

Find pet by ID

Returns a single pet.

GET https://petstore3.swagger.io/api/v3/pet/{petId}

Headers

api_key string

Your store API key.

Path parameters

petId integer required

The id of the pet to return.

Returns

Returns the Pet.

id integer

Unique id for the pet.

name string

The pet’s name.

status enum

Pet status in the store.

The Pet object
{	"id": 10,	"name": "doggie",	"category": { "id": 1, "name": "Dogs" },	"photoUrls": ["https://example.com/photos/doggie.png"],	"tags": [{ "id": 1, "name": "friendly" }],	"status": "available"}
Request
curl https://petstore3.swagger.io/api/v3/pet/10 \  -H "api_key: special-key"
Response
{ "id": 10, "name": "doggie", "status": "available" }