$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "locations": [
< {
< "title": "Harbor Bean Coffee - Central Station",
< "address": "120 Market Street, Springfield, IL 62701",
< "phone": "(217) 555-0101",
< "website": "https://www.harborbean.example/",
< "openingHours": "Mon-Fri: 7 AM - 7 PM; Sat-Sun: 8 AM - 5 PM",
< "location": {
< "lat": 39.8001,
< "lng": -89.6435
< }
< },
< {
< "title": "Harbor Bean Coffee - Riverside",
< "address": "48 River Rd, Springfield, IL 62702",
< "phone": "217-555-0102",
< "website": "https://harborbean.example/locations/riverside",
< "openingHours": "Mon-Fri: 7 AM - 7 PM; Sat-Sun: 8 AM - 5 PM",
< "location": {
< "lat": 39.825,
< "lng": -89.62
< }
< },
< {
< "title": "Harbour Bean Cafe",
< "address": "300 Oak Avenue, Springfield, IL 62703",
< "phone": "(217) 555-0103",
< "website": "http://harborbean.example?utm_source=listing",
< "openingHours": "Mon-Fri: 07:00-19:00; Sat-Sun: 08:00-17:00",
< "location": {
< "lat": 39.77,
< "lng": -89.66
< }
< },
< {
< "title": "HARBOR BEAN COFFEE",
< "address": "120 Market St, Springfield, IL 62701",
< "phone": "(217) 555-0101",
< "website": "https://harborbean.example/",
< "openingHours": "Mon-Fri: 7 AM - 7 PM; Sat-Sun: 8 AM - 5 PM",
< "location": {
< "lat": 39.80012,
< "lng": -89.64352
< }
< },
< {
< "title": "Harbor Bean Coffee - Lakeside",
< "address": "9 Lake Drive, Springfield, IL",
< "phone": "217.555.0104",
< "website": "https://harborbean-shop.example/lakeside"
< },
< {
< "title": "Harbor Bean Coffee - Airport",
< "address": "1 Terminal Road, Springfield, IL 62707",
< "phone": "(217) 555-0105",
< "website": "https://harborbean.example/locations/airport",
< "openingHours": "Mon-Fri: 5 AM - 9 PM; Sat-Sun: 6 AM - 9 PM",
< "location": {
< "lat": 39.844,
< "lng": -89.677
< }
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-maps-chain-location-consistency/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'