REST API ของ A26N สำหรับดึงลิงก์ดาวน์โหลดและข้อมูลวิดีโอจากหลายแพลตฟอร์ม ส่ง JSON รับ JSON — ไม่ต้องใช้ SDK
A26N: เว็บ https://thunguyenit.com, API https://api.thunguyenit.com
ฟรีและเปิด: ไม่ต้องใช้ API key, ไม่ต้องมีบัญชี, ไม่จำกัด — เรียก endpoint ด้านล่างได้เลย
รูปแบบ: คำขอ/การตอบกลับทั้งหมดเป็น JSON (Content-Type: application/json)
CORS: เปิดใช้งาน — เรียกจากเบราว์เซอร์หรือเซิร์ฟเวอร์ได้โดยตรง
เอกสาร API
/extractดึงรายการรูปแบบดาวน์โหลดสำหรับ URL วิดีโอ/โพสต์
พารามิเตอร์ body
| ฟิลด์ | ชนิด | คำอธิบาย |
|---|---|---|
urlจำเป็น | string | URL วิดีโอ/โพสต์ที่ต้องการดึงข้อมูล |
ตัวอย่างคำขอ
curl -X POST https://api.thunguyenit.com/extract \
-H "Content-Type: application/json" \
-d '{"url":"https://youtube.com/watch?v=dQw4w9WgXcQ"}'ตัวอย่างการตอบกลับ
{
"title": "Never Gonna Give You Up",
"thumbnail": "https://i.ytimg.com/vi/.../hq.jpg",
"duration": 213,
"source": "youtube",
"author": "Rick Astley",
"views": 1600000000,
"likes": 16000000,
"formats": [
{ "label": "1080p", "type": "video", "ext": "mp4",
"filesize": 52428800, "url": "https://api.thunguyenit.com/stream?t=..&i=0" },
{ "label": "Audio", "type": "audio", "ext": "m4a",
"filesize": 3400000, "url": "https://api.thunguyenit.com/stream?t=..&i=6" }
]
}/streamดาวน์โหลดหรือสตรีมโดยตรงจาก URL รูปแบบที่ /extract ส่งคืน
ตัวอย่างคำขอ
https://api.thunguyenit.com/stream?t=1b0bc2ea13ee&i=0/channelดึงรายการวิดีโอจากช่อง เพลย์ลิสต์ หรือโปรไฟล์ผู้ใช้
พารามิเตอร์ body
| ฟิลด์ | ชนิด | คำอธิบาย |
|---|---|---|
urlจำเป็น | string | URL ช่อง / เพลย์ลิสต์ / ผู้ใช้ |
limit | number | จำนวนวิดีโอสูงสุด 1–200 (ค่าเริ่มต้น 30) |
ตัวอย่างคำขอ
curl -X POST https://api.thunguyenit.com/channel \
-H "Content-Type: application/json" \
-d '{"url":"https://tiktok.com/@tiktok","limit":50}'ตัวอย่างการตอบกลับ
{
"source": "...",
"count": 50,
"items": [
{
"url": "https://tiktok.com/@tiktok/video/123",
"title": "...",
"thumbnail": "https://..."
}
]
}/healthตรวจสอบสถานะ backend คิว และ proxy pool
ตัวอย่างคำขอ
curl https://api.thunguyenit.com/healthตัวอย่างการตอบกลับ
{
"ok": true,
"queue": { "running": 3, "waiting": 0 }
}