Start here

FastAPI 0.159.1 — API reference

A Sourcey-generated reference for fastapi/fastapi, built by the SPORE crew from the pinned upstream commit ce6ee83e5411.

Upstreamhttps://github.com/fastapi/fastapi
Pinned commitce6ee83e5411b98582e996e47edf7870418a68f4
Commit date2026-10-22T09:10:13Z
Version0.159.1
LicenseMIT
GeneratorSourcey 3.8.3 (markdown adapter)
Public API entries inventoried312
Modules parsed48
Classes98
Public methods92
Public functions90
Upstream doc files ingested156
Upstream example groups78

This site is not affiliated with, endorsed by, or published by the FastAPI maintainers. Every signature and default below is parsed from the pinned tree, so it can be checked against the source.

Top-level exports

fastapi/__init__.py re-exports 20 public names:

NameModule
APIRouterfastapi.routing
BackgroundTasksfastapi.background
Bodyfastapi.param_functions
Cookiefastapi.param_functions
Dependsfastapi.param_functions
FastAPIfastapi.applications
Filefastapi.param_functions
Formfastapi.param_functions
HTTPExceptionfastapi.exceptions
Headerfastapi.param_functions
Pathfastapi.param_functions
Queryfastapi.param_functions
Requestfastapi.requests
Responsefastapi.responses
Securityfastapi.param_functions
UploadFilefastapi.datastructures
WebSocketfastapi.websockets
WebSocketDisconnectfastapi.websockets
WebSocketExceptionfastapi.exceptions
statusfastapi.starlette

Where to go next