$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "location": "Harbor Cafe - North",
< "text": "Long wait at the counter, but the coffee was great.",
< "stars": 3
< },
< {
< "location": "Harbor Cafe - North",
< "text": "Waited 30 minutes for a simple order. Slow service.",
< "stars": 2
< },
< {
< "location": "Harbor Cafe - North",
< "text": "Friendly staff and clean tables.",
< "stars": 5
< },
< {
< "location": "Harbor Cafe - North",
< "text": "Wrong order again and the line was very slow.",
< "stars": 2
< },
< {
< "location": "Harbor Cafe - North",
< "text": "Nice place, a bit pricey.",
< "stars": 4
< },
< {
< "location": "Harbor Cafe - South",
< "text": "Quick service and lovely staff.",
< "stars": 5
< },
< {
< "location": "Harbor Cafe - South",
< "text": "Tables were dirty and the restroom smelled.",
< "stars": 2
< },
< {
< "location": "Harbor Cafe - South",
< "text": "Great coffee, fair price.",
< "stars": 5
< },
< {
< "location": "Harbor Cafe - South",
< "text": "Very noisy inside, hard to talk.",
< "stars": 3
< },
< {
< "location": "Harbor Cafe - South",
< "text": "Dirty floor but fast and polite.",
< "stars": 3
< }
< ],
< "customTopics": {
< "loyalty_program": [
< "loyalty card",
< "points",
< "stamp card"
< ]
< },
< "minReviewsPerLocation": 5
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-maps-reviews-issue-matrix/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'