Header data from GET request

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.

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"

	}
}

}

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:

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