$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "pain1",
< "title": "battery life complaint",
< "mentions": 3400,
< "complaintRate": 68,
< "purchaseIntentPct": 44,
< "urgencyPct": 73,
< "featureRequestRate": 51
< },
< {
< "id": "pain2",
< "title": "color request",
< "mentions": 820,
< "complaintRate": 12,
< "purchaseIntentPct": 18,
< "urgencyPct": 15,
< "featureRequestRate": 31
< }
< ],
< "previousItems": [
< {
< "id": "pain1",
< "title": "battery life complaint",
< "mentions": 1900,
< "complaintRate": 54,
< "purchaseIntentPct": 30,
< "urgencyPct": 52,
< "featureRequestRate": 38
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~youtube-audience-intent-comment-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'