$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "locationName": "Harbor Cafe",
< "rating": 1,
< "publishedAt": "2026-10-20",
< "text": "Long wait and the staff were rude."
< },
< {
< "locationName": "Harbor Cafe",
< "rating": 2,
< "publishedAt": "2026-10-18",
< "text": "Wrong order and slow service."
< },
< {
< "locationName": "Harbor Cafe",
< "rating": 5,
< "publishedAt": "2026-10-05",
< "text": "Great coffee."
< },
< {
< "locationName": "Harbor Cafe",
< "rating": 5,
< "publishedAt": "2026-09-10",
< "text": "Lovely place."
< },
< {
< "locationName": "Harbor Cafe",
< "rating": 4,
< "publishedAt": "2026-09-12",
< "text": "Good."
< },
< {
< "locationName": "Harbor Cafe",
< "rating": 5,
< "publishedAt": "2026-09-15",
< "text": "Friendly."
< },
< {
< "locationName": "Central Gym",
< "rating": 1,
< "publishedAt": "2026-10-22",
< "text": "Dirty showers and a bad smell."
< },
< {
< "locationName": "Central Gym",
< "rating": 2,
< "publishedAt": "2026-10-15",
< "text": "Locker room is filthy."
< },
< {
< "locationName": "Central Gym",
< "rating": 4,
< "publishedAt": "2026-10-10",
< "text": "Good equipment."
< },
< {
< "locationName": "Park Dental",
< "rating": 5,
< "publishedAt": "2026-10-21",
< "text": "Quick and clean."
< },
< {
< "locationName": "Park Dental",
< "rating": 4,
< "publishedAt": "2026-10-12",
< "text": "Fine visit."
< },
< {
< "locationName": "Park Dental",
< "rating": 2,
< "publishedAt": "2026-10-02",
< "text": "Billing mistake, charged twice."
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-maps-reviews-response-prioritizer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'