REST API của A26N để lấy liên kết tải và thông tin video từ nhiều nền tảng. Gửi JSON, nhận JSON, không cần SDK.
A26N: web tại https://thunguyenit.com, API tại https://api.thunguyenit.com.
Miễn phí & mở: không cần API key, không cần tài khoản, không giới hạn — chỉ cần gọi các endpoint bên dưới.
Định dạng: tất cả request và response là JSON (Content-Type: application/json).
CORS: đã bật — có thể gọi trực tiếp từ browser hoặc server của bạn.
Tài liệu API
/extractLấy danh sách định dạng tải cho một URL video/post.
Tham số body
| Trường | Kiểu | Mô tả |
|---|---|---|
urlbắt buộc | string | URL video/post cần trích xuất. |
Ví dụ request
curl -X POST https://api.thunguyenit.com/extract \
-H "Content-Type: application/json" \
-d '{"url":"https://youtube.com/watch?v=dQw4w9WgXcQ"}'Ví dụ response
{
"title": "Never Gonna Give You Up",
"thumbnail": "https://i.ytimg.com/vi/.../hq.jpg",
"duration": 213,
"source": "youtube",
"author": "Rick Astley",
"views": 1600000000,
"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" }
]
}/streamTải xuống hoặc stream trực tiếp định dạng đã resolve từ /extract.
Ví dụ request
https://api.thunguyenit.com/stream?t=1b0bc2ea13ee&i=0/channelLấy danh sách video từ channel, playlist hoặc user profile.
Tham số body
| Trường | Kiểu | Mô tả |
|---|---|---|
urlbắt buộc | string | URL channel / playlist / user. |
limit | number | Số video tối đa, 1-200 (mặc định 30). |
Ví dụ request
curl -X POST https://api.thunguyenit.com/channel \
-H "Content-Type: application/json" \
-d '{"url":"https://tiktok.com/@tiktok","limit":50}'Ví dụ response
{
"source": "...",
"count": 50,
"items": [
{
"url": "https://tiktok.com/@tiktok/video/123",
"title": "...",
"thumbnail": "https://..."
}
]
}/healthKiểm tra trạng thái backend, queue và proxy pool.
Ví dụ request
curl https://api.thunguyenit.com/healthVí dụ response
{
"ok": true,
"queue": { "running": 3, "waiting": 0 }
}