$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "enableProSearch": true,
< "searchTasks": [
< {
< "category": "roofing",
< "location": "Austin, TX",
< "maxResults": 10
< }
< ],
< "maxResultsPerTask": 10,
< "maxPagesPerTask": 5,
< "enableProfileDetails": false,
< "enableReviews": false,
< "maxReviewsPerBusiness": 10,
< "enableLeadDetails": true,
< "enableScrapeByUrl": false,
< "scrapeUrls": [],
< "maxItems": 10000,
< "concurrency": 6,
< "delayBetweenRequestsMs": 250,
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~angi-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'