Skip to content

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

Rendered with APIGit's docs viewer

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 $ref to 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 toolWith APIGit
One spec, rendered in your browserA versioned docs site published from any commit: OpenAPI, AsyncAPI, GraphQL and Markdown guides together
A link that renders a public URLPublic, members-only or shared-link access for each published document
No Try itTry It Out on every plan, when the published version enables it
tools.apigit.com addressesYour own domain for the docs site
A page for peoplellms.txt, Markdown pages and an MCP server for each published version, for AI agents

Questions and answers

Is the spec uploaded to render it?
No. Your browser reads the file, bundles it in a Web Worker and hands the finished document to the viewer, which runs in a sandboxed frame on your machine. Nothing is sent to APIGit.
How do I share a rendered spec?
Load the spec from a public URL, then click Share. The link opens a page on tools.apigit.com that fetches the spec from that address in the reader's browser. A pasted spec has no address, so it has no link: download it instead.
Which versions of OpenAPI does it show?
OpenAPI 3.0 and 3.1, in YAML or JSON. Multi-file specs render when they are loaded from a URL, because relative $refs on the same host are then fetched; a pasted spec shows its other files as references not followed.
Can I send requests to the API from the viewer?
No. Try it is off in this tool. A version published on APIGit can enable Try It Out, on every plan.
Is this the viewer of a published APIGit docs site?
It is rendered with APIGit's docs viewer, the Redoc 3 renderer that the repository, the editor's Preview tab and published documents use. A published site adds your navigation, Markdown guides, theme and domain.
Why is a shared link on tools.apigit.com and not apigit.com?
A shared link shows content someone else wrote. It is kept on its own host, rendered in a sandboxed frame with no access to any apigit.com cookie, marked noindex, and every page of it says that APIGit has not checked the content.