# Hosting API in netlify without serverless function

**URL:** <https://answers.netlify.com/t/hosting-api-in-netlify-without-serverless-function/96714>\
**Category:** Support\
**Tags:** deployment\
**Created:** [July 15, 2023, 11:21am UTC](https://answers.netlify.com/t/hosting-api-in-netlify-without-serverless-function/96714 "2023-07-15T11:21:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohanakannan](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Mohanakannan](https://answers.netlify.com/u/Mohanakannan)\
**Post date:** [July 15, 2023, 11:21am UTC](https://answers.netlify.com/t/hosting-api-in-netlify-without-serverless-function/96714/1 "2023-07-15T11:21:34Z")

</div>

I need below Information, could you please help me on this.

Whether it is recommended to host Nextjs api routes in Netlify without using server less function.  
If yes

1. how can we scale up the infrastructure,
2. where my site will be hosted
3. What is the disaster recovery plan
4. How to add firewall and rate limiting
5. For monitoring what option is availabe, can we use app insights

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 16, 2023, 12:01pm UTC](https://answers.netlify.com/t/hosting-api-in-netlify-without-serverless-function/96714/2 "2023-07-16T12:01:33Z")

</div>

Next.js API routes are basically serverless functions. In the context of the post, the rest of the questions are thus invalid.

---

<div class="post-metadata">

**Author:** ![Mohanakannan](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Mohanakannan](https://answers.netlify.com/u/Mohanakannan)\
**Post date:** [July 16, 2023, 1:29pm UTC](https://answers.netlify.com/t/hosting-api-in-netlify-without-serverless-function/96714/3 "2023-07-16T13:29:14Z")

</div>

Could you please let me know the options to host NextJs api routes in netlify and which one is recommended

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 16, 2023, 2:10pm UTC](https://answers.netlify.com/t/hosting-api-in-netlify-without-serverless-function/96714/4 "2023-07-16T14:10:55Z")

</div>

You host API routes on Netlify the same way you’d host it anywhere else. Just add it to your API folder and it will work.

---

<div class="post-metadata">

**Author:** ![Mohanakannan](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Mohanakannan](https://answers.netlify.com/u/Mohanakannan)\
**Post date:** [July 17, 2023, 4:56am UTC](https://answers.netlify.com/t/hosting-api-in-netlify-without-serverless-function/96714/5 "2023-07-17T04:56:15Z")

</div>

Thank you for the information. The Api endpoint will be exposed to the client. Due to this I want to know the below information. Please advise on the below questions:

1. how can we scale up the infrastructure ,
2. where my site will be hosted
3. What is the disaster recovery plan
4. How to add firewall and rate limiting
5. For monitoring what option is available, can we use app insights
