$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "products": [
< {
< "id": "reference",
< "sku": "DEMO-1",
< "link": "https://shop.example/products/demo?variant=100",
< "price": "19.90 USD",
< "availability": "in_stock",
< "variant_id": "100",
< "product_form_id": "main",
< "target_country": "US",
< "html": "<script>var Shopify = Shopify || {};\nShopify.country = \"US\";</script><script type=\"application/ld+json\">{\"@type\": \"Product\", \"sku\": \"DEMO-1\", \"offers\": {\"@type\": \"Offer\", \"sku\": \"DEMO-1\", \"price\": \"19.90\", \"priceCurrency\": \"USD\", \"availability\": \"https://schema.org/InStock\", \"url\": \"https://shop.example/products/demo?variant=100\"}}</script><form id=\"main\"><input type=\"hidden\" name=\"id\" value=\"100\"></form>"
< },
< {
< "id": "wrong-price",
< "sku": "DEMO-1",
< "link": "https://shop.example/products/demo?variant=100",
< "price": "29.90 USD",
< "availability": "in_stock",
< "variant_id": "100",
< "product_form_id": "main",
< "target_country": "US",
< "html": "<script>var Shopify = Shopify || {};\nShopify.country = \"US\";</script><script type=\"application/ld+json\">{\"@type\": \"Product\", \"sku\": \"DEMO-1\", \"offers\": {\"@type\": \"Offer\", \"sku\": \"DEMO-1\", \"price\": \"19.90\", \"priceCurrency\": \"USD\", \"availability\": \"https://schema.org/InStock\", \"url\": \"https://shop.example/products/demo?variant=100\"}}</script><form id=\"main\"><input type=\"hidden\" name=\"id\" value=\"100\"></form>"
< },
< {
< "id": "other-country",
< "sku": "DEMO-1",
< "link": "https://shop.example/products/demo?variant=100",
< "price": "19.90 USD",
< "availability": "in_stock",
< "variant_id": "100",
< "product_form_id": "main",
< "target_country": "CA",
< "html": "<script>var Shopify = Shopify || {};\nShopify.country = \"US\";</script><script type=\"application/ld+json\">{\"@type\": \"Product\", \"sku\": \"DEMO-1\", \"offers\": {\"@type\": \"Offer\", \"sku\": \"DEMO-1\", \"price\": \"19.90\", \"priceCurrency\": \"USD\", \"availability\": \"https://schema.org/InStock\", \"url\": \"https://shop.example/products/demo?variant=100\"}}</script><form id=\"main\"><input type=\"hidden\" name=\"id\" value=\"100\"></form>"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/ysond~my-actor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'