{
  "name": "Idealo price tracker \u2192 Google Sheets",
  "flow": [
    {
      "id": 1,
      "module": "cron:Cron",
      "version": 1,
      "parameters": {},
      "mapper": {
        "cron": "0 8 * * *",
        "timezone": "Europe/Bucharest"
      },
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Every day at 08:00"
        }
      }
    },
    {
      "id": 2,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {
        "handleErrors": true,
        "useNewZLibDeCompress": true
      },
      "mapper": {
        "url": "https://api.apify.com/v2/acts/stippled_starfish~idealo-de/run-sync-get-dataset-items?build=latest&timeout=180",
        "serializeUrl": false,
        "method": "post",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer {{APIFY_TOKEN}}"
          },
          {
            "name": "Content-Type",
            "value": "application/json"
          }
        ],
        "qs": [],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\"eans\": [\"0195949034572\", \"0195950543650\"], \"searchQueries\": [\"airpods pro 2\"], \"country\": \"de\", \"compareCountries\": [\"at\"], \"maxProductsPerSearch\": 1, \"maxItems\": 5, \"outputFormat\": \"products\", \"proxyConfiguration\": {\"useApifyProxy\": false}}",
        "parseResponse": true,
        "authUser": "",
        "authPass": "",
        "timeout": "180",
        "shareCookies": false,
        "ca": "",
        "rejectUnauthorized": true,
        "followRedirect": true,
        "useQuerystring": false,
        "gzip": true,
        "useMtls": false,
        "followAllRedirects": false
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "Run Idealo actor"
        },
        "restore": {},
        "expect": [
          {
            "name": "url",
            "type": "url",
            "label": "URL",
            "required": true
          },
          {
            "name": "method",
            "type": "select",
            "label": "Method",
            "required": true
          },
          {
            "name": "headers",
            "type": "array",
            "label": "Headers"
          },
          {
            "name": "parseResponse",
            "type": "boolean",
            "label": "Parse response",
            "required": true
          }
        ]
      }
    },
    {
      "id": 3,
      "module": "builtin:BasicFeeder",
      "version": 1,
      "parameters": {},
      "mapper": {
        "array": "{{2}}"
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0,
          "name": "Iterate products"
        }
      }
    },
    {
      "id": 4,
      "module": "google-sheets:addRow",
      "version": 2,
      "parameters": {
        "__IMTCONN__": "YOUR_GOOGLE_CONNECTION_ID"
      },
      "mapper": {
        "mode": "select",
        "spreadsheetId": "YOUR_GOOGLE_SHEET_ID",
        "sheetId": "Products",
        "includesHeaders": true,
        "insertDataOption": "INSERT_ROWS",
        "valueInputOption": "USER_ENTERED",
        "values": {
          "0": "{{3.title}}",
          "1": "{{3.gtin}}",
          "2": "{{3.brand}}",
          "3": "{{3.lowestPrice}}",
          "4": "{{3.lowestTotalPrice}}",
          "5": "{{3.currency}}",
          "6": "{{3.cheapestShop.shopName}}",
          "7": "{{3.offerCount}}",
          "8": "{{upper(3.country)}}",
          "9": "{{3.productUrl}}",
          "10": "{{formatDate(3.scrapedAt; \"YYYY-MM-DD HH:mm:ss\"; \"Europe/Bucharest\")}}"
        }
      },
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0,
          "name": "Add a row"
        },
        "restore": {
          "expect": [
            {
              "name": "spreadsheetId",
              "label": "Spreadsheet",
              "type": "select"
            },
            {
              "name": "sheetId",
              "label": "Sheet",
              "type": "select"
            }
          ]
        }
      },
      "filter": {
        "name": "Skip not_found rows",
        "conditions": [
          [
            {
              "a": "{{3.type}}",
              "b": "not_found",
              "o": "text:notequal"
            }
          ]
        ]
      }
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "zone": "eu1.make.com",
    "notes": "Replace {{APIFY_TOKEN}} with a Make connection or a secret, never a raw token in the blueprint. Replace YOUR_GOOGLE_SHEET_ID and YOUR_GOOGLE_CONNECTION_ID after import. Dates are converted to Europe/Bucharest with formatDate. Country is uppercased. Rows with type=not_found are filtered out before Google Sheets."
  }
}
