$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< "https://www.youtube.com/results?search_query=never+gonna+give+you+up",
< "https://www.youtube.com/watch?v=xuCn8ux2gbs",
< "https://www.youtube.com/channel/UCsXVk37bltHxD1rDPwtNM8Q",
< "https://www.youtube.com/watch?v=kXYiU_JCYtU&list=PL6Lt9p1lIRZ311J9ZHuzkR5A3xesae2pk",
< "https://www.youtube.com/shorts/vVTa1_hm4n4",
< "https://www.youtube.com/results?search_query=recipes",
< "https://www.youtube.com/@nike/shorts"
< ],
< "youtubeHandles": [
< "@MrBeast"
< ],
< "keywords": [
< "pixel art"
< ],
< "uploadDate": "all",
< "duration": "all",
< "features": "all",
< "sort": "r",
< "maxItems": 1000,
< "customMapFunction": "(object) => { return {...object} }"
<}
<EOF
$curl "https://api.apify.com/v2/actors/apidojo~youtube-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'