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

# Making HTTP Requests

## Fetch

The [`HTTP Fetch`](/midio-docs/built-in-nodes/http.md#fetchurl) function can be used to fetch data from a url. Make sure to pick either **text**, **buffer** or **json** for the `response type` input. The `headers`, `method`, and `body` inputs are optional. Use a data object if you want to pass any headers to the request. The `method`  input will default to "GET".

<figure><img src="https://1896308808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdFpuRAnTVYgmlCXLLou%2Fuploads%2FKY7EPY233YEdDiXmos5J%2FMidio.png?alt=media&amp;token=d5db6df3-e6a1-4911-ac84-9b2a24bfb87d" alt="" width="563"><figcaption></figcaption></figure>

## Fetching images

Images can be retrieved by first fetching and selecting **buffer** for the **`response type`.** The buffer can then be converted to an image using [`Image From Buffer`](/midio-docs/built-in-nodes/core-std.md#frombuffer-image).

<figure><img src="https://1896308808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdFpuRAnTVYgmlCXLLou%2Fuploads%2F9OMuE68dRS8KaYacQPsV%2FMidio.png?alt=media&amp;token=7ba2f689-e951-49e1-8763-b194903f56ee" alt=""><figcaption></figcaption></figure>
