News API integration (Data, Social). Imported from open-connector.
https://newsapi.org/v2/everything
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | optional | Keywords or phrases to search for in the article title and body. |
| from | string | optional | The oldest date or date-time allowed for articles in the result set. |
| to | string | optional | The newest date or date-time allowed for articles in the result set. |
| sortBy | string | optional | The order used to sort article results. |
| sources | string | optional | A comma-separated list of source identifiers to include. |
| domains | string | optional | A comma-separated list of domains to include. |
| excludeDomains | string | optional | A comma-separated list of domains to exclude. |
| language | string | optional | The ISO 639-1 language code used by the request. |
| qInTitle | string | optional | Keywords or phrases to search for only in article titles. |
| pageSize | integer | optional | The number of results to return per page. |
| page | integer | optional | The page number to return. |
/v2/top-headlines
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | optional | Keywords or phrases to search for in the article title and body. |
| country | string | optional | The country code to retrieve headlines for. |
| category | string | optional | The news category filter. |
| sources | string | optional | A comma-separated list of source identifiers to include. |
| pageSize | integer | optional | The number of results to return per page. |
| page | integer | optional | The page number to return. |
/v2/top-headlines/sources
| Param | Type | Required | Description |
|---|---|---|---|
| category | string | optional | The source category filter. |
| language | string | optional | The ISO 639-1 language code used by the source listing request. |
| country | string | optional | The country code to retrieve sources for. |
/v2/top-headlines
| Param | Type | Required | Description |
|---|---|---|---|
| source | string | required | The legacy single-source identifier. |
| sortBy | string | optional | The legacy v1 sort order requested by the caller. |