開発者
SM.MS 互換
最小限のコード変更で SM.MS から S.EE へ移行する
S.EE では SM.MS 互換の API レイヤーを提供しています。SM.MS から S.EE へ、最小限のコード変更で移行できます。API エンドポイントを置き換えるだけで利用を開始できます。
クイック移行
SM.MS の API ベース URL を、S.EE の対応 URL に置き換えてください:
| SM.MS | S.EE |
|---|---|
https://sm.ms/api/v2 | https://s.ee/api/v1/file |
対応エンドポイント
| SM.MS Endpoint | S.EE Endpoint | 説明 |
|---|---|---|
POST /api/v2/upload | POST /api/v1/file/upload | 画像をアップロードします |
GET /api/v2/upload_history | GET /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"パラメーター
| Parameter | Type | Required | 説明 |
|---|---|---|---|
smfile | file | Yes | アップロードする画像ファイル (file のエイリアス) |
domain | string | No | URL短縮に使用するカスタムドメイン |
custom_slug | string | No | 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"パラメーター
| Parameter | Type | Required | 説明 |
|---|---|---|---|
page | integer | No | ページ番号 (既定値は 1、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.MS | S.EE |
|---|---|---|
| カスタムドメイン | No | Yes |
| カスタムスラッグ | No | Yes |
| ファイルサイズ上限 | 5MB | プランにより異なります |
| 対応形式 | 画像のみ | 画像、ドキュメントなど |
API Key を取得する
S.EE API を利用するには、API Key が必要です:
- s.ee で登録またはログインします
- ツール > API キー令牌 を開きます
- 新しい API Key を生成します
サポートが必要ですか?
移行中に問題が発生した場合は、サポートへお問い合わせ いただくか、API ドキュメント をご確認ください。