$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "enableSearchLawyers": true,
< "searchTasks": [
< {
< "practiceArea": "personal injury",
< "state": "Florida",
< "city": "Miami",
< "maxResults": 10
< },
< {
< "practiceArea": "criminal defense",
< "state": "New York",
< "maxResults": 10
< }
< ],
< "searchMaxResultsPerTask": 10,
< "searchDepth": 20,
< "firmSearchTasks": [
< {
< "practiceArea": "personal injury",
< "state": "Texas",
< "city": "Houston",
< "maxResults": 10
< }
< ],
< "firmSearchMaxResultsPerTask": 10,
< "firmSearchDepth": 10,
< "enableLeadDetails": true,
< "maxItems": 10000,
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~findlaw-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'