NewsAPI nodes
The 3 workflow nodes in NewsAPI: what each does, its inputs and outputs, and its settings.
Nodes marked Needs a connected account run only after you connect that service.
| Node | Does |
|---|---|
| Get Headlines | Reads data |
| Get Sources | Reads data |
| Search Articles | Transforms or writes data |
Get Headlines
Reads data · Needs a connected account · Type in the API: newsapi/getHeadlines
Get top news headlines by country, category, or keyword.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Category | One of: business, entertainment, general, health, science, sports, technology | — | — |
| Country Code | One of: US, GB, CA, AU, DE, FR, ES, IT, JP, BR, IN, MX, KR, NL, SE, CH, NO, DK, FI, AT, BE, IE, NZ, SG, HK, AE, SA, ZA, NG, KE | "us" | — |
| Fetch all | boolean | false | Fetch every matching record (same as Max results 0) |
| Max results | number | — | Rows to return; 0 = every matching record (auto-paginated) |
| Resume cursor | integer | — | Page number to resume from (resumeWith) |
| Results | number | 20 | — |
| Search Keyword | string | — | — |
| Sources | string | — | — |
Get Sources
Reads data · Needs a connected account · Type in the API: newsapi/getSources
List available news sources with category and language filters.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Category | One of: business, entertainment, general, health, science, sports, technology | — | — |
| Country Code | One of: US, GB, CA, AU, DE, FR, ES, IT, JP, BR, IN, MX, KR, NL, SE, CH, NO, DK, FI, AT, BE, IE, NZ, SG, HK, AE, SA, ZA, NG, KE | — | — |
| Language | One of: en, es, fr, de, it, pt, zh, ja, ko, ru, ar, nl, sv, no, da, fi, pl, tr, hi, th | — | e.g. en, fr, de |
Search Articles
Transforms or writes data · Needs a connected account · Type in the API: newsapi/searchArticles
Search across 80,000+ news sources by keyword, domain, date range.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Domains | string | — | Comma-separated (e.g. bbc.co.uk,cnn.com) |
| Fetch all | boolean | false | Fetch every matching record (same as Max results 0) |
| From Date | string | — | YYYY-MM-DD |
| Language | One of: en, es, fr, de, it, pt, zh, ja, ko, ru, ar | — | — |
| Max results | number | — | Rows to return; 0 = every matching record (auto-paginated) |
| Resume cursor | integer | — | Page number to resume from (resumeWith) |
| Results | number | 20 | — |
| Search Query | string | — | — |
| Sort By | One of: publishedAt, relevancy, popularity | "publishedAt" | — |
| Sources | string | — | — |
| To Date | string | — | — |
Was this page helpful?