$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "m1",
< "title": "Downtown Lisbon",
< "listingCount": 820,
< "occupancyPct": 78,
< "avgPrice": 142,
< "reviewCount": 18400,
< "demandScore": 88,
< "competitionScore": 57,
< "priceRoomPct": 22
< },
< {
< "id": "m2",
< "title": "Old Town saturated",
< "listingCount": 3200,
< "occupancyPct": 54,
< "avgPrice": 98,
< "reviewCount": 54000,
< "demandScore": 62,
< "competitionScore": 94,
< "priceRoomPct": 4
< }
< ],
< "previousItems": [
< {
< "id": "m1",
< "title": "Downtown Lisbon",
< "listingCount": 690,
< "occupancyPct": 72,
< "avgPrice": 136,
< "reviewCount": 14200,
< "demandScore": 80,
< "competitionScore": 61,
< "priceRoomPct": 16
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~airbnb-market-saturation-pricing-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'