$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< {
< "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
< }
< ],
< "sort": "new",
< "maxItems": 10,
< "maxPostCount": 10,
< "maxComments": 10,
< "maxCommunitiesCount": 2,
< "maxUserCount": 2,
< "scrollTimeout": 40,
< "proxy": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/trudax~reddit-scraper-lite/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'