$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< {
< "url": "http://github.com"
< },
< {
< "url": "https://example.com"
< },
< {
< "url": "https://example.com/this-page-does-not-exist"
< },
< {
< "url": "https://www.iana.org/"
< },
< {
< "url": "https://www.wikipedia.org/"
< }
< ],
< "sourceMode": "urls",
< "redirectExpectations": [],
< "crawlDepth": 1,
< "maxPagesToCrawl": 10,
< "linkScope": "all",
< "includeAssets": false,
< "includeUrlPatterns": [],
< "excludeUrlPatterns": [],
< "respectRobotsTxt": true,
< "expectedStatus": [],
< "mustContainText": [],
< "mustNotContainText": [],
< "requiredHeaders": [],
< "warnAboveRedirects": 2,
< "slowThresholdMs": 3000,
< "maxResponseTimeMs": 0,
< "sslWarnDays": 30,
< "detectSoft404": false,
< "extractPageBasics": false,
< "includeSecurityHeaders": false,
< "includeResponseHeaders": false,
< "probeHttp2": false,
< "maxItems": 10,
< "outputFilter": "all",
< "trackHistory": true,
< "monitorScope": "default",
< "responseRegressionPercent": 100,
< "confirmChanges": true,
< "requestMethod": "HEAD_FALLBACK",
< "followRedirects": true,
< "maxRedirects": 10,
< "timeoutSecs": 20,
< "retries": 1,
< "userAgentType": "monitor",
< "userAgent": "",
< "customHeaders": [],
< "maxConcurrency": 10,
< "maxConcurrencyPerHost": 2,
< "delayPerHostMs": 250,
< "proxyConfiguration": {
< "useApifyProxy": false
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/getascraper~http-status-intelligence-monitor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'