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)

Rediger eller endre størrelse på hvilket som helst bilde ved å klikke på forhåndsvisningen
Rediger et bilde ved å ta på miniatyrbildet
Du kan legge til flere bilder fra din datamaskin eller legg til bilde-URLer.
Du kan legge til flere bilder fra din enhet, ta et bilde eller legg til bilde-URLer.
Laster opp 0 bilde (0% fullført)
Køen lastes opp. Dette burde bare ta noen få sekunder å fullføre.
Opplasting fullført
Opplastet innhold lagt til i . Du kan opprett nytt album med innholdet du nettopp lastet opp.
Opplastet innhold lagt til i .
Du kan opprett nytt album med innholdet du nettopp lastet opp. Du må opprett konto eller logg inn for å lagre dette innholdet til kontoen din.
Ingen bilde ble lastet opp.
Noe gikk galt og systemet kunne ikke fullføre handlingen.
    eller avbrytavbryt gjenstående
    Advarsel: Noen av bildene kunne ikke lastes opp. Lær mer
    Sjekk feilmeldingen for mer informasjon.
    JPG PNG BMP GIF WEBP 64 MB