{
  "name": "UK Gov Tenders & Procurement -> CSV / Google Sheets (Cost-Capped $0.25)",
  "nodes": [
    {
      "id": "99999999-9999-4999-8999-999999999999",
      "name": "Run manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {}
    },
    {
      "id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -320
      ],
      "parameters": {
        "content": "## Cost-Capped UK Gov Tenders Scraper\n- **Cost guard:** `maxTotalChargeUsd=0.25` + `maxItems: 25` ensures max spend $0.25 per run.\n- **Estimated cost per run:** ~$0.12505 (start $0.00005 + 25 × $0.005).\n- **Retry policy:** `retryOnFail: false` – no automatic retries to avoid unexpected charges.\n- **Auth setup:** Set environment variable `APIFY_TOKEN` in n8n. Never hardcode tokens!\n- **License:** UK Open Government Licence v3.0 (Cabinet Office Contracts Finder OCDS). Commercial reuse permitted with attribution; zero PII (contactPoint excluded). Keep `attribution` column.\n- **Export CSV:** Convert to CSV node is already connected. Alternatively, connect Google Sheets node directly to HTTP Request node's JSON output.\n- **RapidAPI note:** No separate RapidAPI listing yet, but direct sync REST API & Apify MCP Server supported via Apify Store.\n- **Actor store:** https://apify.com/perceptive_city_af7/uk-gov-tenders-scraper",
        "width": 820,
        "height": 260,
        "color": 4
      }
    },
    {
      "id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
      "name": "Fetch UK Gov Tenders (Apify)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "retryOnFail": false,
      "position": [
        280,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/txnvyTckeQx4hVBc6/run-sync-get-dataset-items?maxTotalChargeUsd=0.25",
        "authentication": "none",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{$env.APIFY_TOKEN}}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "format",
              "value": "json"
            },
            {
              "name": "clean",
              "value": "true"
            },
            {
              "name": "timeout",
              "value": "60"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"keyword\":\"software\",\"stages\":\"tender\",\"minValue\":50000,\"maxItems\":25}",
        "options": {
          "timeout": 90000
        }
      }
    },
    {
      "id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
      "name": "Convert to CSV (Google Sheets Ready)",
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        560,
        0
      ],
      "parameters": {
        "operation": "csv",
        "binaryPropertyName": "data",
        "options": {
          "fileName": "uk-gov-tenders.csv",
          "headerRow": true
        }
      }
    }
  ],
  "connections": {
    "Run manually": {
      "main": [
        [
          {
            "node": "Fetch UK Gov Tenders (Apify)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch UK Gov Tenders (Apify)": {
      "main": [
        [
          {
            "node": "Convert to CSV (Google Sheets Ready)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
