Visualize and interact with an API's resources from its OpenAPI definition
open coreApache-2.0self-hostablefree
Swagger UI generates interactive API documentation from an OpenAPI (formerly Swagger) definition, so a development team or an API's consumers can see every resource and try each operation from the browser without any implementation in place. It supports Swagger 2.0 and OpenAPI 3.x, groups endpoints into categorized, searchable docs, works in all major browsers and can be styled and customized with full source access. It ships as three npm packages (a module for single-page apps, a dependency-free bundle for serving from a backend, and a React component) and as a Docker image. SmartBear maintains it under the Apache License 2.0 and also sells Swagger Studio, which hosts the same interactive UI in the cloud.
Problems it solves
- give API consumers a page where they can read the docs and try every endpoint
- turn our OpenAPI file into interactive documentation without writing it by hand
- serve API docs from our backend with no frontend build step
- embed interactive API reference docs in our React app
- our API docs keep drifting from the real endpoints
Features
- interactive docs generated from Swagger 2.0 or OpenAPI 3.x
- try out every operation from the browser
- categorized, searchable endpoints
- fully customizable styling
- npm packages for SPAs, servers and React
- Docker image
Ways to run it
Swagger UI
free1
You arrange
- hosting the docs page
Swagger Studio
Price not published1
Only in this edition
- fully hosted interactive UI
- access control for internal or external consumers
Capabilities
| Takes plugins | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Swagger UI does.
- Redoc Generate beautiful API documentation from OpenAPI, AsyncAPI and GraphQL
- Scalar Open source API references and API client for OpenAPI, plus a hosted docs platform
- ReadMe Build docs that developers love and AI can actually read
- GitBook GitBook keeps docs accurate, for both people and AI
- Stoplight Design, document, and build APIs faster
- Mintlify The documentation platform for agents
