Skip to Content
S.EE Docs
開發者

SM.MS 相容性

以最少的程式碼改動從 SM.MS 遷移到 S.EE

S.EE 提供相容 SM.MS 的圖片上傳和上傳紀錄端點。移轉時,請依下表更新各端點網址。

快速遷移

將 SM.MS 的 API 基底 URL 替換為 S.EE 對應地址:

SM.MSS.EE
https://sm.ms/api/v2https://s.ee/api/v1/file

支援的介面

SM.MS 介面S.EE 介面說明
POST /api/v2/uploadPOST /api/v1/file/upload上傳圖片
GET /api/v2/upload_historyGET /api/v1/files取得上傳紀錄

上傳圖片

請求

curl -X POST "https://s.ee/api/v1/file/upload" \
  -H "Authorization: your-api-key" \
  -F "smfile=@/path/to/image.png" \
  -F "domain=sm.ms" \
  -F "custom_slug=my-image"

參數

參數型別必填說明
smfilefile是要上傳的圖片檔案(別名:file)
domainstring否短網址使用的自訂網域
custom_slugstring否URL 的自訂別名(未提供時隨機產生)

回應

{
  "code": 200,
  "data": {
    "file_id": 14184137,
    "width": 1024,
    "height": 1024,
    "filename": "my-cat.jpg",
    "storename": "my-cat.jpg",
    "size": 202814,
    "path": "/2026/02/11/dm3K/my-cat.jpg",
    "hash": "delete-hash-here",
    "url": "https://i.see.you/2026/02/11/dm3K/my-cat.jpg",
    "delete": "https://s.ee/api/v1/file/delete/delete-hash-here",
    "page": "https://sm.ms/my-cat",
    "upload_status": 2
  },
  "message": "success",
  "success": true
}

上傳紀錄

請求

curl "https://s.ee/api/v1/files" \
  -H "Authorization: your-api-key"

參數

參數型別必填說明
pageinteger否頁碼(預設 1,每頁 30 個檔案)

回應

{
  "success": true,
  "code": 200,
  "message": "success",
  "data": [
    {
      "file_id": 14186122,
      "width": 1255,
      "height": 636,
      "filename": "chrome_O93NV9Z3G8.gif",
      "storename": "chrome_O93NV9Z3G8.gif",
      "size": 398517,
      "path": "/2026/02/12/5isV/chrome_O93NV9Z3G8.gif",
      "hash": "delete-hash-here",
      "url": "https://i.see.you/2026/02/12/5isV/chrome_O93NV9Z3G8.gif",
      "delete": "https://s.ee/api/v1/file/delete/delete-hash-here",
      "page": "https://sm.ms/ZS3M",
      "upload_status": 2,
      "created_at": 1770908298
    },
    {
      "file_id": 14186073,
      "width": 1272,
      "height": 644,
      "filename": "firefox_P4lBSlG15y.gif",
      "storename": "firefox_P4lBSlG15y.gif",
      "size": 802256,
      "path": "/2026/02/12/0Bmu/firefox_P4lBSlG15y.gif",
      "hash": "delete-hash-here",
      "url": "https://i.see.you/2026/02/12/0Bmu/firefox_P4lBSlG15y.gif",
      "delete": "https://s.ee/api/v1/file/delete/delete-hash-here",
      "page": "https://sm.ms/ATas",
      "upload_status": 2,
      "created_at": 1770904032
    }
  ]
}

與 SM.MS 的差異

S.EE 的相容端點也支援以下功能:

功能SM.MSS.EE
自訂網域否是
自訂別名否是
檔案大小限制5 MB隨方案而變化
支援的格式僅圖片圖片、檔案等更多類型

取得您的 API 金鑰

要使用 S.EE API,您需要一個 API 金鑰:

  1. 在 s.ee 註冊或登入
  2. 前往 工具 > API 金鑰
  3. 點擊 建立權杖,產生新的 API 金鑰

需要協助?

如果您在遷移過程中遇到任何問題,請 聯絡支援 或檢視我們的 API 文件。

On this page