cURL
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" }
Returns a single pet.
ID of pet to return
successful operation
"doggie"
10
Show child attributes
1
"Dogs"
pet status in the store
available
pending
sold
Was this page helpful?