Spectral

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.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spectral"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

API entry from apis.yml

apis.yml Raw ↑
aid: linting:spectral
name: Spectral
description: 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.
humanURL: https://stoplight.io/open-source/spectral
baseURL: https://github.com/stoplightio/spectral
tags:
- API Linting
- API Style Guide
- AsyncAPI
- JSONPath
- OpenAPI
- Stoplight
properties:
- type: Documentation
  url: https://docs.stoplight.io/docs/spectral
- type: GettingStarted
  url: https://docs.stoplight.io/docs/spectral/674b27b261c3c-overview
- type: GitHubRepository
  url: https://github.com/stoplightio/spectral
- type: NPMPackage
  url: https://www.npmjs.com/package/@stoplight/spectral-cli
- type: VSCodeExtension
  url: https://marketplace.visualstudio.com/items?itemName=stoplight.spectral
- type: ChangeLog
  url: https://github.com/stoplightio/spectral/blob/main/CHANGELOG.md
- type: License
  url: https://github.com/stoplightio/spectral/blob/main/LICENSE
  x-license: Apache-2.0
- type: RulesetReference
  url: https://docs.stoplight.io/docs/spectral/e5b9616d6d50c-rulesets
- type: BuiltInFunctions
  url: https://docs.stoplight.io/docs/spectral/cb95cf0d26b83-core-functions
- type: APIEvangelistRepository
  url: https://github.com/api-evangelist/spectral
- url: graphql/linting-graphql.md
  type: GraphQL
x-rules-format: spectral-yaml
x-rules-engine: javascript
x-integration-points:
- cli
- ci
- vscode
- sdk-node
x-supported-formats:
- openapi-2.0
- openapi-3.0
- openapi-3.1
- asyncapi-2.x
- arazzo-1.0
- generic-json-yaml