> 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="/files/1oyVafhkpjDUpnrXFwWJ" 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="/files/pFKRQ5CHjrBvbsrtFdwI" alt=""><figcaption></figcaption></figure>
