# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.midio.com/midio-docs/guides/http/making-http-requests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
