TypeSpec website screenshot

TypeSpec

TypeSpec is an API description language developed by Microsoft for defining API shapes that compile to OpenAPI, JSON Schema, Protobuf, and other output formats. It provides a language and toolchain for describing REST APIs, gRPC services, and data schemas in a type-safe, composable way with built-in support for versioning, metadata, and extensibility via decorators and libraries.

TypeSpec publishes 6 APIs on the APIs.io network. Tagged areas include API Design, Code Generation, OpenAPI, Protocol Buffers, and Specification Language.

The TypeSpec catalog on APIs.io includes 1 JSON-LD context and 1 Spectral governance ruleset.

TypeSpec’s developer surface includes documentation, engineering blog, release notes, and 10 more developer resources.

40.0/100 thin ▼ -5.2 Agent 14/100 agent aware Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFreemium
6 APIs 1 MCP Servers
API DesignCode GenerationOpenAPIProtocol BuffersSpecification Language

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 40.0/100 · thin
Contract Quality 4.4 / 25
Developer Ergonomics 6.1 / 20
Commercial Clarity 7.9 / 20
Operational Transparency 6.8 / 13
Governance 8.3 / 12
Discoverability 6.5 / 10
Agent readiness — 14/100 · agent aware
Machine-Readable Contract 0 / 18
Agentic Access Contract 0 / 10
MCP Server 12 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/typespec: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 6

Individual APIs this provider publishes, each with its own machine-readable definition.

TypeSpec Compiler

The TypeSpec compiler processes `.tsp` TypeSpec files and emits output for configured emitters (OpenAPI, JSON Schema, Protobuf, etc.). It provides a programmatic Node.js/TypeScr...

TypeSpec OpenAPI Emitter

The TypeSpec OpenAPI emitter converts TypeSpec definitions to OpenAPI 3.0 specifications. It supports HTTP operations, request/response bodies, security schemes, and API version...

TypeSpec JSON Schema Emitter

Emits JSON Schema documents from TypeSpec model definitions, enabling data validation and type documentation workflows.

TypeSpec Protobuf Emitter

Emits Protocol Buffer `.proto` files from TypeSpec service definitions, enabling gRPC service generation from a single TypeSpec source.

TypeSpec HTTP Library

The TypeSpec HTTP library provides decorators and types for describing HTTP REST APIs including routes, operations, request bodies, query parameters, headers, and response codes.

TypeSpec REST Library

The TypeSpec REST library provides decorators for REST API patterns including resource operations (CRUD), collection operations, and standardized error response shapes.

MCP Servers 1

Model Context Protocol servers that expose these APIs to AI agents.

MCP Server

MCP SERVER

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Typespec Rate Limits

5 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Typespec Context

15 classes · 11 properties

JSON-LD

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs.

TypeSpec API Rules

5 rules · 3 warnings 2 info

SPECTRAL

JSON Schema 1

Standalone JSON Schema definitions for this provider's data models.

TypeSpec Program

3 properties

JSON SCHEMA

JSON Structure 1

JSON Structure definitions describing this provider's data shapes.

Typespec Model Structure

8 properties

JSON STRUCTURE

Security Posture 1

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Typespec Domain Security

TLSv1.3 · HSTS · DMARC

SECURITY

Resources

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Design & Contract 2

Pagination, idempotency, versioning, errors, and events

Build 2

SDKs, sample code, and the tooling you integrate with

Access & Security 1

Authentication, authorization, and security posture

Operate 2

Status, limits, changes, and where to get help

Company 2

The organization behind the API

Other 1

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: typespec
name: TypeSpec
description: TypeSpec is an API description language developed by Microsoft for defining API shapes that compile to OpenAPI,
  JSON Schema, Protobuf, and other output formats. It provides a language and toolchain for describing REST APIs, gRPC services,
  and data schemas in a type-safe, composable way with built-in support for versioning, metadata, and extensibility via decorators
  and libraries.
type: Index
accessModel:
  pricing: freemium
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Freemium
  confidence: medium
  source:
  - plans
  generated: '2026-07-22'
  method: derived
image: https://typespec.io/img/favicon.svg
tags:
- API Design
- Code Generation
- OpenAPI
- Protocol Buffers
- Specification Language
url: https://raw.githubusercontent.com/api-evangelist/typespec/refs/heads/main/apis.yml
created: '2026-03-25'
modified: '2026-05-19'
specificationVersion: '0.19'
apis:
- aid: typespec:typespec-compiler
  name: TypeSpec Compiler
  description: The TypeSpec compiler processes `.tsp` TypeSpec files and emits output for configured emitters (OpenAPI, JSON
    Schema, Protobuf, etc.). It provides a programmatic Node.js/TypeScript API for building TypeSpec tooling, custom emitters,
    and compilers.
  humanURL: https://typespec.io/docs
  tags:
  - API Design
  - Code Generation
  - Compiler
  - Specification Language
  properties:
  - type: Documentation
    url: https://typespec.io/docs
  - type: GitHubRepository
    url: https://github.com/microsoft/typespec
  - type: npm Package
    url: https://www.npmjs.com/package/@typespec/compiler
  - type: GettingStarted
    url: https://typespec.io/docs/getting-started/getting-started-rest
  - type: Language Reference
    url: https://typespec.io/docs/language-basics/overview
- aid: typespec:typespec-openapi-emitter
  name: TypeSpec OpenAPI Emitter
  description: The TypeSpec OpenAPI emitter converts TypeSpec definitions to OpenAPI 3.0 specifications. It supports HTTP
    operations, request/response bodies, security schemes, and API versioning decorators.
  humanURL: https://typespec.io/docs/emitters/openapi3/reference
  tags:
  - Code Generation
  - OpenAPI
  - REST API
  properties:
  - type: Documentation
    url: https://typespec.io/docs/emitters/openapi3/reference
  - type: npm Package
    url: https://www.npmjs.com/package/@typespec/openapi3
  - type: GitHubRepository
    url: https://github.com/microsoft/typespec/tree/main/packages/openapi3
- aid: typespec:typespec-json-schema-emitter
  name: TypeSpec JSON Schema Emitter
  description: Emits JSON Schema documents from TypeSpec model definitions, enabling data validation and type documentation
    workflows.
  humanURL: https://typespec.io/docs/emitters/json-schema/reference
  tags:
  - Code Generation
  - JSON Schema
  - Validation
  properties:
  - type: Documentation
    url: https://typespec.io/docs/emitters/json-schema/reference
  - type: npm Package
    url: https://www.npmjs.com/package/@typespec/json-schema
- aid: typespec:typespec-protobuf-emitter
  name: TypeSpec Protobuf Emitter
  description: Emits Protocol Buffer `.proto` files from TypeSpec service definitions, enabling gRPC service generation from
    a single TypeSpec source.
  humanURL: https://typespec.io/docs/emitters/protobuf/reference
  tags:
  - Code Generation
  - gRPC
  - Protocol Buffers
  properties:
  - type: Documentation
    url: https://typespec.io/docs/emitters/protobuf/reference
  - type: npm Package
    url: https://www.npmjs.com/package/@typespec/protobuf
- aid: typespec:typespec-http-library
  name: TypeSpec HTTP Library
  description: The TypeSpec HTTP library provides decorators and types for describing HTTP REST APIs including routes, operations,
    request bodies, query parameters, headers, and response codes.
  humanURL: https://typespec.io/docs/libraries/http/reference
  tags:
  - Decorators
  - HTTP
  - REST API
  properties:
  - type: Documentation
    url: https://typespec.io/docs/libraries/http/reference
  - type: npm Package
    url: https://www.npmjs.com/package/@typespec/http
- aid: typespec:typespec-rest-library
  name: TypeSpec REST Library
  description: The TypeSpec REST library provides decorators for REST API patterns including resource operations (CRUD), collection
    operations, and standardized error response shapes.
  humanURL: https://typespec.io/docs/libraries/rest/reference
  tags:
  - Decorators
  - Resource Pattern
  - REST API
  properties:
  - type: Documentation
    url: https://typespec.io/docs/libraries/rest/reference
  - type: npm Package
    url: https://www.npmjs.com/package/@typespec/rest
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com
common:
- type: DomainSecurity
  url: security/typespec-domain-security.yml
- type: Website
  url: https://typespec.io
- type: Documentation
  url: https://typespec.io/docs
- type: GitHubOrganization
  url: https://github.com/microsoft/typespec
- type: npm
  url: https://www.npmjs.com/package/@typespec/compiler
- type: Playground
  url: https://typespec.io/playground
- type: Blog
  url: https://typespec.io/blog
- type: Community
  url: https://github.com/microsoft/typespec/discussions
- type: ReleaseNotes
  url: https://github.com/microsoft/typespec/releases
- type: JSONLD
  url: json-ld/typespec-context.jsonld
- type: Vocabulary
  url: vocabulary/typespec-vocabulary.yml
- type: JSONSchema
  url: json-schema/typespec-program-schema.json
- name: MCP Server
  url: https://github.com/microsoft/typespec-mcp
  type: MCPServer