$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< {
< "url": "https://news.ycombinator.com/front"
< },
< {
< "url": "https://news.ycombinator.com/show"
< },
< {
< "url": "https://news.ycombinator.com/jobs"
< },
< {
< "url": "https://news.ycombinator.com"
< },
< {
< "url": "https://news.ycombinator.com/item?id=26566373"
< }
< ],
< "maxItems": 50,
< "endPage": 1,
< "extendOutputFunction": "($) => { return {} }",
< "proxy": {
< "useApifyProxy": true
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/epctex~hackernews-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'