{
  "name": "Daily Data Fetcher",
  "nodes": [
    {
      "id": "f83f93c7-cb83-458e-8adf-120c191942f1",
      "name": "Daily Cron",
      "type": "n8n-nodes-base.cron",
      "parameters": {
        "cronExpression": "0 9 * * *"
      },
      "position": [
        100,
        300
      ],
      "typeVersion": 1
    },
    {
      "id": "4e91e003-943c-4098-b074-ea621403a86a",
      "name": "Fetch Daily Data",
      "type": "n8n-nodes-base.httpRequest",
      "parameters": {
        "url": "https://api.github.com/events",
        "httpMethod": "GET"
      },
      "position": [
        350,
        300
      ],
      "typeVersion": 1
    },
    {
      "id": "09299c49-10f4-4a8d-bcb5-26a5382f2a92",
      "name": "Filter Events",
      "type": "n8n-nodes-base.code",
      "parameters": {
        "jsCode": "\n// GitHub events'leri filtrele\nconst events = $input.first().json;\n\n// Sadece push event'lerini al\nconst pushEvents = events.filter(event => event.type === 'PushEvent');\n\n// \u0130lk 5 event'i al\nconst topEvents = pushEvents.slice(0, 5).map(event => ({\n    id: event.id,\n    repo: event.repo.name,\n    actor: event.actor.login,\n    created_at: event.created_at\n}));\n\nreturn [{\n    json: {\n        total_events: events.length,\n        push_events: pushEvents.length,\n        top_push_events: topEvents,\n        fetched_at: new Date().toISOString()\n    }\n}];\n                "
      },
      "position": [
        600,
        300
      ],
      "typeVersion": 1
    }
  ],
  "connections": {
    "Daily Cron": {
      "main": [
        [
          {
            "node": "Fetch Daily Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Daily Data": {
      "main": [
        [
          {
            "node": "Filter Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "createdAt": "2025-09-20T12:00:00.000Z",
  "updatedAt": "2025-09-20T12:00:00.000Z"
}