Skip to main content

Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI into database

Workflow preview

Workflow preview
100%
Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI into database preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow pulls news articles from NewsAPI , Mediastack , and CurrentsAPI on a scheduled basis. Each provider’s results are normalized into a consistent schema, then written into your database ...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.splitout, n8n-nodes-base.set, n8n-nodes-base.nocodb, n8n-nodes-base.httprequest, n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Joel Gamble.

Original n8n.io source

1.1 Workflow description

Title
Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI into database
Workflow name
Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI into database

This workflow pulls news articles from NewsAPI, Mediastack, and CurrentsAPI on a scheduled basis.

Each provider’s results are normalized into a consistent schema, then written into your database (NocoDB by default).
Use case: automated aggregation of categorized news for content pipelines, research agents, or editorial queues.

What You Must Update Before Running

1. API Keys

Replace all placeholder keys:

  • call newsapi.org - Top Headlines → update API_KEY in URL
  • call newsapi.org - categories → update API_KEY
  • call mediastack → update "ACCESS_KEY" in JSON
  • call currentsapi → update "API_KEY" param
2. Database Connection

Workflow uses NocoDB to store results.

You must:

  • Update the NocoDB API Token credential to your own
  • Ensure your table includes the fields used in the create operations
    (source_category, title, summary, author, sources, content, images, publisher_date, etc.)

If you prefer Google Sheets, Airtable, or another DB:

  • Replace each NocoDB node with your equivalent “create row” operation
  • The Set nodes already provide all normalized fields you need
3. Scheduling

All schedulers are disabled by default.
Enable the following so the workflow runs automatically:

  • NewsAPI – Top Headlines
  • NewsAPI – Categories
  • Mediastack
  • CurrentsAPI

You may change the run times, but all four must be scheduled for the workflow to function as designed.

What You Can Configure

1. Categories

Defined in:

  • newsapi.org categories
  • mediastack categories

Edit these arrays to pull only the categories you care about or to match your API plan limits.

2. Article Limits

Adjust article_limit in:

  • newsapi.org categories
  • mediastack categories
  • currentsapi config

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Split Out 1

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 5 - Split Out 2

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 6 - Split Out 3

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 7 - Set Mediastack

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Add Mediastack item

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 9 - Add NewsAPI item

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 10 - call mediastack

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - call currentsapi

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - currentsapi config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - MediaStack

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 14 - CurrentsAPI

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 15 - call newsapi.org - Top Headlines

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Set CurrentsAPI

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - NewsAPI - Top Headlines

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 18 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 20 - Add NewsAPI item1

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 21 - mediastack categories

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - newsapi.org categories

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - Itemize Newsapi Categories

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - Itemize Mediastack Categories

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI into database
Complexity advanced
Nodes 34
Categories Market Research
Author Joel Gamble
Published 07 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11572/11572.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Aggregate news articles from NewsAPI, Mediastack & CurrentsAPI into database do?

This workflow pulls news articles from NewsAPI , Mediastack , and CurrentsAPI on a scheduled basis. Each provider’s results are normalized into a consistent schema, then written into your database ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.