User Manual

Brave News Search

2/10/25
Brave News Search

The Brave News Search action allows users to access current and past news content using the Brave search engine's news search feature. Queries made with specified keywords return relevant news headlines, descriptions, and links. It is particularly preferred in applications focused on media, analysis, agenda tracking, and content production.

Technical Specifications

Search Process (Search Panel): The Brave News Search action lists news articles matching the provided keywords. The returned results typically contain multiple entries and can be used in list (Many) format.

Parameters:

  • settings (Object – required): Settings required for the Brave API. Brave settings defined via the Configuration Manager should be selected in this field.
  • query (String – required): The keyword or phrase to search for in the news. (E.g., “global economy,” “AI trends,” “election results”).
  • count (Int32 – required): Specifies the number of news items to return. If 0 is provided, no results are returned; the number must be at least 1 or greater.

Data Source Compatibility: Parameters can be defined as fixed, or they can be linked to dynamic sources such as Form Input, Current, Action Result, Method Input via the Symbol Picker.

Web & Mobile Support: The Brave News Search action works seamlessly on both web and mobile applications.

Brave News Search Application Steps

1. Defining the Action in UI Design

  • Open your Kuika project.
  • In the UI Design module, select the page where the news will be listed.
  • Add a Text Input (search box) and Button (e.g., “Search News”) element.
  • Click on the button and select the + ADD ACTION → Brave Search → Brave News Search action.

2. Configuring Parameters

  • settings: Select the Brave API setting you created in Configuration Manager.
  • query: Connect the search term entered by the user to the Text Input.
  • count: Specify the number of news items to return (e.g., 10).

Use Case: Fetching Current News

In a news app, the user wants to see current technology news by typing “technology”.

Steps:

  1. Add a Text Input element (e.g., ‘Keyword’).
  2. Add a “Search News” button.
  3. Define the OnClick → Brave News Search action.
  4. Connect the Query field to the Text Input element, set the count value to 10.
  5. Display the results in a Table element with the title, description, and link.

Brave News Search Advanced Customizations

  • Filter by Category: Search terms can be limited to specific categories (economy, sports, technology, etc.).
  • Date Range: Only versions of news articles within a specific date range can be listed.
  • Saving Results: Users can save news articles to their favorites or export them to a database.
  • Open with Link: The link field of the returned news articles can direct the user directly to the news source.

Technical Risks and Controls

  • query must not be empty. Since it is a mandatory parameter, no results will be returned if left blank.
  • count = 0 will return no results. A minimum value of 1 or greater must be entered.
  • settings must be configured correctly. The action will not work if the Brave News Search setting is not configured in Configuration Manager.
  • Result Format: Since the title, description, and URL fields in the returned results will be in JSON format, they must be linked correctly.
No items found.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar