Skip to main content

News API

  • Bundle ID: news_api

Get the latest news and historical news from News API

Requisites

To use News API's services, you need to have the following credential information.

Required Credentials:

Plugins

Get top headlines

Get the top headlines

  • Plugin ID: news_api/get_top_headlines

Inputs

  • category (Optional): The category you want to get headlines for. Must be one of: 'business', 'entertainment', 'general', 'health', 'science', 'sports', 'technology'
  • count (Optional): The number of articles to return
  • country: The 2-letter ISO 3166-1 code of the country you want to get headlines for. Possible options: 'ae', 'ar', 'at', 'au', 'be', 'bg', 'br', 'ca', 'ch', 'cn', 'co', 'cu', 'cz', 'de', 'eg', 'fr', 'gb', 'gr', 'hk', 'hu', 'id', 'ie', 'il', 'in', 'it', 'jp', 'kr', 'lt', 'lv', 'ma', 'mx', 'my', 'ng', 'nl', 'no', 'nz', 'ph', 'pl', 'pt', 'rs', 'ru', 'sa', 'se', 'sg', 'si', 'sk', 'th', 'tr', 'tw', 'ua', 'us', 've', 'za'

Outputs

  • result: The search results in json string

Search news article

Search for news articles

  • Plugin ID: news_api/search_news_article

Inputs

  • count (Optional): The number of articles to return
  • from_date (Optional): The date and time for the oldest article allowed. This should be in ISO 8601 format (e.g. 2024-02-12)
  • query: The search query. Example: Apple Inc.
  • to_date (Optional): The date and time for the newest article allowed. This should be in ISO 8601 format (e.g. 2024-02-12)

Outputs

  • result: The search results in json string