{
  "name": "HelloFresh recipes under 700 kcal to Google Sheets every tuesday",
  "nodes": [
    {
      "parameters": {
        "content": "## HelloFresh recipes under 700 kcal to Google Sheets every tuesday\n\nEvery Tuesday, fetch HelloFresh recipes for your keywords under 700 kcal and 30 minutes, with ingredients, calories and steps, and append the rows to a Google Sheet.\n\n### Setup (3 minutes)\n1. **Apify token** - create a free account at apify.com and copy your API token (Settings > API & Integrations).\n   In the **Get HelloFresh recipes** node, create a *Header Auth* credential: name `Authorization`, value `Bearer YOUR_TOKEN`.\n2. **Google Sheets** node - connect your Google account and paste the URL of an empty sheet. Columns are created from the data automatically.\n3. Edit the JSON body of **Get HelloFresh recipes** with your own inputs, then activate the workflow.\n\n**Cost:** $2 per 1,000 recipes. `maxTotalChargeUsd` in the body is a hard cap per run.\nActor: https://apify.com/om_kh/hellofresh-recipes-scraper",
        "height": 460,
        "width": 460
      },
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -540,
        -160
      ],
      "id": "a4d04405-d8fc-4547-852f-0b2c8013280a"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                2
              ],
              "triggerAtHour": 8
            }
          ]
        }
      },
      "name": "Every Tuesday",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "id": "dbdc791a-426c-45ca-920a-bd8b44a552f5"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/om_kh~hellofresh-recipes-scraper/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"searchQueries\": [\n    \"salmon\",\n    \"pasta\"\n  ],\n  \"countries\": [\n    \"us\"\n  ],\n  \"maxCalories\": 700,\n  \"maxTotalTimeMinutes\": 30,\n  \"maxRecipesPerSearch\": 50,\n  \"maxTotalChargeUsd\": 0.5\n}",
        "options": {
          "timeout": 300000
        }
      },
      "name": "Get HelloFresh recipes",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        0
      ],
      "id": "244f2af0-418a-4f40-9cb5-6fd693981627"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "url",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0"
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {},
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      },
      "name": "Append to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        520,
        0
      ],
      "id": "45aa029e-273b-43e0-b469-d545aa97dde3"
    }
  ],
  "connections": {
    "Every Tuesday": {
      "main": [
        [
          {
            "node": "Get HelloFresh recipes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get HelloFresh recipes": {
      "main": [
        [
          {
            "node": "Append to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}