$echo '{
< "beforeSnapshot": {
< "products": [
< {
< "id": 1001,
< "handle": "canvas-tote",
< "title": "Canvas Tote",
< "variants": [
< {
< "id": 2001,
< "title": "Natural",
< "sku": "TOTE-NAT",
< "available": true,
< "price": "24.00"
< },
< {
< "id": 2002,
< "title": "Black",
< "sku": "TOTE-BLK",
< "available": true,
< "price": "24.00"
< }
< ]
< },
< {
< "id": 1002,
< "handle": "ceramic-mug",
< "title": "Ceramic Mug",
< "variants": [
< {
< "id": 2003,
< "title": "White",
< "sku": "MUG-WHT",
< "available": false,
< "price": "14.00"
< },
< {
< "id": 2004,
< "title": "Blue",
< "sku": "MUG-BLU",
< "available": true,
< "price": "14.00"
< }
< ]
< },
< {
< "id": 1003,
< "handle": "notebook",
< "title": "Notebook",
< "variants": [
< {
< "id": 2005,
< "title": "A5",
< "sku": "NB-A5",
< "available": true,
< "price": "9.00"
< }
< ]
< }
< ]
< },
< "afterSnapshot": {
< "products": [
< {
< "id": 1001,
< "handle": "canvas-tote",
< "title": "Canvas Tote",
< "variants": [
< {
< "id": 2001,
< "title": "Natural",
< "sku": "TOTE-NAT",
< "available": false,
< "price": "24.00"
< },
< {
< "id": 2002,
< "title": "Black",
< "sku": "TOTE-BLK",
< "available": true,
< "price": "24.00"
< }
< ]
< },
< {
< "id": 1002,
< "handle": "ceramic-mug",
< "title": "Ceramic Mug",
< "variants": [
< {
< "id": 2003,
< "title": "White",
< "sku": "MUG-WHT",
< "available": true,
< "price": "15.00"
< },
< {
< "id": 2004,
< "title": "Blue",
< "sku": "MUG-BLU",
< "available": false,
< "price": "14.00"
< }
< ]
< },
< {
< "id": 1003,
< "handle": "notebook",
< "title": "Notebook",
< "variants": [
< {
< "id": 2005,
< "title": "A5",
< "sku": "NB-A5",
< "available": false,
< "price": "9.00"
< },
< {
< "id": 2006,
< "title": "A6",
< "sku": "NB-A6",
< "available": false,
< "price": "7.00"
< }
< ]
< }
< ]
< }
<}' |
<apify call practical_ai_lab_jp/pal-shopify-variant-availability-trends --silent --output-dataset