# In body\_filter(), how to get response body?

**URL:** <https://discuss.konghq.com/t/in-body-filter-how-to-get-response-body/3888>\
**Category:** Questions\
**Created:** [July 2, 2019, 8:07am UTC](https://discuss.konghq.com/t/in-body-filter-how-to-get-response-body/3888 "2019-07-02T08:07:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanchaoli](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@evanchaoli](https://discuss.konghq.com/u/evanchaoli)\
**Post date:** [July 2, 2019, 8:07am UTC](https://discuss.konghq.com/t/in-body-filter-how-to-get-response-body/3888/1 "2019-07-02T08:07:12Z")

</div>

`body_filter()` only take a `conf` parameter, how to get response body in this function?

---

<div class="post-metadata">

**Author:** ![mloskot](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/mloskot/32/2259_2.png) [@mloskot](https://discuss.konghq.com/u/mloskot)\
**Post date:** [February 26, 2021, 11:35am UTC](https://discuss.konghq.com/t/in-body-filter-how-to-get-response-body/3888/2 "2021-02-26T11:35:29Z")

</div>

You will find the technique by reading the source code of the plug-in [https://github.com/Kong/kong/blob/master/kong/plugins/response-transformer](https://github.com/Kong/kong/blob/master/kong/plugins/response-transformer)
