Universal File Downloader avatar
Universal File Downloader

Pricing

Pay per usage

Go to Apify 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 (5)

Pricing

Pay per usage

6

12

12

Last modified

7 hours ago

You can access the Universal File Downloader programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, youโ€™ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "URLItem": [
12 {
13 "url": "https://sample-videos.com/video321/flv/720/big_buck_bunny_720p_1mb.flv",
14 "method": "GET",
15 "headers": {},
16 "fileName": "big_buck_bunny_720p_1mb.flv"
17 },
18 {
19 "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
20 "method": "GET",
21 "headers": {
22 "User-Agent": "Custom-Downloader/1.0"
23 }
24 },
25 {
26 "url": "https://www.reddit.com/",
27 "method": "GET",
28 "fileName": "reddit.html"
29 },
30 {
31 "url": "https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_2mb.mp4",
32 "method": "GET"
33 },
34 {
35 "url": "https://httpbin.org/bytes/2048",
36 "method": "GET"
37 },
38 {
39 "url": "https://www.youtube.com/",
40 "method": "GET"
41 },
42 {
43 "url": "https://file-examples.com/wp-content/storage/2017/02/file-sample_100kB.docx",
44 "method": "GET"
45 }
46 ],
47 "proxyConfig": {
48 "useApifyProxy": false
49 }
50};
51
52// Run the Actor and wait for it to finish
53const run = await client.actor("dz_omar/universal-file-downloader").call(input);
54
55// Fetch and print Actor results from the run's dataset (if any)
56console.log('Results from dataset');
57console.log(`๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
58const { items } = await client.dataset(run.defaultDatasetId).listItems();
59items.forEach((item) => {
60 console.dir(item);
61});
62
63// ๐Ÿ“š Want to learn more ๐Ÿ“–? Go to โ†’ https://docs.apify.com/api/client/js/docs

Universal File Downloader with Proxy Support API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Universal File Downloader API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

$npm install apify-client

Other API clients include: