$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< "https://lobste.rs/domains/google.com",
< "https://lobste.rs/t/devops",
< "https://lobste.rs/u/lambda",
< "https://lobste.rs/active",
< "https://lobste.rs/recent",
< "https://lobste.rs/search?q=google&what=stories&order=newest"
< ],
< "maxItems": 20,
< "endPage": 1,
< "extendOutputFunction": "($) => { return {} }",
< "customMapFunction": "(object) => { return {...object} }",
< "proxy": {
< "useApifyProxy": true
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/epctex~lobsters-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'