# How to stream response in javascript?

**URL:** <https://community.openai.com/t/how-to-stream-response-in-javascript/7310>\
**Category:** API\
**Created:** [August 6, 2021, 7:35pm UTC](https://community.openai.com/t/how-to-stream-response-in-javascript/7310 "2021-08-06T19:35:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![asabet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/asabet/32/6448_2.png) [@asabet](https://community.openai.com/u/asabet)\
**Post date:** [August 7, 2021, 5:02am UTC](https://community.openai.com/t/how-to-stream-response-in-javascript/7310/4 "2021-08-07T05:02:03Z")

</div>

Thanks for the reply! I tried that but the `_stream` endpoint only accepts `GET` requests which can’t contain a `body`. I think stuffing it into the url is the only way…

---

_[View the full topic](https://community.openai.com/t/how-to-stream-response-in-javascript/7310)._
