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)

แก้ไขหรือปรับขนาดภาพโดยคลิกที่ภาพตัวอย่าง
แก้ไขภาพโดยแตะภาพตัวอย่าง
คุณสามารถเพิ่มภาพจาก คอมพิวเตอร์ของคุณ หรือ เพิ่ม URL ภาพ ได้
คุณสามารถเพิ่มภาพจาก อุปกรณ์ของคุณ, ถ่ายภาพ หรือ เพิ่ม URL ภาพ ได้
อัพโหลด 0 รูป (0% สมบูรณ์)
คิวกำลังถูกอัพโหลดจะใช้เวลาเพียงไม่กี่วินาทีในการดำเนินการ
อัพโหลดเสร็จสิ้น
อัพโหลดเนื้อหาไปที่ . คุณสามารถ สร้างอัลบั้มใหม่ ได้ด้วยเนื้อหาที่เพิ่งอัพโหลด
อัพโหลดเนื้อหาไปที่ .
คุณสามารถ สร้างอัลบั้มใหม่ ได้ด้วยเนื้อหาที่เพิ่งอัพโหลด คุณต้อง สร้างบัญชี หรือ ลงชื่อเข้าใช้ เพื่อบันทึกเนื้อหานี้ไว้ในบัญชีของคุณ
ไม่มี รูป ถูกอัพโหลด
ข้อผิดพลาดที่เกิดขึ้นในบางครั้ง ซึ่งระบบไม่สามารถดำเนินการตามคำขอของคุณได้
    หรือ ยกเลิกยกเลิกที่เหลือ
    ข้อควรจำ:รูปไม่สามารถอัพโหลดได้ เรียนรู้เพิ่ม
    ตรวจสอบ การรายงานข้อผิดพลาด สำหรับข้อมูลเพิ่มเติม
    JPG PNG BMP GIF WEBP 64 MB