> For the complete documentation index, see [llms.txt](https://docs.goless.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goless.com/blocks/general/http-request-block.md).

# HTTP Request Block

<figure><img src="/files/lYEuAlpeS1CDfVuCo6Wl" alt=""><figcaption></figcaption></figure>

This block makes an HTTP request. Five request methods are supported:

* GET - Used to request the contents of a specified resource
* POST - Used to transfer user data to a specified resource
* PUT - Used to load the contents of the request to the URI specified in the request
* PATCH - Similar to PUT, but applies only to a fragment of the resource
* DELETE - Deletes the specified resource

The screenshot below shows the block settings with a detailed description.

<figure><img src="/files/Fk62zinVFzkwVDXRJGr2" alt=""><figcaption></figcaption></figure>

1. Request method.
2. UrI specifies the path to the requested document.
3. Content type in queries (such as [POST](https://developer.mozilla.org/ru/docs/Web/HTTP/Methods/POST) or [PUT](https://developer.mozilla.org/ru/docs/Web/HTTP/Methods/PUT)), the client tells the server the type of data to send.
4. The request header can be added using the Add header button
5. Setting up a response from the server in the block:

* Response type. The response format can be in three options: json, text, base64. For json, the Data path setting is available
* The response data can be written to a variable or workflow table

**Data path**

<figure><img src="/files/rOzzF0D5DcuZmW1x76z1" alt=""><figcaption></figcaption></figure>

If you want to receive part of the json response data, you can use the Data path setting.For example, when the response returns this data:

{

"status": 200,

"data": {

"name": "Prices",

"values": \[

{ "id": 1, "value": 4000 },

{ "id": 2, "value": 24000 }

]

}

}

To obtain values array, write data.values as a path. And to get the first value of the array values, write data.values.0.

\\
