{"id":49477,"date":"2024-11-27T14:27:58","date_gmt":"2024-11-27T14:27:58","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=49477"},"modified":"2026-02-17T13:47:10","modified_gmt":"2026-02-17T13:47:10","slug":"set-up-fastapi-application-with-nosql-database","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database","title":{"rendered":"How to Set Up a Fast API Application with a NoSQL Database?"},"content":{"rendered":"<h2 class=\"ack-h2\">How to Set Up a Fast API Application with a NoSQL Database?<\/h2>\n<p><strong>FastAPI <\/strong>is a Python-based web framework known for its speed and simplicity, while NoSQL databases excel in handling unstructured or semi-structured data with ease. AccuWeb.Cloud provides flexible and robust hosting solutions and offers an excellent platform for deploying such applications. With its ability to support containerized workloads, provide seamless <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/database\" target=\"_blank\" rel=\"noopener\">database<\/a> management, and ensure optimal performance, AccuWeb.Cloud is perfectly suited for developers seeking reliable infrastructure.<\/p>\n<p>This guide will walk you through the entire process of setting up a <strong>FastAPI<\/strong> application with a <strong>NoSQL database<\/strong> on AccuWeb.Cloud. From creating the environment and configuring FastAPI to deploying it with a NoSQL backend, this tutorial is for developers looking to harness the best of modern web application development and hosting.<\/p>\n<h2 class=\"ack-h2\">Introduction to FastAPI and NoSQL Databases<\/h2>\n<h3 class=\"ack-h3\">What is FastAPI?<\/h3>\n<p>FastAPI is a Python web framework that simplifies creating RESTful APIs. Its standout features include:<\/p>\n<ul class=\"ack-ul\">\n<li>Built-in support for asynchronous programming.<\/li>\n<li>Automatic generation of OpenAPI documentation.<\/li>\n<li>Integration with Pydantic for data validation.<\/li>\n<\/ul>\n<h3 class=\"ack-h3\">Why Use NoSQL Databases?<\/h3>\n<p>NoSQL are non-relational databases that store data in flexible, schema-less formats like JSON or key-value pairs. Their advantages include:<\/p>\n<ul class=\"ack-ul\">\n<li><b>Scalability:<\/b> Designed for distributed systems.<\/li>\n<li><b>Flexibility:<\/b> Supports unstructured and semi-structured data.<\/li>\n<li><a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/performance-new\" target=\"_blank\" rel=\"noopener\"><b>Performance:<\/b><\/a> Optimized for high read\/write throughput.<\/li>\n<\/ul>\n<h2 class=\"ack-h2\">Steps to Set Up an Environment with Python and MongoDB Containers<\/h2>\n<p><b>Step 1:<\/b> Set up Python and MongoDB containers for your application and database. This environment ensures seamless communication between your application and the database. You can create this setup using the AccuWeb.Cloud dashboard.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-1-1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49481 size-full\" title=\"Python and MongoDB containers\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-1-1.png\" alt=\"Python and MongoDB containers\" width=\"1219\" height=\"758\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-1-1.png 1219w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-1-1-300x187.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-1-1-1024x637.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-1-1-768x478.png 768w\" sizes=\"(max-width: 1219px) 100vw, 1219px\" \/><\/a><\/p>\n<p><b>Step 2: <\/b>After creating the environment, connect to your node securely through the Web SSH Gateway provided by AccuWeb.Cloud. This allows you to manage the virtual environment where Python and MongoDB are deployed.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49480 size-full\" title=\"Web SSH gateway\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.png\" alt=\"Web SSH gateway\" width=\"1536\" height=\"411\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.png 1536w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-300x80.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1024x274.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-768x206.png 768w\" sizes=\"(max-width: 1536px) 100vw, 1536px\" \/><\/a><\/p>\n<p><b>Step 3: <\/b>Begin by creating a directory for your project and navigating into it:<\/p>\n<p><b>mkdir fastapi-nosql<br \/>\ncd fastapi-nosql<\/b><\/p>\n<p><b>Step 4: <\/b>Set up a <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/application\/python-hosting\" target=\"_blank\" rel=\"noopener\">Python<\/a> virtual environment to isolate your dependencies:<\/p>\n<p><b>python3 -m venv venv<br \/>\nsource venv\/bin\/activate # For Linux\/Mac<br \/>\nvenv\\Scripts\\activate # For Windows<\/b><\/p>\n<p><b>Step 5:<\/b> Navigate to your project directory and activate the Python virtual environment:<\/p>\n<p><b>apache@node11449 fastapi ~\/fastapi nosql $ source venv\/bin\/activate<br \/>\n(venv) apache@node11449 fastapi ~\/fastapi nosql $<\/b><\/p>\n<p>Ensure the virtual environment is activated before proceeding.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-5.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49482 size-full\" title=\"Virtual environment\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-5.png\" alt=\"Virtual environment\" width=\"1051\" height=\"650\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-5.png 1051w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-5-300x186.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-5-1024x633.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-5-768x475.png 768w\" sizes=\"(max-width: 1051px) 100vw, 1051px\" \/><\/a><\/p>\n<p><b>Step 6:<\/b> Install the necessary packages, including FastAPI, Uvicorn (a lightweight ASGI server), and motor (an async MongoDB driver):<\/p>\n<p><b>pip install fastapi uvicorn motor<\/b><\/p>\n<p>This command installs the necessary package for connecting and performing operations on MongoDB.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/lVdlRrEKDcxmm7VakxPuiCYTPj8b6x8jqpQ5FbBJ.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49496 size-full\" title=\"Install packages\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/lVdlRrEKDcxmm7VakxPuiCYTPj8b6x8jqpQ5FbBJ.png\" alt=\"Install packages\" width=\"1233\" height=\"648\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/lVdlRrEKDcxmm7VakxPuiCYTPj8b6x8jqpQ5FbBJ.png 1233w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/lVdlRrEKDcxmm7VakxPuiCYTPj8b6x8jqpQ5FbBJ-300x158.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/lVdlRrEKDcxmm7VakxPuiCYTPj8b6x8jqpQ5FbBJ-1024x538.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/lVdlRrEKDcxmm7VakxPuiCYTPj8b6x8jqpQ5FbBJ-768x404.png 768w\" sizes=\"(max-width: 1233px) 100vw, 1233px\" \/><\/a><\/p>\n<p><b>Step 7:<\/b> Create a Python Script to Connect to <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/database\/mongodb-hosting\" target=\"_blank\" rel=\"noopener\">MongoDB<\/a>. Navigate to your application directory:<\/p>\n<p><b>(venv) apache@node11449 fastapi ~\/fastapi nosql $ cd app\/<br \/>\n(venv) apache@node11449 fastapi ~\/fastapi nosql\/app $<\/b><\/p>\n<p>Now, create a Python script (e.g., &#8216;<strong>database.py<\/strong>&#8216;) to connect to MongoDB. Below is a sample script:<\/p>\n<p><b>from motor.motor_asyncio import AsyncIOMotorClient<br \/>\n# MongoDB connection string<br \/>\nDATABASE_URL = &#8220;mongodb:\/\/admin:PSLafq12966@node11448 fastapi.us accuweb.cloud\/admin?authSource=admin&#8221;<br \/>\n# Initialize MongoDB client<br \/>\nclient = AsyncIOMotorClient(DATABASE_URL)<br \/>\n# Specify the database<br \/>\ndatabase = client[&#8220;fastapi_db&#8221;]<br \/>\n# Example message to verify the connection<br \/>\nprint(&#8220;Connected to MongoDB successfully!&#8221;)<\/b><\/p>\n<h4 class=\"ack-h4\">Explanation of the Script:<\/h4>\n<p><b>&#8216;AsyncIOMotorClient&#8217;:<\/b> Connects to the MongoDB server using the provided connection string. Replace &#8216;admin&#8217;, &#8216;PSLafq12966&#8217;, &#8216;node11448 fastapi.us accuweb.cloud&#8217;, and &#8216;fastapi_db&#8217; with your actual credentials and database details.<\/p>\n<p>The script verifies the connection by attempting to connect to the database and prints a success message.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/prints-a-succ\u0435ss-m\u0435ssag\u0435.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49479 size-full\" title=\"Connect to the database\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/prints-a-succ\u0435ss-m\u0435ssag\u0435.png\" alt=\"Connect to the database\" width=\"1502\" height=\"694\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/prints-a-succ\u0435ss-m\u0435ssag\u0435.png 1502w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/prints-a-succ\u0435ss-m\u0435ssag\u0435-300x139.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/prints-a-succ\u0435ss-m\u0435ssag\u0435-1024x473.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/prints-a-succ\u0435ss-m\u0435ssag\u0435-768x355.png 768w\" sizes=\"(max-width: 1502px) 100vw, 1502px\" \/><\/a><\/p>\n<p><b>Step 8:<\/b> Execute the script using the Python interpreter:<\/p>\n<p><b>(venv) apache@node11449 fastapi ~\/fastapi nosql\/app $ python database.py<\/b><\/p>\n<p><b>Connected to MongoDB successfully!<\/b><\/p>\n<p>A success message, \u201c<strong>Connected to MongoDB successfully!<\/strong>\u201d confirms the connection to your MongoDB server.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-8-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49484 size-full\" title=\"Confirms to connect MongoDB server\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-8-2.png\" alt=\"Confirms to connect MongoDB server\" width=\"1180\" height=\"693\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-8-2.png 1180w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-8-2-300x176.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-8-2-1024x601.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/St\u0435p-8-2-768x451.png 768w\" sizes=\"(max-width: 1180px) 100vw, 1180px\" \/><\/a><\/p>\n<p>This workflow ensures that your Python application can securely communicate with the MongoDB instance hosted on AccuWeb.Cloud. By activating the virtual environment, and running the connection script, your setup is verified and ready for further development.<\/p>\n<div class=\"cta-btn-top-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"cta-btn-bottom-space\"><\/div>\n<h4 class=\"ack-h4\">Installing and Configuring FastAPI<\/h4>\n<p><b>Step 1:<\/b> Set Up the Project Structure and Organize your project into a modular structure:<\/p>\n<p><b>fastapi-nosql\/<br \/>\n\u2502<br \/>\n\u251c\u2500\u2500 app\/<br \/>\n\u2502 \u251c\u2500\u2500 __init__.py<br \/>\n\u2502 \u251c\u2500\u2500 main.py<br \/>\n\u2502 \u251c\u2500\u2500 database.py<br \/>\n\u2502 \u251c\u2500\u2500 models.py<br \/>\n\u2502 \u251c\u2500\u2500 routes\/<br \/>\n\u2502 \u251c\u2500\u2500 __init__.py<br \/>\n\u2502 \u251c\u2500\u2500 item_routes.py<br \/>\n\u2502<br \/>\n\u251c\u2500\u2500 requirements.txt<\/b><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49485 size-full\" title=\"Set up the project structure\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1.png\" alt=\"Set up the project structure\" width=\"1529\" height=\"741\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1.png 1529w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-300x145.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-1024x496.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-768x372.png 768w\" sizes=\"(max-width: 1529px) 100vw, 1529px\" \/><\/a><\/p>\n<p><b>Step 2: <\/b>Create the &#8216;<b>main.py<\/b>&#8216; File and add the following code.<\/p>\n<p>&#8216;<b>main.py<\/b>&#8216; serves as the entry point for your application:<\/p>\n<p><b>from fastapi import FastAPI<br \/>\nfrom app.routes.item_routes import router as item_routerapp = FastAPI()@app.get(&#8220;\/&#8221;)<br \/>\ndef read_root():<br \/>\nreturn {&#8220;message&#8221;: &#8220;Welcome to the FastAPI NoSQL App&#8221;}# Include API routes<br \/>\napp.include_router(item_router, prefix=&#8221;\/api\/v1\/items&#8221;, tags=[&#8220;Items&#8221;])<\/b><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49486 size-full\" title=\"Set up the project structure\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1.png\" alt=\"Set up the project structure\" width=\"1541\" height=\"695\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1.png 1541w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1-300x135.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1-1024x462.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1-768x346.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2-1-1536x693.png 1536w\" sizes=\"(max-width: 1541px) 100vw, 1541px\" \/><\/a><\/p>\n<h4 class=\"ack-h4\">Designing the Application Architecture<\/h4>\n<p>An organized application improves scalability and maintainability. The architecture will include:<\/p>\n<ul class=\"ack-ul\">\n<li><b>Models:<\/b> Define the data structure.<\/li>\n<li><b>Routes:<\/b> Handle API endpoints.<\/li>\n<li><b>Database Layer:<\/b> Manage the connection and queries.<\/li>\n<\/ul>\n<h4 class=\"ack-h4\">Building Models for Data Representation<\/h4>\n<p>Create &#8216;<b>models.py<\/b>&#8216; and add the following code.<\/p>\n<p><b>from pydantic import BaseModel<br \/>\nfrom typing import Optionalclass Item(BaseModel):<br \/>\nid: Optional[str] = None<br \/>\nname: str<br \/>\ndescription: str<br \/>\nprice: float<br \/>\navailable: bool = True<\/b><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49487 size-full\" title=\"Set up the project structure\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.1.png\" alt=\"Set up the project structure\" width=\"1237\" height=\"691\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.1.png 1237w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.1-300x168.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.1-1024x572.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.1-768x429.png 768w\" sizes=\"(max-width: 1237px) 100vw, 1237px\" \/><\/a><\/p>\n<h4 class=\"ack-h4\">Creating API Endpoints for CRUD Operations<\/h4>\n<p>Create &#8216;<b>item_routes.py<\/b>&#8216; and add the following code.<\/p>\n<p><b>from fastapi import APIRouter, HTTPException<br \/>\nfrom app.models import Item<br \/>\nfrom app.database import databaserouter = APIRouter()@router.post(&#8220;\/&#8221;)<br \/>\nasync def create_item(item: Item):<br \/>\nitem_dict = item.dict()<br \/>\nresult = await database[&#8220;items&#8221;].insert_one(item_dict)<br \/>\nreturn {&#8220;id&#8221;: str(result.inserted_id)}@router.get(&#8220;\/{item_id}&#8221;)<br \/>\nasync def read_item(item_id: str):<br \/>\nitem = await database[&#8220;items&#8221;].find_one({&#8220;_id&#8221;: item_id})<br \/>\nif not item:<br \/>\nraise HTTPException(status_code=404, detail=&#8221;Item not found&#8221;)<br \/>\nreturn item<br \/>\n@router.put(&#8220;\/{item_id}&#8221;)<br \/>\nasync def update_item(item_id: str, item: Item):<br \/>\nresult = await database[&#8220;items&#8221;].update_one({&#8220;_id&#8221;: item_id}, {&#8220;$set&#8221;: item.dict()})<br \/>\nif result.modified_count == 0:<br \/>\nraise HTTPException(status_code=404, detail=&#8221;Item not found&#8221;)<br \/>\nreturn {&#8220;message&#8221;: &#8220;Item updated successfully&#8221;}@router.delete(&#8220;\/{item_id}&#8221;)<br \/>\nasync def delete_item(item_id: str):<br \/>\nresult = await database[&#8220;items&#8221;].delete_one({&#8220;_id&#8221;: item_id})<br \/>\nif result.deleted_count == 0:<br \/>\nraise HTTPException(status_code=404, detail=&#8221;Item not found&#8221;)<br \/>\nreturn {&#8220;message&#8221;: &#8220;Item deleted successfully&#8221;}<\/b><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49488 size-full\" title=\"CRUD Operations\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.2.png\" alt=\"CRUD Operations\" width=\"1331\" height=\"692\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.2.png 1331w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.2-300x156.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.2-1024x532.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-2.2-768x399.png 768w\" sizes=\"(max-width: 1331px) 100vw, 1331px\" \/><\/a><\/p>\n<h4 class=\"ack-h4\">Testing the Application<\/h4>\n<p><b>Step 1:<\/b> Run the Application<\/p>\n<p><strong>uvicorn app.main:app &#8211;reload<\/strong><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-49489 size-full\" title=\"Testing the application\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-1.png\" alt=\"Testing the application\" width=\"1261\" height=\"697\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-1.png 1261w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-1-300x166.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-1-1024x566.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/11\/Step-1-1-768x425.png 768w\" sizes=\"(max-width: 1261px) 100vw, 1261px\" \/><\/a><\/p>\n<p><strong>Test with Swagger UI:<\/strong> Visit &#8216;http:\/\/127.0.0.1:8000\/docs&#8217;.<\/p>\n<p><strong>Test with &#8216;curl&#8217; or Postman:<\/strong><\/p>\n<p>Create an Item: <b>curl -X POST &#8220;http:\/\/127.0.0.1:8000\/api\/v1\/items\/&#8221; \\<br \/>\n-H &#8220;Content-Type: application\/json&#8221; \\<br \/>\n-d &#8216;{&#8220;name&#8221;: &#8220;Laptop&#8221;, &#8220;description&#8221;: &#8220;Gaming laptop&#8221;, &#8220;price&#8221;: 1200.99}&#8217;<\/b><\/p>\n<h4 class=\"ack-h4\">Adding Authentication to Secure the API<\/h4>\n<p>Secure the API using OAuth2 or API keys. FastAPI supports authentication through &#8216;<b>fastapi.security<\/b>&#8216;.<\/p>\n<p><b>Example:<\/b><\/p>\n<p><b>from fastapi import Depends, HTTPException<br \/>\nfrom fastapi.security import OAuth2PasswordBeareroauth2_scheme = OAuth2PasswordBearer(tokenUrl=&#8221;token&#8221;)@app.get(&#8220;\/protected-route&#8221;)<br \/>\nasync def protected_route(token: str = Depends(oauth2_scheme)):<br \/>\nif token != &#8220;expected-token&#8221;:<br \/>\nraise HTTPException(status_code=401, detail=&#8221;Invalid token&#8221;)<br \/>\nreturn {&#8220;message&#8221;: &#8220;Secure content&#8221;}<\/b><\/p>\n<h2 class=\"ack-h2\">Conclusion<\/h2>\n<p>Setting up a FastAPI application with a NoSQL database on <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/\" target=\"_blank\" rel=\"noopener\">AccuWeb.Cloud<\/a> brings together the best of development efficiency and hosting reliability. FastAPI simplifies building APIs with its asynchronous programming support, automatic data validation, and built-in documentation generation, making it a developer-friendly choice for modern web applications pairing it with a NoSQL database like MongoDB ensures flexibility, scalability, and the ability to handle diverse data types effectively.<\/p>\n<p>AccuWeb.Cloud complements this setup by offering a robust and scalable hosting platform. Deploying your application on AccuWeb.Cloud ensures that it operates smoothly handles traffic efficiently and remains accessible to end users without downtime. By following this guide, you\u2019ve learned how to: Set up and configure FastAPI for API development, Integrate and use a NoSQL database for efficient data storage, and deploy your application on AccuWeb.Cloud for optimal performance and scalability.<\/p>\n<div class=\"cta-btn-top-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"cta-btn-bottom-space\"><\/div>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-49477","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-databases","faq_topics-kb","faq_topics-nosql","faq_topics-product-documentation","faq_topics-set-up-fastapi-application-with-nosql-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set Up FastAPI with NoSQL Database: Quick &amp; Easy Guide<\/title>\n<meta name=\"description\" content=\"Learn how to set up a FastAPI application with a NoSQL database. Step-by-step guide for efficient and scalable integration.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up a Fast API Application with a NoSQL Database?\" \/>\n<meta property=\"og:description\" content=\"Learn how to set up a FastAPI application with a NoSQL database. Step-by-step guide for efficient and scalable integration.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T13:47:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"How to Set Up a Fast API Application with a NoSQL Database?\",\"datePublished\":\"2024-11-27T14:27:58+00:00\",\"dateModified\":\"2026-02-17T13:47:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database\"},\"wordCount\":1222,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database\",\"name\":\"Set Up FastAPI with NoSQL Database: Quick & Easy Guide\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2024-11-27T14:27:58+00:00\",\"dateModified\":\"2026-02-17T13:47:10+00:00\",\"description\":\"Learn how to set up a FastAPI application with a NoSQL database. Step-by-step guide for efficient and scalable integration.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up a Fast API Application with a NoSQL Database?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Set Up FastAPI with NoSQL Database: Quick & Easy Guide","description":"Learn how to set up a FastAPI application with a NoSQL database. Step-by-step guide for efficient and scalable integration.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database","og_locale":"en_US","og_type":"article","og_title":"How to Set Up a Fast API Application with a NoSQL Database?","og_description":"Learn how to set up a FastAPI application with a NoSQL database. Step-by-step guide for efficient and scalable integration.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-17T13:47:10+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"How to Set Up a Fast API Application with a NoSQL Database?","datePublished":"2024-11-27T14:27:58+00:00","dateModified":"2026-02-17T13:47:10+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database"},"wordCount":1222,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database","url":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database","name":"Set Up FastAPI with NoSQL Database: Quick & Easy Guide","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2024-11-27T14:27:58+00:00","dateModified":"2026-02-17T13:47:10+00:00","description":"Learn how to set up a FastAPI application with a NoSQL database. Step-by-step guide for efficient and scalable integration.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/set-up-fastapi-application-with-nosql-database#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"How to Set Up a Fast API Application with a NoSQL Database?"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/49477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=49477"}],"version-history":[{"count":13,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/49477\/revisions"}],"predecessor-version":[{"id":52967,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/49477\/revisions\/52967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=49477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}