Logo
1 API Documentation

Find pet by ID

GET {{baseUrl}}/pet/:petId

Returns a single pet

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Accept
string




RESPONSES

status OK

{ "name": "doggie", "photoUrls": [ "ut labore magna", "eu id" ], "id": -4385859, "category": { "id": 61063953, "name": "laborum do ex dolore nostrud" }, "tags": [ { "id": -60938800, "name": "velit laboris eu dolore sed" }, { "id": -32737680, "name": "officia" } ], "status": "sold" }



Curl
curl -X GET 'https://petstore.swagger.io/v2/pet/:petId' -H 'Accept: application/json'

ENDPOINTS