Skip to content

Wikipedia Node

The WikipediaNode facilitates querying Wikipedia’s vast database for information. Leveraging the Wikipedia REST API, it enables searches in multiple languages and returns a list of relevant articles based on the search query.


Inputs

  • Search: The search query term to find articles related to.
  • Language: The language in which to perform the search (e.g., ‘en’ for English, ‘es’ for Spanish).
  • Limit: The maximum number of results to return.

Outputs

  • Result: The search results from Wikipedia, including titles and URLs of relevant articles.
  • Length: The number of articles returned by the search.

Properties

Language: Set the default language for the search. This can be overridden by the input.

Search: Predefine a search term. This can be overridden by the input.

Limit: Set a default limit to the number of results. This can be overridden by the input.


Usage

To use the WikipediaNode, input a search query, select the desired language, and set a limit to the number of results. The node queries Wikipedia based on these parameters and outputs a list of related articles, including their titles and URLs. This node is useful for dynamically searching for information to be used within your graph.