REST API · JSON · 171 endpoint

Satu akun untuk hosting dan API.

Unduh YouTube, TikTok, Instagram, Spotify, dan Pinterest. Hapus background, HD-kan foto, buat QRIS dinamis. Panggil dari bot WhatsApp, website, atau n8n.

Base URL https://api.sairihost.com

$ curl "https://api.sairihost.com/api/download/play?q=dewa+19+kangen&apikey=KEY"

{
  "status": true,
  "creator": "SairiHost",
  "result": {
    "title": "Dewa 19 - Kangen | Official Music Video",
    "duration": "4:44",
    "quality": "128kbps",
    "download": "https://cdn405.savetube.vip/media/…"
  }
}

Request yang dilayani

semua pengguna · diperbarui tiap 30 detik

Hari ini

2.000

Kemarin

4.865

Minggu ini

2.000

Bulan ini

91.101

Sepanjang waktu

117.384

Paket

Bayar per request, bukan per hari: beli saldo request lalu pakai kapan saja selama masa aktif. Tiap request berhasil memotong 1; request gagal tidak dihitung.

Gratis

isi ulang otomatis

Rp0

30 request / 3 hari

Daftar

Lite

Rp3.000

3.000 request · 15 hari

≈ Rp1.000 / 1.000 request

Beli pakai saldo

Basic

Rp8.000

10.000 request · 30 hari

≈ Rp800 / 1.000 request

Beli pakai saldo

Plus

Rp17.000

25.000 request · 30 hari

≈ Rp680 / 1.000 request

Beli pakai saldo

Pro

Rp35.000

60.000 request · 60 hari

≈ Rp583 / 1.000 request

Beli pakai saldo

Ultra

paling hemat

Rp75.000

150.000 request · 90 hari

≈ Rp500 / 1.000 request

Beli pakai saldo

Atur sendiri

Pilih 1.000–500.000 request dan 3–180 hari. Rp800 per 1.000 request + Rp50 per hari.

Atur paket

Beli lagi saat masih aktif = request & masa aktif ditambahkan. Saat masa aktif habis, sisa kuota hangus dan key kembali ke kuota gratis.

Panduan integrasi

A. Persiapan

  1. Daftar akun SairiHost lalu masuk. Daftar
  2. Salin API key di menu Dashboard → REST API. Key gratis dibuat otomatis.
  3. Panggil endpoint di bawah dengan base URL https://api.sairihost.com.

B. Cara mengirim API key

Setiap endpoint butuh key, lewat parameter apikey di URL atau header X-Api-Key.

# lewat parameter URL
https://api.sairihost.com/api/search/youtube?q=dewa+19&apikey=API_KEY_KAMU

# atau lewat header (key tidak ikut tercatat di URL/log)
curl -H "X-Api-Key: API_KEY_KAMU" "https://api.sairihost.com/api/search/youtube?q=dewa+19"

C. Format respons & kode status

// berhasil (HTTP 200)
{
  "status": true,
  "creator": "SairiHost",
  "result": { … }
}
// gagal (HTTP 4xx / 5xx)
{
  "status": false,
  "creator": "SairiHost",
  "message": "API key tidak valid"
}
KodeArti
200Berhasil. JSON, atau file gambar untuk tools gambar
400Parameter kurang atau salah
401API key kosong atau tidak valid
403API key dinonaktifkan
404Data tidak ditemukan (video dihapus, akun privat, dll.)
413File terlalu besar (maks 25 MB)
422Gambar terbaca tapi isinya tidak sesuai (mis. bukan QRIS)
429Saldo request habis, atau terlalu banyak request per menit
500Sumber data sedang error, coba lagi

D. Batas & aturan

  • Tiap key punya saldo request: setiap request berhasil memotong 1, request gagal dikembalikan. Kuota gratis terisi ulang otomatis tiap periode.
  • Request yang gagal (input salah, sumber error) tidak memotong jatah.
  • Maksimal 60 request per menit per IP. Upload maksimal 25 MB.
  • Link unduhan (MP3/MP4 dll.) bersifat sementara: langsung unduh, jangan disimpan linknya.

E. Mengirim & menerima gambar

Tools gambar (removebg, hd, topixel, dll.) menerima foto lewat parameter url (GET) atau upload file di field multipart file (POST). Jawabannya berupa file gambar langsung, bukan JSON: cek header Content-Type.

// JavaScript (Node.js 20+)
import fs from 'node:fs'

const form = new FormData()
form.append('file', await fs.openAsBlob('foto.jpg'), 'foto.jpg')

const res = await fetch('https://api.sairihost.com/api/tools/removebg?apikey=API_KEY_KAMU', {
  method: 'POST',
  body: form
})
if (!res.headers.get('content-type').startsWith('image/')) {
  throw new Error((await res.json()).message)  // gagal: JSON
}
fs.writeFileSync('hasil.png', Buffer.from(await res.arrayBuffer()))
# Python (requests)
import requests

with open("foto.jpg", "rb") as f:
    res = requests.post(
        "https://api.sairihost.com/api/tools/removebg",
        params={"apikey": "API_KEY_KAMU"},
        files={"file": f},
        timeout=120,
    )

if not res.headers["Content-Type"].startswith("image/"):
    raise Exception(res.json()["message"])  # gagal: JSON
with open("hasil.png", "wb") as out:
    out.write(res.content)

Daftar endpoint

Klik endpoint untuk melihat parameter, contoh kode (cURL, JavaScript, Python), contoh respons hasil uji, dan tombol Coba. Masuk supaya key akunmu dipakai otomatis untuk tombol "Coba".