$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "enableSearch": true,
< "searchTasks": [
< {
< "query": "coffee shops",
< "location": "Austin, TX",
< "placesPerQuery": 10
< },
< {
< "query": "pizza",
< "location": "Chicago, IL",
< "placesPerQuery": 10
< }
< ],
< "placesPerQuery": 10,
< "enableLeadDetails": false,
< "fetchPlaceDetails": true,
< "language": "en-US",
< "country": "us",
< "maxItems": 10000,
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~apple-maps-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'