$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "url",
< "videoUrls": [
< "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
< "https://youtu.be/dQw4w9WgXcQ",
< "https://m.youtube.com/watch?v=dQw4w9WgXcQ",
< "https://www.youtube.com/shorts/jNQXAC9IVRw",
< "https://www.youtube.com/live/IoL51xLkMSY",
< "https://www.youtube.com/embed/dQw4w9WgXcQ",
< "https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI",
< "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI",
< "https://www.youtube.com/@YouTube",
< "https://www.youtube.com/@YouTube/videos",
< "https://www.youtube.com/channel/UCBR8-60-B28hp2BmDPdntcQ",
< "https://www.youtube.com/user/YouTube",
< "https://www.youtube.com/c/YouTubeCreators",
< "https://www.youtube.com/results?search_query=python+tutorial"
< ],
< "searchQueries": [
< "python tutorial"
< ],
< "languages": [
< "en"
< ],
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ]
< },
< "incrementalMode": false,
< "emitUnchanged": false,
< "emitExpired": false,
< "ignoreFieldsForChanges": []
<}
<EOF
$curl "https://api.apify.com/v2/actors/abotapi~youtube-transcript-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'