$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "listings": [
< {
< "subreddit": "entrepreneur",
< "sort": "hot",
< "timeframe": "week",
< "maxPosts": 25
< },
< {
< "subreddit": "startups",
< "sort": "hot",
< "timeframe": "week",
< "maxPosts": 25
< }
< ],
< "searchTerms": [
< "saas",
< "startup"
< ],
< "searchTargets": [
< {
< "query": "startup marketing",
< "searchSort": "relevance",
< "timeframe": "week",
< "maxResults": 25
< },
< {
< "query": "saas pricing",
< "searchSort": "new",
< "timeframe": "week",
< "maxResults": 25
< }
< ],
< "domainTargets": [
< {
< "domain": "github.com",
< "sort": "hot",
< "timeframe": "week",
< "maxResults": 100
< },
< {
< "domain": "medium.com",
< "sort": "new",
< "timeframe": "week",
< "maxResults": 50
< }
< ],
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/spry_wholemeal~reddit-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'