S.EE Docs
開發者

SM.MS 相容性

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

S.EE 提供相容 SM.MS 的 API 層,讓您可以以最少的程式碼改動從 SM.MS 遷移到 S.EE。只需替換 API 端點地址即可開始使用。

快速遷移

將 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_slugstringURL 的自訂短碼(未提供時隨機生成)

回應

{
  "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.MS API 的相容性,但也提供了一些增強能力:

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

取得您的 API Key

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

  1. s.ee 註冊或登入
  2. 前往 工具 > API 金鑰令牌
  3. 生成新的 API Key

需要幫助?

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

本頁內容