A26N REST API,用于从多个平台获取下载链接和视频信息。发送 JSON,接收 JSON,无需 SDK。
A26N:网站 https://thunguyenit.com,API https://api.thunguyenit.com。
免费开放:无需 API key、无需账号、无限制 — 直接调用下方端点即可。
格式:所有请求/响应均为 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从 /extract 返回的格式 URL 直接下载或流式传输。
请求示例
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检查后端状态、队列和代理池。
请求示例
curl https://api.thunguyenit.com/health响应示例
{
"ok": true,
"queue": { "running": 3, "waiting": 0 }
}