$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< {
< "url": "https://github.com/explore"
< },
< {
< "url": "https://github.com/trending?since=daily"
< },
< {
< "url": "https://github.com/trending?since=weekly"
< },
< {
< "url": "https://github.com/trending?since=monthly"
< },
< {
< "url": "https://github.com/trending/python?since=weekly"
< },
< {
< "url": "https://github.com/trending/javascript?since=weekly"
< },
< {
< "url": "https://github.com/trending/typescript?since=weekly"
< },
< {
< "url": "https://github.com/trending/rust?since=weekly"
< },
< {
< "url": "https://github.com/trending/go?since=weekly"
< },
< {
< "url": "https://github.com/trending/java?since=weekly"
< }
< ],
< "maxItems": 500,
< "proxyConfiguration": {
< "useApifyProxy": true
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/samer-samaha~github-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'