{
  "name": "Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI into database",
  "nodes": [
    {
      "id": "318c5702-743d-4b7a-acc8-65d9fe05c0a7",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -560
      ],
      "parameters": {
        "width": 2192,
        "height": 320,
        "content": "## [Mediastack](https://www.mediastack.com)\n Free plan - 100 calls per month\n### Categories\n- General\n- Business\n- Entertainment\n- Health\n- Science\n- Sports\n- Technology"
      }
    },
    {
      "id": "c6fbb6a7-ada6-45ea-84d5-40c6b7d98290",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -224
      ],
      "parameters": {
        "width": 2192,
        "height": 336,
        "content": "## Newsapi.org - Top Headlines\nFree plan - 100 requests per day\n[NewsAPI.org](https://newsapi.org/) api returns the ~20 top-headlines which are then categorized according to the Minds at Large require"
      }
    },
    {
      "id": "62277a03-5d9f-407a-8734-fea264aaad9f",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -864
      ],
      "parameters": {
        "width": 2192,
        "height": 288,
        "content": "## [CurrentsAPI](https://currentsapi.services/en) - Latest News\nFree plan - 20 requests per day"
      }
    },
    {
      "id": "3fad0499-f68c-4566-8f7b-a3ce4ff49a36",
      "name": "Split Out 1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        336,
        -96
      ]
    },
    {
      "id": "ce0e14d1-6b8b-42ed-927d-6e42e233dff8",
      "name": "Split Out 2",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1008,
        -512
      ]
    },
    {
      "id": "1bb6f62b-b436-4261-8adf-39b47933d63c",
      "name": "Split Out 3",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        560,
        -752
      ]
    },
    {
      "id": "99f45ce9-62bd-4549-bfb9-e04cc7ac2f47",
      "name": "Set Mediastack",
      "type": "n8n-nodes-base.set",
      "position": [
        1232,
        -512
      ]
    },
    {
      "id": "24eda8b0-fe47-4bc4-9c83-b4c51ecea3b0",
      "name": "Add Mediastack item",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        1456,
        -512
      ]
    },
    {
      "id": "6b038163-deec-4d0b-b589-5ee70ec2dacd",
      "name": "Add NewsAPI item",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        784,
        -96
      ]
    },
    {
      "id": "25102ea2-0ff0-446a-ad6a-b0ee85163444",
      "name": "call mediastack",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        -512
      ]
    },
    {
      "id": "80a47f18-55bd-4b0c-9c7a-2b8594703c59",
      "name": "call currentsapi",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        336,
        -752
      ]
    },
    {
      "id": "d4f5d1e5-aa88-45d5-b332-ce6da5421113",
      "name": "currentsapi config",
      "type": "n8n-nodes-base.set",
      "position": [
        112,
        -752
      ]
    },
    {
      "id": "d1fe71c8-3d76-4319-b64d-84d1a41db0cf",
      "name": "MediaStack",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -112,
        -448
      ]
    },
    {
      "id": "f21c126b-17a1-4884-99d6-eb213622a3a8",
      "name": "CurrentsAPI",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -112,
        -752
      ]
    },
    {
      "id": "dc4a81ed-a2d9-4031-a7fa-39c8ea47dc52",
      "name": "call newsapi.org - Top Headlines",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        112,
        -96
      ]
    },
    {
      "id": "a62b3e53-94b6-4b40-b3e3-a169a2e911d4",
      "name": "Set CurrentsAPI",
      "type": "n8n-nodes-base.set",
      "position": [
        784,
        -752
      ]
    },
    {
      "id": "fb721491-850a-435d-bc6f-cffc384be9cc",
      "name": "NewsAPI - Top Headlines",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -112,
        -96
      ]
    },
    {
      "id": "3300641f-7448-4860-a3bd-4f955ba0361a",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        128
      ],
      "parameters": {
        "width": 2192,
        "height": 352,
        "content": "## Newsapi.org - Categories\nFree plan - 100 requests per day\n[NewsAPI.org](https://newsapi.org/) api returns the articles based on the array of categories set in the `newsapi.org categories` node.\n###"
      }
    },
    {
      "id": "9d5c0c75-81b4-4c45-8a6d-dc57397f672b",
      "name": "Split Out ",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1008,
        208
      ]
    },
    {
      "id": "d113ee33-a001-44e3-b425-51502f5b87c8",
      "name": "Add NewsAPI item1",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        1456,
        208
      ]
    },
    {
      "id": "7ceea6b6-8940-4479-98b5-bddd19a08971",
      "name": "mediastack categories",
      "type": "n8n-nodes-base.set",
      "position": [
        112,
        -448
      ]
    },
    {
      "id": "42a01918-e854-473c-bb02-a19addf6b182",
      "name": "newsapi.org categories",
      "type": "n8n-nodes-base.set",
      "position": [
        112,
        272
      ]
    },
    {
      "id": "296dd63c-442b-4bee-9920-988fd510a899",
      "name": "Itemize Newsapi Categories",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        272
      ]
    },
    {
      "id": "1fea3171-0131-44ed-a282-0fd54f4cbd1c",
      "name": "Itemize Mediastack Categories",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        -448
      ]
    },
    {
      "id": "19430d07-0532-4461-a247-0a05fdb33762",
      "name": "call newsapi.org - categories",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        208
      ]
    },
    {
      "id": "59135f3b-5dc6-48c0-afef-22eb1dc8fd2a",
      "name": "NewsAPI - Categories",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -112,
        272
      ]
    },
    {
      "id": "5654dacb-9871-4235-9eed-b3a2df8ba0a5",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1680,
        -448
      ]
    },
    {
      "id": "d98f5e3d-6e47-4aa8-8edf-63086422280d",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1680,
        272
      ]
    },
    {
      "id": "217c347d-1e29-41fb-8ea0-428ce66897cc",
      "name": "Loop Over NewsAPI",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        560,
        272
      ]
    },
    {
      "id": "213dd999-12f5-4810-824b-b54397bef2e3",
      "name": "Loop Over Mediastack",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        560,
        -448
      ]
    },
    {
      "id": "a6ecef60-aca4-4dab-bd0b-389b04d915a6",
      "name": "Set Newsapi.org top headlines",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        -96
      ]
    },
    {
      "id": "db2ef4b7-45b5-440b-a564-85cb80750880",
      "name": "Set Newsapi.org categories",
      "type": "n8n-nodes-base.set",
      "position": [
        1232,
        208
      ]
    },
    {
      "id": "aaeabf45-a6a1-477f-8676-d561936df278",
      "name": "Add CurrentsAPI item",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        1008,
        -752
      ]
    },
    {
      "id": "afd01e93-8383-4afe-8dd8-02af3242cb60",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -864
      ],
      "parameters": {
        "width": 464,
        "height": 1344,
        "content": "# News Aggregators\nThis workflow pulls news articles from **NewsAPI**, **Mediastack**, and **CurrentsAPI** on a scheduled basis.  \nEach provider’s results are normalized into a consistent schema, then"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Mediastack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Loop Over NewsAPI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MediaStack": {
      "main": [
        [
          {
            "node": "mediastack categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out ": {
      "main": [
        [
          {
            "node": "Set Newsapi.org categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CurrentsAPI": {
      "main": [
        [
          {
            "node": "currentsapi config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out 1": {
      "main": [
        [
          {
            "node": "Set Newsapi.org top headlines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out 2": {
      "main": [
        [
          {
            "node": "Set Mediastack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out 3": {
      "main": [
        [
          {
            "node": "Set CurrentsAPI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Mediastack": {
      "main": [
        [
          {
            "node": "Add Mediastack item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set CurrentsAPI": {
      "main": [
        [
          {
            "node": "Add CurrentsAPI item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "call mediastack": {
      "main": [
        [
          {
            "node": "Split Out 2",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Add NewsAPI item": {
      "main": [
        []
      ]
    },
    "call currentsapi": {
      "main": [
        [
          {
            "node": "Split Out 3",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Add NewsAPI item1": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over NewsAPI": {
      "main": [
        [],
        [
          {
            "node": "call newsapi.org - categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "currentsapi config": {
      "main": [
        [
          {
            "node": "call currentsapi",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Mediastack item": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Mediastack": {
      "main": [
        [],
        [
          {
            "node": "call mediastack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NewsAPI - Categories": {
      "main": [
        [
          {
            "node": "newsapi.org categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "mediastack categories": {
      "main": [
        [
          {
            "node": "Itemize Mediastack Categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "newsapi.org categories": {
      "main": [
        [
          {
            "node": "Itemize Newsapi Categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NewsAPI - Top Headlines": {
      "main": [
        [
          {
            "node": "call newsapi.org - Top Headlines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Itemize Newsapi Categories": {
      "main": [
        [
          {
            "node": "Loop Over NewsAPI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Newsapi.org categories": {
      "main": [
        [
          {
            "node": "Add NewsAPI item1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Itemize Mediastack Categories": {
      "main": [
        [
          {
            "node": "Loop Over Mediastack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Newsapi.org top headlines": {
      "main": [
        [
          {
            "node": "Add NewsAPI item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "call newsapi.org - categories": {
      "main": [
        [
          {
            "node": "Split Out ",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "call newsapi.org - Top Headlines": {
      "main": [
        [
          {
            "node": "Split Out 1",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  }
}