Backend API for downloading videos from Instagram and TikTok.
- Python 3.11
- Flask
- Flask-RESTX
- Instaloader
pip install -r requirements.txt
python app.pydocker-compose up --build
http://localhost:5000/docsPOST /download- Download videoGET /platforms- Get supported platformsGET /health- Health checkGET /docs- API documentation
Copy .env.example to .env and configure:
FLASK_ENV=production
RATE_LIMIT_ENABLED=true
RATE_LIMIT_PER_MINUTE=5
MAX_DOWNLOAD_SIZE_MB=500
ALLOWED_DOMAINS=instagram.com,tiktok.com
API_KEY_REQUIRED=falsedocker-compose up -d --build