Skip to content

List all pets

GET
/pets
curl --request GET \
--url http://petstore.swagger.io/v1/pets
limit
integer format: int32
<= 100

How many items to return at one time (max 100)

filters

A list of filters

object
name
string
tag
string

A paged array of pets

Media typeapplication/json
Array<object>
<= 100 items
object
id
required
integer format: int64
name
required
string
tag
string
Examplegenerated
[
{
"id": 1,
"name": "example",
"tag": "example"
}
]
x-next
string

A link to the next page of responses

Unexpected error

Media typeapplication/json
object
code
required
integer format: int32
message
required
string
Examplegenerated
{
"code": 1,
"message": "example"
}