# Header data from GET request

**URL:** <https://community.appfarm.io/t/header-data-from-get-request/765>\
**Category:** Ask the community\
**Created:** [October 16, 2023, 7:14am UTC](https://community.appfarm.io/t/header-data-from-get-request/765 "2023-10-16T07:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Henrik](https://community.appfarm.io/u/Henrik)\
**Post date:** [October 16, 2023, 7:14am UTC](https://community.appfarm.io/t/header-data-from-get-request/765/1 "2023-10-16T07:14:42Z")

</div>

I need to get data from a GET request response, i need data from headers and the items im retrieving. It seems i can only access the data from the headers when i use the result parser and return responseHeaders, but when i do this i can not access the other data, even though its in the response. it seems the root level when i do this is “parsedData”, when i dont use the result parser to return “responseHeaders” i can access the other data, but not the headers.

I have tried to use the parser to return the reponseHeaders and set the root level to responseData to access both, but this does not seem to work.

---

<div class="post-metadata">

**Author:** ![Henrik](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Henrik](https://community.appfarm.io/u/Henrik)\
**Post date:** [October 16, 2023, 8:06am UTC](https://community.appfarm.io/t/header-data-from-get-request/765/2 "2023-10-16T08:06:33Z")

</div>

This is the response when i return responseHeaders in result parser:  
I need to get the data from rawData Array and the parsedData

```
"responseData": {
	"status": 200,
	"statusText": "OK",
	"rawData": [
		{
			"Notimportantobject": {
				"A": "month",
				"B": 0
			},
			"Data": false,
			"_id": "64f988ef910368407092fa95",
			"Bool": false,
			"type": "service",
			"deposit": 0,
			"depositPercent": 0,

		},
        {
			"Notimportantobject": {
				"A": "month",
				"B": 0
			},
			"Data": false,
			"_id": "64f988ef910368407092fa95",
			"Bool": false,
			"type": "service",
			"deposit": 0,
			"depositPercent": 0,

		},
        {
			"Notimportantobject": {
				"A": "month",
				"B": 0
			},
			"Data": false,
			"_id": "64f988ef910368407092fa95",
			"Bool": false,
			"type": "service",
			"deposit": 0,
			"depositPercent": 0,

		},

	],
	"parsedData": {
		"HeaderData1": "Value1",
		"HeaderData2": "Value2",
		"HeaderData3": "Value3",
		"HeaderData4": "Value4",
		"HeaderData5": "Value5"

	}
}

```

}

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [October 16, 2023, 8:55am UTC](https://community.appfarm.io/t/header-data-from-get-request/765/3 "2023-10-16T08:55:31Z")

</div>

Hi Henrik,

If you want to retrieve both the `rawDataResponse` and the `responseHeaders` from your web request, you can utilize the Result Parser to return a JSON structure as follows:

```auto
return {
    "responseHeaders": responseHeaders,
    "rawResponseData": rawResponseData
}

```

You can then access the `rawResponseData` using the path: `rawResponseData.your.Path.Here`,  
and the `responseHeaders` with the path: `responseHeaders.your.Path.Here`.

Hope this helps
