Developer
Kompatibilitas SM.MS
Migrasikan dari SM.MS ke S.EE dengan perubahan kode seminimal mungkin
S.EE menyediakan lapisan API yang kompatibel dengan SM.MS, sehingga Anda dapat bermigrasi dari SM.MS ke S.EE dengan perubahan kode yang minimal. Cukup ganti endpoint API dan Anda siap menggunakannya.
Migrasi Cepat
Ganti base URL API SM.MS dengan padanan S.EE:
| SM.MS | S.EE |
|---|---|
https://sm.ms/api/v2 | https://s.ee/api/v1/file |
Endpoint yang Didukung
| SM.MS Endpoint | S.EE Endpoint | Description |
|---|---|---|
POST /api/v2/upload | POST /api/v1/file/upload | Unggah gambar |
GET /api/v2/upload_history | GET /api/v1/files | Ambil riwayat unggahan |
Unggah Gambar
Permintaan
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
| Parameter | Type | Required | Description |
|---|---|---|---|
smfile | file | Yes | File gambar yang akan diunggah (alias: file) |
domain | string | No | Domain kustom untuk tautan pendek |
custom_slug | string | No | Slug kustom untuk URL (acak jika tidak diisi) |
Respons
{
"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
}Riwayat Unggahan
Permintaan
curl "https://s.ee/api/v1/files" \
-H "Authorization: your-api-key"Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Nomor halaman (default 1, 30 file per halaman) |
Respons
{
"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
}
]
}Perbedaan dari SM.MS
Meskipun S.EE mempertahankan kompatibilitas dengan API SM.MS, ada beberapa peningkatan:
| Fitur | SM.MS | S.EE |
|---|---|---|
| Domain kustom | Tidak | Ya |
| Slug kustom | Tidak | Ya |
| Batas ukuran file | 5MB | Bervariasi menurut paket |
| Format yang didukung | Hanya gambar | Gambar, dokumen, dan lainnya |
Dapatkan API Key Anda
Untuk menggunakan API S.EE, Anda memerlukan kunci API:
- Daftar atau login di s.ee
- Buka Alat > kunci API令牌
- Buat kunci API baru
Butuh Bantuan?
Jika Anda menemui masalah saat migrasi, silakan hubungi dukungan atau lihat dokumentasi API.