# Generatore di richieste API

> Crea e invia una richiesta HTTP con limiti definiti.

[Open tool](https://www.toolcabana.com/it/api-request) · [Sviluppo e dati](https://www.toolcabana.com/it/category/developer-and-data)

Tool ID: api-request. Requested language: it. Description language: it. Complete guide translation: yes.

## Overview (en)

API request builder sends a GET, HEAD or POST request to an HTTPS URL directly from your browser and shows the status code, response headers and body. Headers are entered as JSON, and for POST the input text is the request body. Requests omit cookies, time out after 30 seconds and refuse redirects.

## Supported tasks (it)

Crea e invia una richiesta HTTP con limiti definiti.

## Steps (it)

1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
2. Regola le impostazioni di base, poi apri la modalità avanzata per le opzioni di esportazione e ottimizzazione. Le impostazioni personalizzate restano attive quando il pannello è chiuso.
3. Esegui il generatore di richieste API, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.

## Settings

- Metodo HTTP (it; key: method; type: select): GET [it], HEAD [it], POST [it]
- URL HTTPS (it; key: url; type: text)
- Intestazioni (JSON) (it; key: headers; type: textarea)

## Limitations (it)

GET, HEAD o POST su HTTPS con timeout di 30 secondi. I corpi delle richieste e le risposte in streaming sono limitati a 2 MB ciascuno. La destinazione deve consentire CORS dal browser; le destinazioni bloccate non possono essere aggirate tramite un server nella versione Hobby.

## Example input

```text
Hello ToolCabana
```

## Privacy and connections (it)

Quando esegui lo strumento, il browser invia l'URL, le intestazioni personalizzate e l'eventuale corpo POST direttamente all'endpoint scelto. Tale endpoint riceve i dati inviati e l'indirizzo della tua connessione. Le richieste omettono i cookie. ToolCabana non fa da proxy né memorizza i dati delle richieste nella versione Hobby.

## Questions (it)

### Why does the API request builder show a CORS error?

The request is sent straight from your browser, so the destination must allow cross-origin requests with CORS headers. Endpoints that do not allow it cannot be reached with this tool.

### How do I add headers to an API request?

Enter them as a JSON object in Headers (JSON), for example {"Accept":"application/json"}. The response headers are shown in a separate table after the request.

### Is there a size limit for API requests and responses?

Yes. A POST body and the response are each limited to 2 MB, and requests stop after 30 seconds. Only HTTPS URLs are accepted.

### Dove viene elaborato il mio input?

Quando esegui lo strumento, il browser invia l'URL, le intestazioni personalizzate e l'eventuale corpo POST direttamente all'endpoint scelto. Tale endpoint riceve i dati inviati e l'indirizzo della tua connessione. Le richieste omettono i cookie. ToolCabana non fa da proxy né memorizza i dati delle richieste nella versione Hobby.

### Quali sono i limiti di input?

GET, HEAD o POST su HTTPS con timeout di 30 secondi. I corpi delle richieste e le risposte in streaming sono limitati a 2 MB ciascuno. La destinazione deve consentire CORS dal browser; le destinazioni bloccate non possono essere aggirate tramite un server nella versione Hobby.

## Related tools

- [JSON to Dart model](https://www.toolcabana.com/it/json-to-dart)
- [Certificate decoder](https://www.toolcabana.com/it/certificate-decoder)
- [JSON to TypeScript](https://www.toolcabana.com/it/json-to-typescript)
- [Color CSS shadow generator](https://www.toolcabana.com/it/box-shadow)
