
Get Youtube videos from multiple @channels in one fast run
- runtime/youtube-channel
- Modified
- Users 47
- Runs 328
- Created by
John
Get the videos id, title and links from a Youtube page. Multiple Youtube urls in one fast run.
To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.
# Set API token
API_TOKEN=<YOUR_API_TOKEN>
# Prepare Actor input
cat > input.json <<'EOF'
{
"urls": [
"https://www.youtube.com/@yvessaintlaurent",
"https://www.youtube.com/@chanel"
]
}
EOF
# Run the Actor
curl "https://api.apify.com/v2/acts/runtime~youtube-channel/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'