API Documentation

Our API currently allow you to upload images as guest. A new version of the API is currently under development and will be released as soon as possible !

API Call

Request Method

API 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

https://imgfly.me/api/1/(action)/ (if this doesn't work, try removing the slash '/' at the end)

Parameters

  • key The API v1 key is c6133147592983996b65dda51ba70255
  • 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

GET https://imgfly.me/api/1/upload/?key=c6133147592983996b65dda51ba70255&source=http://somewebsite/someimage.jpg&format=json

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 will vary depending on the format parameter:

  • json Display all the image uploaded information in JSON format. [default]
  • txt Returns the image direct URL in text/plain format.
  • redirect Redirects to the image viewer URL.

When using 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_txt and status_code properties.

Example Response (JSON)

Example Response (txt)

http://127.0.0.1/images/2014/06/04/example.png

編輯或通過點擊圖像預覽調整圖像大小
通過點擊圖像預覽來調整任意圖像
您可以從 你的電腦加入圖片連結 添加更多圖像.
您可以從 你的裝置, 截圖加入圖片連結添加更多圖像.
上傳中 0 圖片 (0% 完成)
佇列上傳中. 需要一點時間來完成
上傳完成
上傳的內容已經添加到 您已經可以使用剛剛上傳的建立新相簿
上傳的內容已經添加到
您已經可以使用剛剛上傳的建立新相簿 You must 建立新帳號 or 登入 to save this content into your account.
沒有圖片已經上傳
發生錯誤, 系統無法處理您的請求.
    取消取消剩下的
    注意: 部分圖片無法上傳. 了解更多
    檢查 錯誤報告 來了解更多訊息.
    JPG PNG BMP GIF 100 MB