$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "URLItem": [
< {
< "url": "https://download.samplelib.com/mp4/sample-5s.mp4",
< "method": "GET",
< "headers": {},
< "fileName": "5s.mp4"
< },
< {
< "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
< "method": "GET",
< "headers": {
< "User-Agent": "Custom-Downloader/1.0"
< }
< },
< {
< "url": "https://www.reddit.com/",
< "method": "GET",
< "fileName": "reddit.html"
< },
< {
< "url": "https://httpbin.org/bytes/2048",
< "method": "GET"
< },
< {
< "url": "https://www.youtube.com/",
< "method": "GET"
< },
< {
< "url": "https://file-examples.com/wp-content/storage/2017/02/file-sample_100kB.docx",
< "method": "GET"
< }
< ],
< "proxyConfig": {
< "useApifyProxy": false
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/dz_omar~universal-downloader/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'