$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "title": "Café Aurora",
< "stars": 5,
< "publishedAtDate": "2026-10-02",
< "text": "Best flat white in town and the staff is super friendly. A bit pricey though."
< },
< {
< "title": "Café Aurora",
< "stars": 2,
< "publishedAtDate": "2026-10-05",
< "text": "Waited 25 minutes for two coffees. Nobody apologized."
< },
< {
< "title": "Café Aurora",
< "stars": 4,
< "publishedAtDate": "2026-10-09",
< "text": "Lovely pastries, cozy place. Wish they had oat milk and more seats."
< },
< {
< "title": "Café Aurora",
< "stars": 1,
< "publishedAtDate": "2026-10-12",
< "text": "Card machine was broken and they only took cash. Very slow service."
< },
< {
< "title": "Café Aurora",
< "stars": 5,
< "publishedAtDate": "2026-10-15",
< "text": "Amazing croissants, friendly baristas, great wifi to work."
< },
< {
< "title": "Café Aurora",
< "stars": 3,
< "publishedAtDate": "2026-10-20",
< "text": "Good coffee but too noisy and the wait was long at lunch time."
< },
< {
< "title": "Café Aurora",
< "stars": 5,
< "publishedAtDate": "2026-10-22",
< "text": "El mejor café de la zona, el personal muy amable."
< },
< {
< "title": "Café Aurora",
< "stars": 2,
< "publishedAtDate": "2026-10-28",
< "text": "Prices went up again and the portions are smaller. Disappointed."
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/datatools-ai~review-insights-ai/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'