[ Follow **@fastapi** on **Twitter** to stay updated
](https://twitter.com/fastapi)

[ Subscribe to the **FastAPI and friends** newsletter 🎉
](https://fastapi.tiangolo.com/newsletter/)

[ You can now sponsor **FastAPI** 🍰 ](https://github.com/sponsors/tiangolo)

[ sponsor  ![](/img/sponsors/cryptapi-banner.svg) ](https://cryptapi.io/
"CryptAPI: Your easy to use, secure and privacy oriented payment gateway.")

[ sponsor  ![](/img/sponsors/platform-sh-banner.png)
](https://platform.sh/try-it-now/?utm_source=fastapi-
signup&utm_medium=banner&utm_campaign=FastAPI-signup-June-2023 "Build, run and
scale your apps on a modern, reliable, and secure PaaS.")

[ sponsor  ![](/img/sponsors/porter-banner.png) ](https://www.porter.run
"Deploy FastAPI on AWS with a few clicks")

[ sponsor  ![](/img/sponsors/bump-sh-banner.svg)
](https://bump.sh/fastapi?utm_source=fastapi&utm_medium=referral&utm_campaign=sponsor
"Automate FastAPI documentation generation with Bump.sh")

[ sponsor  ![](/img/sponsors/reflex-banner.png) ](https://reflex.dev "Reflex")

[ sponsor  ![](/img/sponsors/scalar-banner.svg)
](https://github.com/scalar/scalar/?utm_source=fastapi&utm_medium=website&utm_campaign=top-
banner "Scalar: Beautiful Open-Source API References from Swagger/OpenAPI
files")

[ sponsor  ![](/img/sponsors/propelauth-banner.png)
](https://www.propelauth.com/?utm_source=fastapi&utm_campaign=1223&utm_medium=topbanner
"Auth, user management and more for your B2B product")

[ sponsor  ![](/img/sponsors/coherence-banner.png)
](https://www.withcoherence.com/?utm_medium=advertising&utm_source=fastapi&utm_campaign=banner%20january%2024
"Coherence")

[ sponsor  ![](/img/sponsors/mongodb-banner.png)
](https://www.mongodb.com/developer/languages/python/python-quickstart-
fastapi/?utm_campaign=fastapi_framework&utm_source=fastapi_sponsorship&utm_medium=web_referral
"Build your next app with FastAPI and MongoDB")

[ ![logo](/img/icon-white.svg) ](/. "FastAPI")

FastAPI

  * [ en - English ](/)
  * [ az - azərbaycan dili ](/az/)
  * [ bn - বাংলা ](/bn/)
  * [ de - Deutsch ](/de/)
  * [ es - español ](/es/)
  * [ fa - فارسی ](/fa/)
  * [ fr - français ](/fr/)
  * [ he - עברית ](/he/)
  * [ hu - magyar ](/hu/)
  * [ id - Bahasa Indonesia ](/id/)
  * [ it - italiano ](/it/)
  * [ ja - 日本語 ](/ja/)
  * [ ko - 한국어 ](/ko/)
  * [ pl - Polski ](/pl/)
  * [ pt - português ](/pt/)
  * [ ru - русский язык ](/ru/)
  * [ tr - Türkçe ](/tr/)
  * [ uk - українська мова ](/uk/)
  * [ ur - اردو ](/ur/)
  * [ vi - Tiếng Việt ](/vi/)
  * [ yo - Yorùbá ](/yo/)
  * [ zh - 简体中文 ](/zh/)
  * [ zh-hant - 繁體中文 ](/zh-hant/)
  * [ 😉 ](/em/)

Initializing search

[ tiangolo/fastapi  ](https://github.com/tiangolo/fastapi "Go to repository")

  * [ FastAPI ](/.)
  * [ Features ](/features/)
  * [ Learn ](/learn/)
  * [ Reference - Code API ](/reference/)
  * [ FastAPI People ](/fastapi-people/)
  * [ Resources ](/resources/)
  * [ About ](/about/)
  * [ Help ](/help/)
  * [ Release Notes ](/release-notes/)

[ ![logo](/img/icon-white.svg) ](/. "FastAPI") FastAPI

[ tiangolo/fastapi  ](https://github.com/tiangolo/fastapi "Go to repository")

  * [ FastAPI  ](/.)
  * [ Features  ](/features/)
  * [ Learn  ](/learn/)

Learn

    * [ Python Types Intro  ](/python-types/)
    * [ Concurrency and async / await  ](/async/)
    * [ Tutorial - User Guide  ](/tutorial/)

Tutorial - User Guide

      * [ First Steps  ](/tutorial/first-steps/)
      * [ Path Parameters  ](/tutorial/path-params/)
      * [ Query Parameters  ](/tutorial/query-params/)
      * [ Request Body  ](/tutorial/body/)
      * [ Query Parameters and String Validations  ](/tutorial/query-params-str-validations/)
      * [ Path Parameters and Numeric Validations  ](/tutorial/path-params-numeric-validations/)
      * [ Body - Multiple Parameters  ](/tutorial/body-multiple-params/)
      * [ Body - Fields  ](/tutorial/body-fields/)
      * [ Body - Nested Models  ](/tutorial/body-nested-models/)
      * [ Declare Request Example Data  ](/tuto