News API
News API is a simple HTTP REST API for searching and retrieving live articles from all over the web. You can use it to search for headline news in specific countries, and to search for news articles using key words. For more information about News API go to News API.
In the context of Nintex Automation Cloud, News API is a connector Service used to define a connection required for associated actions and start events. Examples include Salesforce and Box. Method of integration to cloud services, business applications and content stores.. The News API connector is used to create connections for News API actions A tool for building the processes, logic, and direction within workflows.. Use News API actions to search for specific news links, and to retrieve top news headlines.
Create a News API connection
Note: Your browser-stored credentials are accessed to create connections. Either clear credentials from browser memory or make sure the stored credentials are for the intended environment.
Create a connection from the connections page or from the action configuration panel when configuring the action. For information about creating connections and assigning permissions, see Manage connections.
In the Add a new connection section, complete the fields as follows:
In this field |
Select or enter the following |
---|---|
Connection name | A name for your new connection |
API Key | Your News API API Key. Go to Register for API key if you don't have one. |
News API account requirements
- The account you use to create a connection for News API is the account that has access to the News API actions.
- Your News API API Key. Go to Register for API key if you don't have one.
- A paid subscription for News API.
Create a News API data source
Use the News API data source to create a drop-down list of News API news articles or top headlines retrieved by country in a form. For example, to allow users to select a specific news article in a form, add a drop-down list of news articles to the form using a Data lookup control A form control that allows users to select from a drop-down list of values that have been fetched from a third-party service.. The Data lookup control uses a News API - Get news data source to list the news articles available from the News API connection in the drop-down.
You can create a News API data source to:
- Get news: list all the news articles, or a filtered list of news articles, available from your News API account.
- Get top headlines by country: list all the news articles of a specified country available from your News API account.
Each data source is configured for a specific user. You can create as many data sources as you need.
To add a News API drop-down list to your form:
- Create your News API data source.
- Add a data lookup form control to your form and configure it to use your new data source.
See Data sources.
News API data source fields
When you create a News API data source, you can configure some additional fields to specify which blog authors, blog posts, or blogs the data source should retrieve.
To access the data source fields, in the Add data source section, select the News APIConnector and the Operation.
Operation |
Field or selection |
Description |
---|---|---|
Get news | Connection |
The connection to use for the data source. |
Search Filters: |
|
|
Paging |
|
|
Get top headlines by country | Connection | The connection to use for the data source. |
Search filters |
|
|
Paging |
|