Hacker ApprovedDepartments

FastAPI

Hacker Approved

Ranked 8 of 63 web frameworks by recommenders

Developers recommend it as an easy, flexible Python framework for web APIs, with automatic OpenAPI docs and type validation via Pydantic. Critics point to async complexity.

Developers recommend it as an easy, flexible Python framework for web APIs, with automatic OpenAPI docs and type validation via Pydantic. Critics point to async complexity.

71 people gave an opinion

recommend it
49
criticize it
22
approval share
69%
Each figure is one person. RecommendsCriticizes

Recommended in 12 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 49 people recommend itNeeds 10 or more, met.
  • 2.2 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 12 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Automatic OpenAPI and JSON schema validation

    “their OpenAPI generation isn't always perfect if you have very polymorphic endpoints but it is really good compared to other tools”

    Comment from 18 May 2026 in “Anthropic Acquires Stainless”

    “I'm beginning to come round to the benefits of OpenAPI now which seems like a big note in FastAPI's favor”

    Comment from 24 Mar 2026 in “Experimenting with Starlette 1.0 with Claude skills”

    “auto enforcing json schemas on endpoints is huge”

    Comment from 3 Nov 2025 in “Why we migrated from Python to Node.js”
  • Pydantic-based typing that works well

    “the hard work that the original designers of libraries like FastAPI, Zod, Pydantic, have invested in”

    Comment from 19 Mar 2026 in “FastAPI-compatible Python framework with Zig HTTP core; 7x faster”

    “Pydantic + FastAPI are my two favorite python shops right now”

    Comment from 6 Feb 2026 in “Monty - A minimal, secure Python interpreter written in Rust”

    “The agent uses Pydantic for validating FastAPI schemas”

    Comment from 15 May 2026 in “If AI Writes Your Code, Why Use Python?”
  • Easy and flexible to build with

    “FastAPI is the best combination of an easy and a flexible Python library for web servers, from my experience.”

    Comment from 26 Nov 2025 in “Slashdot effect”

    “I chose FastAPI and Pydantic specifically to give that same "get out of my way" developer experience”

    Comment from 14 Jan 2026 in “Show HN: SnackBase – Open-source, GxP-compliant back end for Python teams”

    “making those rapid iterations that tools like fastapi allow can be pretty important”

    Comment from 26 Nov 2025 in “Reinventing how .NET builds and ships (again)”
  • Known, stable library with thriving ecosystem

    “fastapi was picked simply because it was already known by the team and had a very thriving ecosystem”

    Comment from 7 Sep 2026 in “Keep Our Servers Running”

    “Backend API Python with FastAPI, well known and stable library”

    Comment from 13 Apr 2026 in “HumansMap, an interactive graph visualization of 3M+ Wikidata entities”

    “Python with FastAPI, well known and stable library”

    Comment from 19 Apr 2026 in “Show HN: HumansMap Interactive Graph of 1M+ Wikidata Entities with Investigate”

What people warn about

Each mark is one comment

  • Async adds complexity and easy mistakes

    “FastAPI is operating more at that level but also adds the often unnecessary complexity of async.”

    Comment from 8 Jun 2026 in “The company I work for is losing all of its humanity, I don't know where to go”

    “it’s so easy to screw up async FastAPI and bring things to a halt.”

    Comment from 3 Nov 2025 in “Why we migrated from Python to Node.js”
  • Slow under load, CPU work blocks

    “René actually had to implement a batching worker API to work around a limitation in Python's FastAPI, which handled requests per process”

    Comment from 11 Nov 2025 in “Building a high-performance ticketing system with TigerBeetle”

    “in any meaningful benchmark it's one of the slowest commercially used pieces of web software the industry has adopted”

    Comment from 26 Nov 2025 in “Slashdot effect”

    “The performance gains are lost, by double when you attempt to build real real software with it.”

    Comment from 6 Dec 2025 in “Django 6”
  • Bare-bones, many features built yourself

    “things hang together much more loosely and it means the integration just isn't as complete”

    Comment from 4 Dec 2025 in “Django 6”

    “finding a lot of that is build-it-yourself (and easily break it) is a bit of a shock.”

    Comment from 28 Jan 2026 in “Notes on Starting to Use Django”

    “FastAPI+Unicorn is good but it is barebones compared to what django already has.”

    Comment from 4 Nov 2025 in “Why we migrated from Python to Node.js”
  • Per-request database and dependency design

    “FastAPI encourages you to open a db connection and a transaction at the front of every request”

    Comment from 3 Jul 2026 in “A native graphical shell for SSH”

    “by suggesting using dependency injection to manage database connections”

    Comment from 22 Jul 2026 in “The startup's Postgres survival guide”

    “it also constructs dependencies per request instead of singletons”

    Comment from 29 Dec 2025 in “Stepping down as Mockito maintainer after 10 years”

Other web frameworks people recommend

The four most recommended other web frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

FastAPI compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Ruby on Rails33714570%1214 yrs38 ownersApproved
Django2779774%1215 yrs38 ownersApproved
Next.js12725633%123 yrs6 owners—
Phoenix Framework851189%128 yrs7 ownersApproved
FastAPIThis page492269%12—Approved
See all 63 web frameworks, ranked

What people said

40 of the 78 comments that mention it, newest first. Each links to the original comment.

“My favorite combo is NextJS with static export and fastapi backend.”

RecommendsComment from 10 Oct 2026 in “Next.js 16.4”

“Python FastAPI was an easy decision, since an open and accessible API was a nonnegotiable”

RecommendsComment from 29 Sep 2026 in “Show HN: ProgressCove, calm and smart to-do app with Home Assistant integration”

“I already migrated all of my projects off rails, moving to fastapi”

RecommendsComment from 25 Sep 2026 in “What About Rails?”

“fastapi was picked simply because it was already known by the team and had a very thriving ecosystem”

RecommendsComment from 7 Sep 2026 in “Keep Our Servers Running”

“the solution seems to be an escape hatch where CPU-bound work is executed behind a thread-pool”

MixedComment from 23 Aug 2026 in “Does Python still need to be async-first?”

“by suggesting using dependency injection to manage database connections”

CriticizesComment from 22 Jul 2026 in “The startup's Postgres survival guide”

“FastAPI encourages you to open a db connection and a transaction at the front of every request”

CriticizesComment from 3 Jul 2026 in “A native graphical shell for SSH”

“FastAPI is operating more at that level but also adds the often unnecessary complexity of async.”

MixedComment from 8 Jun 2026 in “The company I work for is losing all of its humanity, I don't know where to go”

“If you're in an ecosystem where a lot of the async boilerplate is free/cheap (ex: FastAPI)”

RecommendsComment from 26 May 2026 in “What Color is Your Function? (2015)”

“their OpenAPI generation isn't always perfect if you have very polymorphic endpoints but it is really good compared to other tools”

RecommendsComment from 18 May 2026 in “Anthropic Acquires Stainless”

“The agent uses Pydantic for validating FastAPI schemas”

MixedComment from 15 May 2026 in “If AI Writes Your Code, Why Use Python?”

“Everything else is bloated, slow and doesn't give you enough room for optimization.”

CriticizesComment from 10 May 2026 in “Show HN: Building a web server in assembly to give my life (a lack of) meaning”

“Python with FastAPI, well known and stable library”

RecommendsComment from 19 Apr 2026 in “Show HN: HumansMap Interactive Graph of 1M+ Wikidata Entities with Investigate”

“Backend API Python with FastAPI, well known and stable library”

RecommendsComment from 13 Apr 2026 in “HumansMap, an interactive graph visualization of 3M+ Wikidata entities”

“This is a lot more flexible, and it has allowed me to work again on the project.”

RecommendsComment from 13 Apr 2026 in “Ask HN: What Are You Working On? (April 2026)”

“I've been doing a lot with Datastar and FastAPI recently”

RecommendsComment from 30 Mar 2026 in “Fedware: Government Apps That Spy Harder Than the Apps They Ban”

“I'm beginning to come round to the benefits of OpenAPI now which seems like a big note in FastAPI's favor”

RecommendsComment from 24 Mar 2026 in “Experimenting with Starlette 1.0 with Claude skills”

“If you're writing FastAPI (and you should be if you're doing a greenfield REST API project in Python in 2026)”

RecommendsComment from 21 Mar 2026 in “We rewrote our Rust WASM Parser in TypeScript – and it got 3x Faster”

“the hard work that the original designers of libraries like FastAPI, Zod, Pydantic, have invested in”

RecommendsComment from 19 Mar 2026 in “FastAPI-compatible Python framework with Zig HTTP core; 7x faster”

“Django-ninja is essentially the fastapi of the django world so this library would be enough for me to go all in on fastapi.”

MixedComment from 17 Mar 2026 in “Show HN: Oxyde – Pydantic-native async ORM with a Rust core”

“Pydantic + FastAPI are my two favorite python shops right now”

RecommendsComment from 6 Feb 2026 in “Monty - A minimal, secure Python interpreter written in Rust”

“I briefly played with FastAPI, and after the same shock I discovered Django-Ninja”

MixedComment from 28 Jan 2026 in “Notes on Starting to Use Django”

“finding a lot of that is build-it-yourself (and easily break it) is a bit of a shock.”

CriticizesComment from 28 Jan 2026 in “Notes on Starting to Use Django”

“I chose FastAPI and Pydantic specifically to give that same "get out of my way" developer experience”

RecommendsComment from 14 Jan 2026 in “Show HN: SnackBase – Open-source, GxP-compliant back end for Python teams”

“which in terms of speed isn't too far from an equivalent app written in Go”

RecommendsComment from 30 Dec 2025 in “Go Away Python”

“it also constructs dependencies per request instead of singletons”

CriticizesComment from 29 Dec 2025 in “Stepping down as Mockito maintainer after 10 years”

“The performance gains are lost, by double when you attempt to build real real software with it.”

CriticizesComment from 6 Dec 2025 in “Django 6”

“things hang together much more loosely and it means the integration just isn't as complete”

CriticizesComment from 4 Dec 2025 in “Django 6”

“I end up with a little more stylistic flexibility.”

RecommendsComment from 4 Dec 2025 in “Django 6”

“FastAPI is the best combination of an easy and a flexible Python library for web servers, from my experience.”

RecommendsComment from 26 Nov 2025 in “Slashdot effect”

“in any meaningful benchmark it's one of the slowest commercially used pieces of web software the industry has adopted”

CriticizesComment from 26 Nov 2025 in “Slashdot effect”

“making those rapid iterations that tools like fastapi allow can be pretty important”

RecommendsComment from 26 Nov 2025 in “Reinventing how .NET builds and ships (again)”

“René actually had to implement a batching worker API to work around a limitation in Python's FastAPI, which handled requests per process”

CriticizesComment from 11 Nov 2025 in “Building a high-performance ticketing system with TigerBeetle”

“FastAPI ecosystem is type-first and works well.”

RecommendsComment from 6 Nov 2025 in “Why we migrated from Python to Node.js”

“FastAPI+Unicorn is good but it is barebones compared to what django already has.”

MixedComment from 4 Nov 2025 in “Why we migrated from Python to Node.js”

“this looks more sane decision as for me then rather radical jump into Node.js”

RecommendsComment from 4 Nov 2025 in “Why we migrated from Python to Node.js”

“it’s so easy to screw up async FastAPI and bring things to a halt.”

CriticizesComment from 3 Nov 2025 in “Why we migrated from Python to Node.js”

“auto enforcing json schemas on endpoints is huge”

RecommendsComment from 3 Nov 2025 in “Why we migrated from Python to Node.js”

“I would still pick FastAPI/SQLAlchemy over Express and PostHog.”

RecommendsComment from 3 Nov 2025 in “Why we migrated from Python to Node.js”

“FastAPI, which should have been the right tool for the job”

RecommendsComment from 3 Nov 2025 in “Why we migrated from Python to Node.js”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.