$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "search": "Los Angeles",
< "type": "all",
< "maxItems": 200,
< "maxLevel": 1,
< "proxyConfiguration": {
< "useApifyProxy": true
< },
< "maxRetries": 6,
< "handlePageTimeoutSecs": 3600,
< "extendOutputFunction": "async ({ data, item, customData, Apify }) => {\n return item;\n}",
< "extendScraperFunction": "async ({ label, page, request, customData, Apify }) => {\n if (label === 'SETUP') {\n // before crawler.run()\n } else if (label === 'GOTO') {\n // inside handleGotoFunction\n } else if (label === 'HANDLE') {\n // inside handlePageFunction\n } else if (label === 'FINISH') {\n // after crawler.run()\n }\n}",
< "customData": {}
<}
<EOF
$curl "https://api.apify.com/v2/acts/petr_cermak~zillow-api-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'