$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "records": [
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 5,
< "publishedAtDate": "2026-01-11T11:00:00Z",
< "text": "Friendly staff and delicious food."
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 4,
< "publishedAtDate": "2026-01-17T11:00:00Z",
< "text": "Great service and clean tables."
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 4,
< "publishedAtDate": "2026-02-03T11:00:00Z",
< "text": "Good atmosphere and reasonable price."
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 3,
< "publishedAtDate": "2026-02-09T11:00:00Z",
< "text": "The wait time is slow."
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 2,
< "publishedAtDate": "2026-03-10T11:00:00Z",
< "text": "Long wait and noisy seating."
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 1,
< "publishedAtDate": "2026-03-19T11:00:00Z",
< "text": "Service was rude and the price is expensive."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 4,
< "publishedAtDate": "2026-01-13T11:00:00Z",
< "text": "Fresh bread and friendly staff."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-01-23T11:00:00Z",
< "text": "Excellent value and delicious pastries."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 4,
< "publishedAtDate": "2026-02-08T11:00:00Z",
< "text": "Clean shop, parking is easy."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-02-14T11:00:00Z",
< "text": "Great fresh quality."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-03-05T11:00:00Z",
< "text": "Fantastic service and fair price."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 4,
< "publishedAtDate": "2026-03-20T11:00:00Z",
< "text": "Helpful staff and short wait."
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 2,
< "publishedAtDate": "2026-04-03T11:00:00Z",
< "text": "Long wait and slow service"
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 1,
< "publishedAtDate": "2026-04-09T11:00:00Z",
< "text": "Wait was long and staff were rude"
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 2,
< "publishedAtDate": "2026-04-15T11:00:00Z",
< "text": "Overpriced, delayed order"
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 1,
< "publishedAtDate": "2026-05-02T11:00:00Z",
< "text": "Dirty tables and poor service"
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 2,
< "publishedAtDate": "2026-05-11T11:00:00Z",
< "text": "Slow service and long wait"
< },
< {
< "placeId": "sample-place-001",
< "title": "Example Cafe",
< "stars": 1,
< "publishedAtDate": "2026-05-21T11:00:00Z",
< "text": "Staff were rude and the price was too expensive"
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-04-01T11:00:00Z",
< "text": "Friendly service and fresh bread",
< "responseFromOwnerText": "Thank you for the feedback."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-04-07T11:00:00Z",
< "text": "Excellent pastries and good value",
< "responseFromOwnerText": "Thank you for the feedback."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-04-12T11:00:00Z",
< "text": "Helpful staff and short wait",
< "responseFromOwnerText": "Thank you for the feedback."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 4,
< "publishedAtDate": "2026-05-03T11:00:00Z",
< "text": "Lovely quality and friendly service",
< "responseFromOwnerText": "Thank you for the feedback."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-05-13T11:00:00Z",
< "text": "Good parking and excellent bread",
< "responseFromOwnerText": "Thank you for the feedback."
< },
< {
< "placeId": "sample-place-002",
< "title": "Example Bakery",
< "stars": 5,
< "publishedAtDate": "2026-05-18T11:00:00Z",
< "text": "Nice atmosphere and fresh pastries",
< "responseFromOwnerText": "Thank you for the feedback."
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-maps-reviews-sentiment-trends/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'