$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "previous": {
< "capturedAt": "2026-10-01T00:00:00Z",
< "sourceRef": "DemoBefore",
< "metricBasis": "PUBLIC_POST_COUNTERS",
< "items": [
< {
< "shortCode": "DemoReel1",
< "ownerUsername": "demo_creator",
< "type": "Reel",
< "likesCount": 100,
< "commentsCount": 10,
< "videoViewCount": 1000
< },
< {
< "shortCode": "HiddenLikes",
< "ownerUsername": "demo_creator",
< "type": "Image",
< "likesCount": -1,
< "commentsCount": 0,
< "videoViewCount": null
< },
< {
< "shortCode": "Decreased",
< "ownerUsername": "demo_creator",
< "type": "Image",
< "likesCount": 10,
< "commentsCount": 1,
< "videoViewCount": null
< },
< {
< "shortCode": "PreviousOnly",
< "ownerUsername": "demo_creator",
< "type": "Sidecar",
< "likesCount": 20,
< "commentsCount": 2,
< "videoViewCount": null
< }
< ]
< },
< "current": {
< "capturedAt": "2026-10-02T00:00:00Z",
< "sourceRef": "DemoAfter",
< "metricBasis": "PUBLIC_POST_COUNTERS",
< "items": [
< {
< "shortCode": "DemoReel1",
< "ownerUsername": "demo_creator",
< "type": "Reel",
< "likesCount": 160,
< "commentsCount": 18,
< "videoViewCount": 1450
< },
< {
< "shortCode": "HiddenLikes",
< "ownerUsername": "demo_creator",
< "type": "Image",
< "likesCount": null,
< "commentsCount": 2,
< "videoViewCount": -1
< },
< {
< "shortCode": "Decreased",
< "ownerUsername": "demo_creator",
< "type": "Image",
< "likesCount": 8,
< "commentsCount": 1,
< "videoViewCount": null
< },
< {
< "shortCode": "CurrentOnly",
< "ownerUsername": "demo_creator",
< "type": "Video",
< "likesCount": 5,
< "commentsCount": 0,
< "videoViewCount": 25
< }
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/bread-kim~instagram-post-growth-delta/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'