# Appfarm API-endpoint size limit

**URL:** <https://community.appfarm.io/t/appfarm-api-endpoint-size-limit/262>\
**Category:** Ask the community\
**Tags:** app-data\
**Created:** [February 13, 2023, 9:30am UTC](https://community.appfarm.io/t/appfarm-api-endpoint-size-limit/262 "2023-02-13T09:30:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fridtjof](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/fridtjof/32/262_2.png) [@Fridtjof](https://community.appfarm.io/u/Fridtjof)\
**Post date:** [February 13, 2023, 9:30am UTC](https://community.appfarm.io/t/appfarm-api-endpoint-size-limit/262/1 "2023-02-13T09:30:55Z")

</div>

Hi. We have noticed that a POST API-endpoint in Appfarm has a limit to the amount of rows/data that we can send. Is this a limitation from Appfarm - and if so, how is this limit determined? Would be nice to know, so that we can chunck the data more efficiently.

This is the response we get:  
Exception: Request failed with status 500, {“name”:“PayloadTooLargeError”,“error”:{“name”:“PayloadTooLargeError”,“message”:“request entity too large”,“statusCode”:500},“message”:“request entity too large”}

Best Regards,  
Fridtjof at xIQ

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 13, 2023, 10:30am UTC](https://community.appfarm.io/t/appfarm-api-endpoint-size-limit/262/2 "2023-02-13T10:30:08Z")

</div>

Hi @Fridtjof

We will do a review of these limits. But out of curiousity - do you have any idea of the size of this payload you are trying to send (approximately, or at least a number of rows/columns etc)?

---

<div class="post-metadata">

**Author:** ![Fridtjof](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/fridtjof/32/262_2.png) [@Fridtjof](https://community.appfarm.io/u/Fridtjof)\
**Post date:** [February 13, 2023, 4:31pm UTC](https://community.appfarm.io/t/appfarm-api-endpoint-size-limit/262/3 "2023-02-13T16:31:08Z")

</div>

Hi.

I was unable to send 10 000 rows of a dataframe with 5 string attributes, so I settled on making a loop to chunk it into 5 000 rows at a time. The other time we were sending 4000 rows with about 20 columns.

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 13, 2023, 5:36pm UTC](https://community.appfarm.io/t/appfarm-api-endpoint-size-limit/262/4 "2023-02-13T17:36:58Z")

</div>

Hi!

I believe the current size limit for POST of REST data i 1MB. I’ve registered a change request on increasing it (currently being consequence analyzed). So for the time being, that’s the limit! But we’ll keep you posted on the progress / conclusion.

---

<div class="post-metadata">

**Author:** ![Fridtjof](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/fridtjof/32/262_2.png) [@Fridtjof](https://community.appfarm.io/u/Fridtjof)\
**Post date:** [February 14, 2023, 10:29am UTC](https://community.appfarm.io/t/appfarm-api-endpoint-size-limit/262/5 "2023-02-14T10:29:36Z")

</div>

Thanks for that Kristian 🙂
