{
  "name": "Official MLB Team, Schedule & Stat Line Scraper to n8n only",
  "nodes": [
    {
      "id": "c47dfa56-1045-4633-aa0c-a59af4877f43",
      "name": "Run by hand",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {}
    },
    {
      "id": "acfb3dc6-c7dd-465d-ae1d-5c8cec5f4ad3",
      "name": "Every day",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        200
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "notes": "Activate the workflow to run on this schedule."
    },
    {
      "id": "bacc79e2-4227-4b82-affe-c4b78fa21b47",
      "name": "Run Apify Actor",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        100
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/actors/dataspryva~official-mlb-team-schedule-and-stat-line-scraper/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"mode\": \"getPlayers\",\n  \"statGroup\": \"hitting\",\n  \"statType\": \"season\",\n  \"rosterType\": \"active\",\n  \"leagueId\": \"both\",\n  \"gameType\": \"R\",\n  \"leaderCategory\": \"homeRuns\",\n  \"referenceType\": \"venues\",\n  \"includeStats\": false,\n  \"includeTeamTotals\": false,\n  \"maxItems\": 3\n}",
        "options": {
          "timeout": 310000
        }
      },
      "notes": "Actor: dataspryva/official-mlb-team-schedule-and-stat-line-scraper. Select a Header Auth credential: name Authorization, value Bearer + your Apify token. Edit the JSON body to change the input.",
      "notesInFlow": false
    },
    {
      "id": "ee50e696-9816-4c65-ac14-01c0fec11f0b",
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -370
      ],
      "parameters": {
        "content": "## Official MLB Team, Schedule & Stat Line Scraper\n\nSource: [dataspryva/official-mlb-team-schedule-and-stat-line-scraper](https://apify.com/dataspryva/official-mlb-team-schedule-and-stat-line-scraper) on Apify.\n\n1. In **Run Apify Actor**, create a Header Auth credential: name `Authorization`, value `Bearer YOUR_APIFY_TOKEN` with your token.\n2. Click **Execute workflow**. Each record arrives as one n8n item.\n3. Edit the JSON body of **Run Apify Actor** to change the input.\n\nGenerated by recipeforagents.com. Validated, not executed: runs are billed to your Apify account.",
        "height": 340,
        "width": 460,
        "color": 6
      }
    }
  ],
  "connections": {
    "Run by hand": {
      "main": [
        [
          {
            "node": "Run Apify Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every day": {
      "main": [
        [
          {
            "node": "Run Apify Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}
