Universal File Downloader avatar
Universal File Downloader

Pricing

Pay per usage

Go to Store
Universal File Downloader

Universal File Downloader

Developed by

dz_omar

dz_omar

Maintained by Community

Powerful file downloader with proxy support, automatic retries, and cloud storage. Downloads any file type with streaming technology. Supports standby mode for instant API responses. Perfect for bulk downloads, geo-restricted content, and automation workflows.

5.0 (3)

Pricing

Pay per usage

3

8

8

Last modified

a day ago

๐Ÿ“ฅ Universal File Downloader

A powerful and reliable Apify Actor that downloads any type of file from the web with advanced proxy support, automatic retry mechanisms, and cloud storage integration. Perfect for downloading videos, documents, images, executables, and any other file format with enterprise-grade reliability.

โญ Key Features

Universal File Support: Download any file type including videos, PDFs, executables, images, documents, archives, and more with automatic MIME type detection.

Advanced Proxy Integration: Full Apify proxy support with residential and datacenter options, country targeting, and session management for bypassing geo-restrictions and rate limits.

Memory Efficient Streaming: Uses streaming technology to handle large files without memory constraints, making it suitable for downloading files of any size.

Dual Execution Modes: Run as a standard Actor or deploy in standby mode as an HTTP API server for webhook integration and instant response times.

Smart Retry Logic: Intelligent retry mechanisms with multiple fallback strategies ensure maximum download success rates even with unreliable sources.

Real-time Monitoring: Live progress tracking, comprehensive statistics, and detailed error reporting for complete visibility into download operations.

โš™๏ธ How It Works

The Actor processes your input URLs and downloads each file using optimized strategies. It first attempts downloads through your configured proxy settings (if enabled), then falls back to direct connections if needed. Each file is streamed directly to Apify's Key-Value Store, providing you with secure, publicly accessible URLs for immediate use.

Files are processed sequentially to ensure optimal performance and memory usage. The Actor continues processing even if individual downloads fail, providing detailed results for each URL including success status, file information, and download statistics.

๐Ÿ”ง Input Configuration

Basic Setup

{
"URLItem": [
{
"url": "https://example.com/document.pdf",
"method": "GET",
"headers": {},
"fileName": "my-document.pdf"
}
],
"proxyConfig": {
"useApifyProxy": false
}
}

Advanced Configuration with Proxy

{
"URLItem": [
{
"url": "https://restricted-site.com/video.mp4",
"method": "GET",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"Authorization": "Bearer your-token"
},
"fileName": "restricted-video.mp4"
}
],
"proxyConfig": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"],
"apifyProxyCountry": "US",
"apifyProxySession": "session123"
}
}

Input Parameters

URLItem (required): Array of file download specifications

  • url (required): The URL to download
  • method (optional): HTTP method, defaults to GET
  • headers (optional): Custom HTTP headers for authentication or user agent spoofing
  • fileName (optional): Custom filename for the saved file

proxyConfig (optional): Proxy configuration settings

  • useApifyProxy: Enable Apify proxy service
  • apifyProxyGroups: Choose between RESIDENTIAL or DATACENTER proxies
  • apifyProxyCountry: Target specific countries using ISO codes (US, UK, DE, etc.)
  • apifyProxySession: Maintain consistent IP addresses across requests

๐Ÿ“ค Output Format

The Actor provides detailed results for each download attempt:

Successful Downloads: Includes file information, download statistics, secure storage URLs, and performance metrics.

Failed Downloads: Contains error details, retry information, and debugging data to help identify and resolve issues.

Summary Statistics: Overall success rates, total processing time, and batch performance metrics.

Each result includes the original URL, final status, file size, download speed, duration, content type, and a secure download URL for accessing the file.

๐ŸŽฏ Use Cases

Content Archiving: Download and preserve web content, documents, and media files for long-term storage and offline access.

Media Collection: Bulk download videos, images, and audio files from various sources with proxy support for geo-restricted content.

Document Processing: Download PDFs, spreadsheets, and other documents for automated processing workflows.

Software Distribution: Download executables, installers, and software packages for deployment or analysis.

API Integration: Use standby mode to create download APIs for your applications with webhook support.

Backup Operations: Create automated backups of web-hosted files and resources.

๐Ÿš€ Standby Mode (HTTP API)

Deploy the Actor in standby mode to create a persistent HTTP API server:

Instant Response: No cold start delays - the server stays warm and ready to process requests immediately.

Webhook Integration: Perfect for integrating with external systems, automation workflows, and third-party applications.

API Endpoints: RESTful endpoints for health checking, download processing, and status monitoring.

Scalable Architecture: Handle multiple concurrent requests with efficient resource management.

๐ŸŒ Proxy Benefits

Bypass Restrictions: Access geo-blocked content and overcome IP-based limitations using residential proxies.

Avoid Rate Limits: Distribute requests across multiple IP addresses to prevent rate limiting and blocking.

Enhanced Privacy: Mask your real IP address and location when downloading sensitive or restricted content.

Improved Reliability: Automatic proxy rotation and fallback mechanisms ensure consistent download success.

โšก Performance Optimization

Memory Efficient: Streaming architecture handles files of any size without memory constraints or buffer limitations.

Sequential Processing: Downloads are processed one at a time to optimize performance and prevent resource conflicts.

Smart Retry Logic: Multiple fallback strategies with exponential backoff maximize success rates for unreliable sources.

Automatic Cleanup: Proper resource management ensures optimal performance across long-running operations.

๐Ÿ”’ Security Features

Input Validation: Comprehensive validation of URLs and parameters to prevent malicious inputs.

Secure Storage: All downloaded files are stored securely in Apify's Key-Value Store with signed URLs.

Error Isolation: Individual download failures don't affect other operations in the batch.

Safe Filename Handling: Automatic sanitization prevents directory traversal and filename injection attacks.

๐Ÿ“ File Type Support

The Actor supports downloading any file type with automatic detection and appropriate handling:

Documents: PDF, Word, Excel, PowerPoint, text files, and more Media Files: Videos, images, audio files in all common formats Archives: ZIP, RAR, 7Z, TAR, and compressed file formats Executables: Software installers, applications, and binary files Web Assets: HTML, CSS, JavaScript, JSON, and web resources Specialized Formats: Any file type with proper MIME type detection

๐Ÿš€ Getting Started

  1. Configure Input: Set up your URLs and any required headers or authentication
  2. Choose Proxy Settings: Enable proxy support if needed for geo-restrictions or rate limiting
  3. Run the Actor: Execute normally or deploy in standby mode for API access
  4. Access Results: Download files from the provided secure URLs in the Key-Value Store

๐ŸŒ Using Standby Mode

The Actor can be deployed in standby mode to create a persistent HTTP API server that stays active and ready to process requests instantly.

Available API Endpoints

Health Check

  • GET /health - Returns server status and uptime information
  • GET /api/status - Detailed server configuration and statistics

File Download

  • POST /api/download - Process download requests with JSON payload

Landing Page

  • GET / - Serves a static HTML page with general information about the API.

API Request Format

Send POST requests to /api/download with the same JSON structure as normal Actor input:

curl -X POST "https://dz-omar--universal-file-downloader.apify.actor/api/download" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"URLItem": [
{
"url": "https://httpbin.org/bytes/2048",
"method": "GET",
"headers": {}
}
],
"proxyConfig": {
"useApifyProxy": false
}
}'

Important: Always use the /api/download endpoint for file download requests. Sending POST requests to the root path / will result in a "Cannot POST /" error.

Authentication

All API endpoints require authentication using your Apify API token, which can be provided as:

  • URL parameter: ?token=YOUR_TOKEN
  • Authorization header: Authorization: Bearer YOUR_TOKEN

Response Format

The API returns the same detailed JSON response as normal Actor execution, including download status, file information, and secure storage URLs.

Integration Benefits

Webhook Integration: Perfect for processing download requests from external systems and automation workflows.

Real-time Processing: No cold start delays - requests are processed immediately as the server stays warm.

Scalable API: Handle multiple requests efficiently with proper resource management and error isolation.

๐Ÿ’ก Best Practices

Batch Processing: Group multiple URLs in a single run for better efficiency and cost optimization.

Header Configuration: Include appropriate User-Agent and authentication headers for better compatibility.

Proxy Selection: Choose residential proxies for geo-restricted content, datacenter proxies for general use.

Error Handling: Review failed downloads and adjust configurations based on error messages.

Resource Monitoring: Monitor your Key-Value Store usage and clean up old files when no longer needed.

๐Ÿ”ง Common Issues and Solutions

Authentication Errors: Ensure proper headers and tokens are included for protected resources.

Geo-blocking: Enable proxy support with appropriate country targeting to bypass restrictions.

Large Files: The streaming architecture handles large files efficiently, but monitor timeout settings.

Rate Limiting: Use proxy rotation or reduce concurrent requests to avoid being blocked.

Format Issues: The Actor handles any file type, but verify URLs return actual file content.

๐Ÿ”— Integration Examples

Workflow Automation: Integrate with Apify workflows for automated content processing pipelines.

External APIs: Use standby mode to create download endpoints for your applications.

Scheduled Downloads: Set up scheduled runs to periodically download updated content.

Webhook Processing: Process download requests from external systems using the HTTP API.

๐Ÿ“š Support and Documentation

For detailed API documentation, troubleshooting guides, and integration examples, refer to the comprehensive documentation provided with the Actor.

Currently, the root endpoint (GET /) displays a static HTML overview. Interactive testing tools may be integrated in a future update.

  • This Actor is designed for reliability, efficiency, and ease of use, making it the perfect solution for any file downloading needs on the Apify platform.

๐Ÿค Support & Resources

Getting Help

This Actor is provided as-is for lawful and ethical file downloading purposes. Users are solely responsible for ensuring their activities comply with all applicable laws, copyright regulations, and the terms of service of any target websites.

Downloading content without proper authorization may violate intellectual property rights or service agreements. Always respect robots.txt directives, content licenses, and website usage policies.

By using this Actor, you agree to act responsibly, ethically, and in good faith only downloading content you have the right to access.