OpenAPI Specification
Vendor-neutral, language-agnostic format (YAML/JSON) for describing HTTP APIs; formerly Swagger.
The OpenAPI Specification describes endpoints, parameters, request/response schemas and security of HTTP APIs in a machine-readable document. Tooling uses it to generate docs, client SDKs, server stubs, mocks and tests. It is governed by the OpenAPI Initiative under the Linux Foundation; versions 3.1 and later align schemas with JSON Schema.
- Type
- Standard
- Category
- APIs
- Maintainer
- OpenAPI Initiative (Linux Foundation)
- First released
- 2011
- License
- Open source (Apache-2.0)
- Pricing
- Free
- Level
- Intermediate
- Technologies
- openapi, api, rest, json, yaml
- GitHub stars
- 31,351
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What OpenAPI Specification is used for
- API documentation
- SDK generation
- Contract testing
- API design reviews
Strengths
- Industry standard for REST APIs
- Huge tooling ecosystem
- Aligned with JSON Schema
Limitations
- Large specs become unwieldy
- Describes HTTP APIs only (see AsyncAPI for events)
OpenAPI Specification alternatives
How it relates to other tools
- OpenAPI Specification works with Swagger (UI, Editor, Codegen)
- OpenAPI Specification works with Postman
- OpenAPI Specification works with JSON Schema
- OpenAPI Specification works with APIs.guru OpenAPI Directory
- Built on OpenAPI Specification: GitHub REST & GraphQL APIs
- Works with OpenAPI Specification: Insomnia