Hướng dẫn cài đặt và khởi động nhanh Media Extraction API.
- Node.js >= 18
- npm hoặc pnpm
git clone <repository-url>
cd Media-Extractionnpm installCopy file .env.example thành .env:
cp .env.example .envChỉnh sửa .env và thêm ít nhất:
API_URL=http://localhost:9000Xem Configuration Guide để biết tất cả các options.
npm startServer sẽ chạy tại http://localhost:9000 (hoặc port bạn đã cấu hình).
# Health check
curl http://localhost:9000/health
# Server info
curl http://localhost:9000/Test với một video YouTube:
curl -X POST http://localhost:9000/ \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"videoQuality": "1080"
}'- Xem API Reference để biết cách sử dụng API
- Xem Examples để xem code examples
- Xem Configuration để tùy chỉnh server