Skip to main content

Find pet by ID

Find a pet by its unique ID.

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

Examples

cURL
GET "https://petstore3.swagger.io/api/v3/pet/210" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"

Responses

CodeDescription
200Successful operation
400Invalid ID supplied
404Pet not found
defaultUnexpected error
Response example

200: Successful operation

Response
{
"id": 210,
"name": "Krypto",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}

Parameters

Path parameters
NameTypeDescription
petIdintegerID of pet to return