Skip to content

stats

platform-wide statistics endpoints.

get_platform_stats(db: Annotated[AsyncSession, Depends(get_db)]) -> PlatformStats

get platform-wide statistics.

get_costs() -> Response

proxy costs JSON from R2 to avoid CORS issues.

the costs.json file is generated daily by a GitHub Action and uploaded to R2. this endpoint proxies it so the frontend can fetch without CORS.

platform-wide statistics.