YouTube, Instagram, TikTok, Facebook, Snapchat va boshqa platformalardan media yuklab oling
Kirish talab etiladi. Bu API dan foydalanish uchun ro'yxatdan o'ting yoki kiring va shaxsiy API tokeningizni oling. Har bir so'rov uchun 100 so'm hisobdan yechiladi. Balansingizni dashboard orqali to'ldiring.
| Parametr | Holat | Tavsif |
|---|---|---|
token | MAJBURIY | Shaxsiy API tokeningiz. Dashboard dan oling. |
url | MAJBURIY | Yuklab olmoqchi bo'lgan media havolasi |
{
"holat": true,
"xabar": "Muvaffaqiyatli",
"platforma": "Instagram",
"sarlavha": "Video nomi yoki tavsifi",
"muallif": {
"ism": "To'liq ism",
"nomi": "@username",
"obunachi": "1,234,567 ta"
},
"rasm": "https://...", // Muqova rasmi
"rasmlar": ["https://...", "..."], // Carousel uchun
"havolalar": [
{
"sifat": "1080p HD",
"havola": "https://...",
"tur": "video+audio", // video | audio | video+audio | rasm
"olcham": "1920x1080"
}
],
"statistika": {
"layk": "1,234,567",
"korilgan": "5,631,289",
"izoh": "3,765"
},
"manba_url": "https://...",
"hisob": {
"narx": 100,
"qoldiq": 4900
}
}
| Kod | Sabab |
|---|---|
401 | Token yo'q yoki noto'g'ri |
402 | Balans yetarli emas (minimum 100 so'm kerak) |
400 | URL kiritilmagan yoki noto'g'ri format |
404 | Platforma qo'llab-quvvatlanmaydi |
422 | Media topilmadi yoki xususiy hisob |
503 | Vaqtincha xizmat mavjud emas |
curl -X POST https://turfa.uz/media-down \
-H "Content-Type: application/json" \
-d '{"token":"YOUR_TOKEN","url":"https://www.instagram.com/reel/..."}'
curl "https://turfa.uz/media-down?token=YOUR_TOKEN&url=https://youtu.be/..."
const res = await fetch('https://turfa.uz/media-down', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ token: 'YOUR_TOKEN', url: 'https://...' }) }); const ma = await res.json(); console.log(ma.havolalar); // yuklab olish havolalari
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://turfa.uz/media-down',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['token'=>'YOUR_TOKEN','url'=>'https://...']),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
]);
$ma = json_decode(curl_exec($ch), true);