OpenAPI viewer
Runs in your browser. Nothing is uploaded.
Paste or load an OpenAPI file and read it as API documentation, then share a link that renders any public spec.
Input
openapi: "3.1.0"
info:
title: Petstore
version: 1.0.0
description: A sample API that uses a pet store as an example.
license:
name: MIT
identifier: MIT
servers:
- url: https://petstore.example.com/v1
tags:
- name: pets
description: Everything about your pets
paths:
/pets:
get:
summary: List all pets
description: Returns the pets in the store, a page at a time.
operationId: listPets
tags:
- pets
parameters:
- name: limit
in: query
description: How many items to return at one time (max 100)
required: false
schema:
type: integer
format: int32
responses:
"200":
description: A page of pets
content:
application/json:
schema:
$ref: "#/components/schemas/Pets"
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
post:
summary: Create a pet
tags:
- store
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Pet"
responses:
"201":
description: The pet was created
/pets/{petId}:
get:
summary: Info for a specific pet
operationId: showPetById
tags:
- pets
responses:
"200":
description: The pet
content:
application/json:
schema:
$ref: "#/components/schemas/Pet"
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
components:
schemas:
Pet:
type: object
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
Pets:
type: array
items:
$ref: "#/components/schemas/Pet"
Error:
type: object
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string
Documentation
Paste, upload or load a file to start
How it works
Paste, upload or load an OpenAPI file. A Web Worker resolves its references and bundles it into one document; the page then posts that document to the viewer, which runs in a sandboxed frame without access to the page around it. The viewer shows the operations in a menu, their parameters, request bodies and responses, and the schemas, with a full-screen button for long specs.
The sample is a small pet store with three operations. For it the result line reads Rendered; for a pasted spec
that points to other files it reads, for example, Rendered; 1 reference not followed, with the reference listed
below the viewer.
Share appears for a spec loaded from a URL. The link is the address of the spec, wrapped in a tools.apigit.com page: whoever opens it has the spec fetched and rendered in their own browser.
What it does not do
- It has no Try it: it does not send requests to the API in the spec.
- It does not fetch anything for a pasted or uploaded spec. A
$refto another file is listed as not followed; load the spec from its URL, or bundle the files first. - A host that does not let browsers read its files (no CORS headers) cannot be loaded by URL: download the file and upload it here.
- It does not store your spec or the shared link's content. A shared link renders whatever the address serves when it is opened.
- It shows one spec, without the Markdown guides, navigation and theme of a docs site.
This tool and APIGit
| This tool | With APIGit |
|---|---|
| One spec, rendered in your browser | A versioned docs site published from any commit: OpenAPI, AsyncAPI, GraphQL and Markdown guides together |
| A link that renders a public URL | Public, members-only or shared-link access for each published document |
| No Try it | Try It Out on every plan, when the published version enables it |
| tools.apigit.com addresses | Your own domain for the docs site |
| A page for people | llms.txt, Markdown pages and an MCP server for each published version, for AI agents |