$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "groupField": "location",
< "inlineReviews": [
< {
< "location": "Downtown",
< "rating": 5,
< "text": "The food was delicious and the coffee was fresh. Friendly staff and a cozy atmosphere. Prices felt fair for the quality."
< },
< {
< "location": "Downtown",
< "rating": 5,
< "text": "Great food and very friendly service. The wait was short and the room was spotless."
< },
< {
< "location": "Riverside",
< "rating": 1,
< "text": "Terrible service. We waited forever, the staff were rude, and the food arrived cold and bland."
< },
< {
< "location": "Riverside",
< "rating": 3,
< "text": "The food was good but the wait was slow and the music was too loud. Parking was difficult."
< },
< {
< "location": "Riverside",
< "rating": 5,
< "text": "Excellent quality and a beautiful, clean space. The staff were attentive and the dessert was amazing."
< },
< {
< "location": "Downtown",
< "rating": 2,
< "text": "Overpriced and disappointing. The portion was tiny, the bathroom was dirty, and the service was slow."
< }
< ],
< "maxReviews": 2000,
< "ratingField": "rating",
< "textField": "text"
<}
<EOF
$curl "https://api.apify.com/v2/actors/delta_tools~review-theme-analyzer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'