$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "s1",
< "query": "best crm software",
< "position": 1,
< "title": "Best CRM Software",
< "url": "https://competitor.example/crm",
< "snippet": "Compare CRM platforms"
< },
< {
< "id": "s2",
< "query": "best crm software",
< "position": 4,
< "title": "Our CRM Guide",
< "url": "https://ourbrand.example/crm-guide",
< "snippet": "CRM buyer guide"
< }
< ],
< "previousItems": [
< {
< "id": "s2",
< "query": "best crm software",
< "position": 7,
< "title": "Our CRM Guide",
< "url": "https://ourbrand.example/crm-guide",
< "snippet": "CRM buyer guide"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~google-serp-competitive-share-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'