# How to get status code from API response from API Node without using parse api

**URL:** <https://community.yellow.ai/t/how-to-get-status-code-from-api-response-from-api-node-without-using-parse-api/3330>\
**Category:** Studio\
**Tags:** builder\
**Created:** [January 3, 2023, 11:59am UTC](https://community.yellow.ai/t/how-to-get-status-code-from-api-response-from-api-node-without-using-parse-api/3330 "2023-01-03T11:59:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdullah\_Zuhud](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/abdullah_zuhud/32/1624_2.png) [@Abdullah\_Zuhud](https://community.yellow.ai/u/Abdullah_Zuhud)\
**Post date:** [January 3, 2023, 11:59am UTC](https://community.yellow.ai/t/how-to-get-status-code-from-api-response-from-api-node-without-using-parse-api/3330/1 "2023-01-03T11:59:12Z")

</div>

how to get status code when we are getting response from API in journey.

same status code as what we have in API Event Data explorer.

e.g. : 200, 502, 400, err, etc.

---

<div class="post-metadata">

**Author:** ![Subhrajit\_Gupta](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/subhrajit_gupta/32/1680_2.png) [@Subhrajit\_Gupta](https://community.yellow.ai/u/Subhrajit_Gupta)\
**Post date:** [January 3, 2023, 12:11pm UTC](https://community.yellow.ai/t/how-to-get-status-code-from-api-response-from-api-node-without-using-parse-api/3330/2 "2023-01-03T12:11:38Z")

</div>

```auto
ymLib.args.apiResponse.statusCode

```

This should do.

---

<div class="post-metadata">

**Author:** ![Abdullah\_Zuhud](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/abdullah_zuhud/32/1624_2.png) [@Abdullah\_Zuhud](https://community.yellow.ai/u/Abdullah_Zuhud)\
**Post date:** [January 3, 2023, 1:17pm UTC](https://community.yellow.ai/t/how-to-get-status-code-from-api-response-from-api-node-without-using-parse-api/3330/3 "2023-01-03T13:17:20Z")

</div>

so i just need to create new function after api call isnt it?

i need to do this in cloud platform

---

<div class="post-metadata">

**Author:** ![Subhrajit\_Gupta](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/subhrajit_gupta/32/1680_2.png) [@Subhrajit\_Gupta](https://community.yellow.ai/u/Subhrajit_Gupta)\
**Post date:** [January 3, 2023, 2:40pm UTC](https://community.yellow.ai/t/how-to-get-status-code-from-api-response-from-api-node-without-using-parse-api/3330/4 "2023-01-03T14:40:27Z")

</div>

Yes. you need to create a function and apply the code
