# How can i get headers from the API response in the function?

**URL:** <https://community.yellow.ai/t/how-can-i-get-headers-from-the-api-response-in-the-function/2668>\
**Category:** Studio\
**Tags:** builder\
**Created:** [November 17, 2022, 6:23am UTC](https://community.yellow.ai/t/how-can-i-get-headers-from-the-api-response-in-the-function/2668 "2022-11-17T06:23:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dietcoke](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/dietcoke/32/3011_2.png) [@dietcoke](https://community.yellow.ai/u/dietcoke)\
**Post date:** [November 17, 2022, 6:23am UTC](https://community.yellow.ai/t/how-can-i-get-headers-from-the-api-response-in-the-function/2668/1 "2022-11-17T06:23:28Z")

</div>

If we store the api response in an object variable and use function node then is there a way to get headers from the response in that function?

---

<div class="post-metadata">

**Author:** ![gautham](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/gautham/32/1593_2.png) [@gautham](https://community.yellow.ai/u/gautham)\
**Post date:** [December 5, 2022, 5:08am UTC](https://community.yellow.ai/t/how-can-i-get-headers-from-the-api-response-in-the-function/2668/2 "2022-12-05T05:08:52Z")

</div>

Hey @dietcoke

Were you able to figure this out?

---

<div class="post-metadata">

**Author:** ![Arief\_Halim](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/arief_halim/32/3479_2.png) [@Arief\_Halim](https://community.yellow.ai/u/Arief_Halim)\
**Post date:** [June 30, 2024, 9:51am UTC](https://community.yellow.ai/t/how-can-i-get-headers-from-the-api-response-in-the-function/2668/3 "2024-06-30T09:51:11Z")

</div>

Hi,  
We also need to get API response headers. Could you share how to do that please @dietcoke @gautham

---

<div class="post-metadata">

**Author:** ![Pigilam\_Chidivilas\_S](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/pigilam_chidivilas_s/32/1175_2.png) [@Pigilam\_Chidivilas\_S](https://community.yellow.ai/u/Pigilam_Chidivilas_S)\
**Post date:** [July 17, 2024, 11:24am UTC](https://community.yellow.ai/t/how-can-i-get-headers-from-the-api-response-in-the-function/2668/4 "2024-07-17T11:24:36Z")

</div>

@Arief_Halim We will access the API response headers in the parse function using `ymLib.args.apiResponse`.
