FastAPI
Hacker ApprovedRanked 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%
Recommended in 12 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- 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?” - Comment from 6 Nov 2025 in “Why we migrated from Python to Node.js”
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” - Comment from 10 May 2026 in “Show HN: Building a web server in assembly to give my life (a lack of) meaning”
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.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Ruby on Rails | 337 | 145 | 70% | 12 | 14 yrs38 owners | Approved |
| Django | 277 | 97 | 74% | 12 | 15 yrs38 owners | Approved |
| Next.js | 127 | 256 | 33% | 12 | 3 yrs6 owners | — |
| Phoenix Framework | 85 | 11 | 89% | 12 | 8 yrs7 owners | Approved |
| FastAPIThis page | 49 | 22 | 69% | 12 | — | Approved |
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.”
“Python FastAPI was an easy decision, since an open and accessible API was a nonnegotiable”
“I already migrated all of my projects off rails, moving to fastapi”
“fastapi was picked simply because it was already known by the team and had a very thriving ecosystem”
“the solution seems to be an escape hatch where CPU-bound work is executed behind a thread-pool”
“by suggesting using dependency injection to manage database connections”
“FastAPI encourages you to open a db connection and a transaction at the front of every request”
“FastAPI is operating more at that level but also adds the often unnecessary complexity of async.”
“If you're in an ecosystem where a lot of the async boilerplate is free/cheap (ex: FastAPI)”
“their OpenAPI generation isn't always perfect if you have very polymorphic endpoints but it is really good compared to other tools”
“The agent uses Pydantic for validating FastAPI schemas”
“Everything else is bloated, slow and doesn't give you enough room for optimization.”
“Python with FastAPI, well known and stable library”
“Backend API Python with FastAPI, well known and stable library”
“This is a lot more flexible, and it has allowed me to work again on the project.”
“I've been doing a lot with Datastar and FastAPI recently”
“I'm beginning to come round to the benefits of OpenAPI now which seems like a big note in FastAPI's favor”
“If you're writing FastAPI (and you should be if you're doing a greenfield REST API project in Python in 2026)”
“the hard work that the original designers of libraries like FastAPI, Zod, Pydantic, have invested in”
“Django-ninja is essentially the fastapi of the django world so this library would be enough for me to go all in on fastapi.”
“Pydantic + FastAPI are my two favorite python shops right now”
“I briefly played with FastAPI, and after the same shock I discovered Django-Ninja”
“finding a lot of that is build-it-yourself (and easily break it) is a bit of a shock.”
“I chose FastAPI and Pydantic specifically to give that same "get out of my way" developer experience”
“which in terms of speed isn't too far from an equivalent app written in Go”
“it also constructs dependencies per request instead of singletons”
“The performance gains are lost, by double when you attempt to build real real software with it.”
“things hang together much more loosely and it means the integration just isn't as complete”
“I end up with a little more stylistic flexibility.”
“FastAPI is the best combination of an easy and a flexible Python library for web servers, from my experience.”
“in any meaningful benchmark it's one of the slowest commercially used pieces of web software the industry has adopted”
“making those rapid iterations that tools like fastapi allow can be pretty important”
“René actually had to implement a batching worker API to work around a limitation in Python's FastAPI, which handled requests per process”
“FastAPI ecosystem is type-first and works well.”
“FastAPI+Unicorn is good but it is barebones compared to what django already has.”
“this looks more sane decision as for me then rather radical jump into Node.js”
“it’s so easy to screw up async FastAPI and bring things to a halt.”
“auto enforcing json schemas on endpoints is huge”
“I would still pick FastAPI/SQLAlchemy over Express and PostHog.”
“FastAPI, which should have been the right tool for the job”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.