API version 1

Freeimage.host's API v1 allows to upload pictures.

API Key


API call

Request method

API v1 calls can be done using the POST or GET request methods but since GET request are limited by the maximum allowed length of an URL you should prefer the POST request method.

Request URL


Parameters

  • key (required) The API key.
  • action What you want to do [values: upload].
  • source Either a image URL or a base64 encoded image string. You can also use FILES["source"] in your request.
  • format Sets the return format [values: json (default), redirect, txt].

Example call

Note: Always use POST when uploading local files. Url encoding may alter the base64 source due to encoded characters or just by URL request length limit due to GET request.

API response

API v1 responses display all the image uploaded information in JSON format.

JSON the response will have headers status codes to allow you to easily notice if the request was OK or not. It will also output the status properties.

Example response (JSON)

Modificare o ridimensionare un immagine cliccando l'immagine di anteprima
Modifica qualsiasi immagine toccando l'anteprima dell'immagine
È possibile aggiungere altre immagini il tuo computer o aggiungi URL immagini.
È possibile aggiungere altre immagini il tuo dispositivo, Fai una foto o aggiungi URL immagini.
Caricamento 0 Immagine (0% completo)
La coda è caricata, si dovrebbe perdere solo pochi secondi per essere completata.
Caricamento completato
contenuti caricati aggiunto . È possibile creare un nuovo album con il contenuto appena caricato.
contenuti caricati aggiunto .
È possibile creare un nuovo album con il contenuto appena caricato. Devi crea un account o registrati per salvare questo contenuto nel tuo account.
Nessun Immagine sono state caricate
La tua richiesta non è stata elaborata a causa di alcuni errori.
    oppure Annulla Annulla il caricamento
    Attenzione: non è stato possibile caricare alcune immagini. Scopri di più
    Controlla il rapporto di errore per ulteriori informazioni.
    JPG PNG BMP GIF WEBP 64 MB