$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentRecords": [
< {
< "sku": "A-100",
< "title": "Acme Mug",
< "price": 15.99,
< "stock": 0,
< "tags": [
< "new",
< "sale"
< ],
< "scrapedAt": "2026-10-24T08:00:00Z"
< },
< {
< "sku": "B-200",
< "title": "Blue Pen",
< "price": 2.5,
< "stock": 40,
< "tags": [],
< "scrapedAt": "2026-10-24T08:00:00Z"
< },
< {
< "sku": "D-400",
< "title": "Desk Lamp",
< "price": 30,
< "stock": 7,
< "tags": [
< "eco"
< ],
< "scrapedAt": "2026-10-24T08:00:00Z"
< }
< ],
< "baselineRecords": [
< {
< "sku": "A-100",
< "title": "Acme Mug",
< "price": 19.99,
< "stock": 12,
< "tags": [
< "new"
< ],
< "scrapedAt": "2026-10-23T08:00:00Z"
< },
< {
< "sku": "B-200",
< "title": "Blue Pen",
< "price": 2.5,
< "stock": 40,
< "tags": [],
< "scrapedAt": "2026-10-23T08:00:00Z"
< },
< {
< "sku": "C-300",
< "title": "Cable",
< "price": 5,
< "stock": 9,
< "tags": [],
< "scrapedAt": "2026-10-23T08:00:00Z"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/hiredhandai~dataset-diff-explainer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'