API contract monitor
Demo

Does the Swagger Petstore API match its OpenAPI spec?

YesAll 7 operations we tested return responses that match Swagger Petstore's published OpenAPI spec (last run 1 Nov 2026).

petstore.contract[*]
Spec match
100%
7 of 7 operations
Mismatches
0
distinct findings
First response
0.18s
median of tested calls
Last run
1 Nov
05:35 UTC

Contract vs. published spec

Every tested operation returned a 2xx response whose body matches the spec.

1 operation excluded: its demo record did not exist.

Vendor-reported status · 45 days

Swagger Petstore doesn't publish a machine-readable status feed.

Test the Swagger Petstore API yourself

Portman turns the published spec into contract tests and runs them with Newman.

Star Portman685Portman is open source. A star helps other teams find it.

Questions

Does the Swagger Petstore API match its OpenAPI spec?
Yes. All 7 operations we tested return responses that match Swagger Petstore's published OpenAPI spec (last run 1 Nov 2026).
Where is the Swagger Petstore OpenAPI spec?
Swagger Petstore publishes its OpenAPI description at https://petstore3.swagger.io/api/v3/openapi.json.
Is the Swagger Petstore API down?
Swagger Petstore does not publish a machine-readable status feed. Our last contract run got responses on 1 Nov 2026.
How can I contract-test the Swagger Petstore API myself?
Run Portman against the spec: npx @apideck/portman -u https://petstore3.swagger.io/api/v3/openapi.json --runNewman. Portman generates contract tests for every operation and checks status codes, content types and response schemas.

Other monitored APIs