# Spectral

**Canonical:** https://apis.io/apis/linting/spectral/  
**Provider:** API Linting — https://apis.io/providers/linting/  
**Base URL:** https://github.com/stoplightio/spectral  
**Documentation:** https://stoplight.io/open-source/spectral

Spectral is one of 10 APIs that [API Linting](https://apis.io/providers/linting/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include API Linting, API Style Guide, AsyncAPI, JSONPath, and OpenAPI. The published artifact set on APIs.io includes API documentation, a getting-started guide, a GitHub repository, and a changelog.

Stoplight's flexible JSON/YAML linter for creating automated style guides, with baked-in support for OpenAPI v3.1, v3.0, v2.0, Arazzo v1.0, and AsyncAPI v2.x. Spectral is the de facto reference linter for API style guides — every other tool in this index either extends its rule grammar or competes with it directly.

## Machine-readable artifacts (12)

- **Documentation** — https://docs.stoplight.io/docs/spectral
- **GettingStarted** — https://docs.stoplight.io/docs/spectral/674b27b261c3c-overview
- **GitHubRepository** — https://github.com/stoplightio/spectral
- **NPMPackage** — https://www.npmjs.com/package/@stoplight/spectral-cli
- **VSCodeExtension** — https://marketplace.visualstudio.com/items?itemName=stoplight.spectral
- **ChangeLog** — https://github.com/stoplightio/spectral/blob/main/CHANGELOG.md
- **License** — https://github.com/stoplightio/spectral/blob/main/LICENSE
- **RulesetReference** — https://docs.stoplight.io/docs/spectral/e5b9616d6d50c-rulesets
- **BuiltInFunctions** — https://docs.stoplight.io/docs/spectral/cb95cf0d26b83-core-functions
- **APIEvangelistRepository** — https://github.com/api-evangelist/spectral
- **GraphQL** — https://raw.githubusercontent.com/api-evangelist/linting/refs/heads/main/graphql/linting-graphql.md
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/linting/refs/heads/main/apis.yml

## Other API Linting APIs (9)

- [Vacuum](https://apis.io/apis/linting/vacuum/)
- [Redocly CLI](https://apis.io/apis/linting/redocly-cli/)
- [Optic](https://apis.io/apis/linting/optic/)
- [Apicurio Registry](https://apis.io/apis/linting/apicurio-registry/)
- [Sweater Comb](https://apis.io/apis/linting/sweater-comb/)
- [Speakeasy Linter](https://apis.io/apis/linting/speakeasy/)
- [Postman API Governance](https://apis.io/apis/linting/postman-api-governance/)
- [Stoplight Studio](https://apis.io/apis/linting/stoplight-studio/)
- [APIMetrics](https://apis.io/apis/linting/apimetrics/)

## Tags

API Linting, API Style Guide, AsyncAPI, JSONPath, OpenAPI, Stoplight

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/linting/spectral/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/linting/.
