$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "snapshots": [
< {
< "snapshotDate": "2026-10-01",
< "channel": "merchant-feed",
< "rows": [
< {
< "sku": "TSHIRT-RED-M",
< "rule": "invalid_gtin",
< "severity": "error",
< "attribute": "gtin",
< "message": "GTIN checksum is invalid"
< },
< {
< "sku": "MUG-BLUE",
< "rule": "image_too_small",
< "severity": "warning",
< "attribute": "image_link",
< "message": "Image below minimum size"
< }
< ]
< },
< {
< "snapshotDate": "2026-10-08",
< "channel": "merchant-feed",
< "csv": "sku,rule,severity,attribute,message\nTSHIRT-RED-M,invalid_gtin,error,gtin,GTIN checksum is invalid\nHAT-GREEN,price_mismatch,error,price,Price differs from landing page\nCAP-BLACK,missing_brand,error,brand,Brand is required\n"
< },
< {
< "snapshotDate": "2026-10-15",
< "channel": "merchant-feed",
< "csv": "sku,rule,severity,attribute,message\nTSHIRT-RED-M,invalid_gtin,error,gtin,GTIN checksum is invalid\nHAT-GREEN,price_mismatch,error,price,Price differs from landing page\nHAT-GREEN,missing_brand,error,brand,Brand is required\nSOCK-WHITE,title_too_long,warning,title,Title exceeds 150 characters\n"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-shopify-marketplace-listing-error-trends/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'