stac-fastapi-api
An implementation of STAC API based on the FastAPI framework.
What it is and what it does
stac-fastapi-api is a FastAPI-based framework for implementing the STAC API specification. STAC (Spatiotemporal Asset Catalog) is a standard for describing and discovering geospatial data assets. This package provides the core API layer that handles HTTP endpoints, request/response serialization, and STAC specification compliance, letting you focus on connecting your data sources and catalog logic rather than building the API framework from scratch.
The package depends on brotli-asgi for compression support and stac-fastapi-types for shared type definitions. It targets Python 3.11 through 3.14 and is actively maintained. You would typically use this as the foundation for a geospatial data discovery service, integrating it with your own backend storage and metadata management systems.
Use it for:
- Build a searchable catalog API for satellite imagery, aerial photography, or other geospatial datasets
- Expose existing geospatial data repositories through a standardized STAC-compliant interface
- Create a federated search endpoint that aggregates STAC catalogs from multiple sources
- Develop a cloud-native geospatial data platform with standardized discovery and access patterns
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a FastAPI-based implementation of the STAC API specification, enabling you to build and serve Spatiotemporal Asset Catalog endpoints.
Yes. The package is actively maintained, has no known vulnerabilities, minimal dependencies, and targets current Python versions. Install it if you need to build a STAC-compliant API; skip it if you're not working with geospatial asset catalogs or prefer a different framework.
Install
stac-fastapi-api on PyPI
pip
pip install stac-fastapi-apiuv
uv add stac-fastapi-apipoetry
poetry add stac-fastapi-apiInstalling stac-fastapi-api
Before you install
Low install friction with only 2 runtime dependencies. Actively maintained with a commit on 2026-08-13 and no known vulnerabilities.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice.
Quickstart
pip install stac-fastapi-api
from stac_fastapi.api.app import StacApi
api = StacApi()
Requires Python 3.11 or later
Verify before relying
- Whether this package includes backend storage implementations or requires separate data source configuration
- What STAC API version(s) this implementation targets
- Performance characteristics and scalability limits for large catalogs
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — brotli-asgi, stac-fastapi-types |
| Maintenance | actively maintained — 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 93,979/month — #13,351 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: stac_fastapi_api-6.5.0-py3-none-any.whl
Keywords: FastAPI, STAC, STAC-API
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
stac-fastapi-extensionsProvides FastAPI extensions for the STAC API…
permissive · top 15,000 on PyPI
stac-fastapi-typesProvides core type definitions and data models…
permissive · top 15,000 on PyPI
stac-fastapi-pgstacProvides a FastAPI-based HTTP interface to…
permissive · top 15,000 on PyPI
stac-pydanticProvides Pydantic models for validating and…
permissive · top 15,000 on PyPI
stactools-met-office-deterministicGenerates STAC (SpatioTemporal Asset Catalog)…
permissive · top 5,000 on PyPI
pypgstacpypgstac provides Python bindings and utilities…
permissive · top 15,000 on PyPI
pystac-corePySTAC Core provides the foundational API for…
permissive · top 5,000 on PyPI
pystacPySTAC is a Python library for reading,…
permissive · top 5,000 on PyPI
pystac-clientPySTAC Client is a Python library for querying…
permissive · top 15,000 on PyPI
dapr-ext-fastapiIntegrates Dapr distributed application runtime…
permissive · top 15,000 on PyPI