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)

ערוך או שנה את גודל התמונה על ידי לחיצה על התמונה או אייקון העריכה
ערוך או שנה את גודל התמונה על ידי לחיצה על תצוגה מקדימה או אייקון העריכה
ניתן להוסיף עוד תמונות מ- המחשב שלי או הוספת קישורים של תמונות.
העלאת 0 תמונה (0% הושלם)
התמונות בהעלאה, יקח כמה שניות עד שתקבל לינק להורדה\הטמעה
העלאה הושלמה
התמונות שהועלו, התווספו לאלבום הינך יכול ליצור אלבום חדש אלבום חדש עם התוכן שהועלה.
התמונות שהועלו, התווספו לאלבום
הינך יכול ליצור אלבום חדש אלבום חדש עם התוכן שהועלה. You must create an account or היכנס to save this content into your account.
תקלה בעת העלאת קבצי תמונה, נסה שוב
נתקלנו במספר שגיאות במהלך הפעולה האחרונה שביצעת ולא ניתן להשלים אותה, נסה שוב!
    או ביטולבטל את העלאה
    שים לב: חלק מהתמונות לא הועלו למד עוד
    עיין ב- דו"ח השגיאות למידע נוסף.
    JPG PNG BMP GIF WEBP 64 MB