Swagger Petstore or a practice API with real behaviour?

The Swagger Petstore is the sample server behind countless OpenAPI tutorials. The hosted OpenAPI 3 version exposes pet, store and user resources, declares an api_key header and an OAuth 2.0 implicit flow, and ships with Swagger UI. Its source is public and it runs locally from a Docker image.

At a glance

Swagger Petstore compared with this playground, checked 2026-10-30.
 Swagger PetstoreFun API Playground
Main purposeReference sample for OpenAPI and Swagger UIPractising API testing against defined behaviour
SpecThe OpenAPI 3 document is the productOpenAPI 3.1 per API and merged, generated from the catalog
Hosted dataOne public instance shared by all usersIsolated sandbox per X-Sandbox-ID
Auth in practiceapi_key header and OAuth 2.0 implicit flow declared in the specBearer roles with 401/403, signed JWTs, OAuth 2.0 flows
Self-hostingOfficial Docker imageNot packaged for self-hosting
Guided exercisesNot offeredChallenges checked against your responses

Where it stops

It exists to demonstrate a specification, so its value is the document and the UI around it. The hosted instance is one public server shared by everyone, which makes repeatable assertions on its data unreliable, and scenario behaviour such as conflicts, version checks or rate limits is not its purpose.

What is different here

Every Fun API also has an OpenAPI 3.1 document, but the emphasis is on behaviour: writes persist inside your own sandbox, stale ETags are refused with 412, double submissions are caught by Idempotency-Key, limits answer 429 with Retry-After, and webhook deliveries carry a signature you can verify. Guided challenges tell you when a request produced the response an exercise asks for.

What Swagger Petstore does better

What this playground does better

Which to use

Use Petstore to learn OpenAPI, code generation and Swagger UI. Use Fun API when the goal is a test suite that asserts behaviour and failure handling on data nobody else can change.

Checked against Swagger Petstore as of 2026-10-30.

Official sources and scope

This compares a training playground with the documented use case of the other tool. Plans, limits and hosted features can change. For current terms, use the official sources below.

Current Fun API behavior and limits · Run a practice example

Other comparisons

All 55 mock REST APIs · Getting started guide · About this playground

Last updated