# fastapi/fastapi

FastAPI framework, high performance, easy to learn, fast to code, ready for production

Repository: https://github.com/fastapi/fastapi
Canonical: https://ross.abutalabs.com/products/fastapi
Homepage: https://fastapi.tiangolo.com/
Language: Python
License: MIT
License Family: permissive
Topics: python, json, swagger-ui, redoc, starlette, openapi, api, openapi3, framework, async, asyncio, uvicorn, python3, python-types, pydantic, json-schema, fastapi, swagger, rest, web
Last push: 2026-08-26T17:54:56+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 83, longevity 100
- inputs: {"age_days": 2825, "days_push": 7, "days_rel": 35, "gap_med": 1, "n_releases_24m": 116}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 101864, forks 9818 (observed 2026-08-28T04:12:23.692772+00:00)

## What it is
FastAPI is a modern, high-performance Python web framework for building APIs, based on standard Python type hints and built on Starlette and Pydantic. It automatically generates OpenAPI (Swagger) documentation and interactive docs UIs, with strong editor support and async support.

## Use cases
- build a REST API in python
- create a web backend with automatic swagger docs
- serve an ML model as an HTTP API
- build an async python web service
- generate openapi 3 spec from python code
- build a CRUD API with pydantic validation
- prototype a  api quickly

## When to choose
- you want a fast, type-hint-driven Python API framework with automatic OpenAPI docs
- you need async support and performance comparable to NodeJS or Go
- you want editor autocompletion and fewer runtime errors via pydantic validation
- you are serving machine-learning models or microservices in Python

## When to avoid
- you need server-side rendered HTML websites rather than APIs (consider Django or Flask)
- your team is not using Python
- you require a fully 1.0-stable API contract without any breaking changes between minor versions
- you need a batteries-included framework with built-in ORM and admin (Django)

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, api-framework, http-server, routing, serialization, form-handling, api-documentation, middleware, auth
- domain: web-development, backend, apis, developer-tools
- platform: python, cross-platform
- tags: openapi, swagger, pydantic, async, rest, type-hints, starlette, uvicorn, -schema, web-server

## Member repositories
- fastapi/fastapi (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:23.692772+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:12:28.885797+00:00, confidence not recorded.
  - readme: https://github.com/fastapi/fastapi (fetched 2026-08-28T04:12:23.692772+00:00, sha d429b43965d2)
  - homepage: https://fastapi.tiangolo.com/ (fetched 2026-08-28T17:33:31.908851+00:00, sha c61fd150bf53)
  - site_page: https://fastapi.tiangolo.com/features/ (fetched 2026-08-28T17:33:31.917361+00:00, sha c869fed0ca42)
  - site_page: https://fastapi.tiangolo.com/about/ (fetched 2026-08-28T17:33:31.919710+00:00, sha be8e5cde0f07)
  - site_page: https://fastapi.tiangolo.com/how-to/custom-docs-ui-assets/ (fetched 2026-08-28T17:33:31.926701+00:00, sha 8e8edccc7ee2)
  - site_page: https://fastapi.tiangolo.com/reference/openapi/docs/ (fetched 2026-08-28T17:33:31.928411+00:00, sha 71197ca6ec17)
  - site_page: https://fastapi.tiangolo.com/tutorial/metadata/ (fetched 2026-08-28T17:33:31.921328+00:00, sha 806408087785)
  - site_page: https://fastapi.tiangolo.com/deployment/versions/ (fetched 2026-08-28T17:33:31.923030+00:00, sha f19cf6562286)
  - site_page: https://fastapi.tiangolo.com/deployment/https/ (fetched 2026-08-28T17:33:31.924800+00:00, sha a1f56187f823)
  - site_page: https://fastapi.tiangolo.com/tutorial/ (fetched 2026-08-28T17:33:31.930202+00:00, sha 7ab068556856)
- Data as of 2026-08-30T08:39:29.467469+00:00.
