MediaWiki Search icon

MediaWiki Search

Search MediaWiki pages

Overview

This node performs searches on MediaWiki pages using specified keywords or phrases. It is useful for retrieving relevant wiki articles based on user-defined search terms, supporting partial matches, multiple words, and quoted phrases. Typical use cases include gathering information from Wikipedia or other MediaWiki-based sites for research, content generation, or data enrichment workflows.

For example, you can search for "quantum physics" to get a list of related wiki pages or look up "machine learning algorithms" to find relevant articles.

Properties

Name Meaning
Search Term Keywords or phrases to search for in MediaWiki pages. Supports partial matches, multiple words, and quoted phrases. Examples: "quantum physics", "machine learning algorithms"
Limit Maximum number of search results to return. Accepts values between 1 and 500. Default is 10.

Output

The node outputs an array of JSON objects, each corresponding to one input item processed. Each output object contains:

  • success: Boolean indicating if the search was successful.
  • searchTerm: The search term used for that execution.
  • limit: The maximum number of results requested.
  • response: The raw response from the MediaWiki API containing the search results.

If an error occurs and the node is configured to continue on failure, the output will contain:

  • success: false
  • error: The error message describing what went wrong.

No binary data is produced by this node.

Dependencies

  • Requires access to a MediaWiki API endpoint via credentials (an API key or token may be needed depending on the wiki).
  • The node uses an internal MediaWiki client library to perform the search requests.
  • No additional environment variables are explicitly required beyond the credential setup.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials can cause authentication failures.
    • Network connectivity problems may prevent reaching the MediaWiki API.
    • Exceeding the limit parameter's allowed range (less than 1 or greater than 500) will likely cause errors.
    • Malformed search terms might yield no results or unexpected responses.
  • Error messages:

    • Authentication errors typically indicate invalid or missing credentials; verify your API key/token.
    • Timeout or network errors suggest checking internet connection or API availability.
    • If the node throws an error about the limit value, ensure it is within the allowed range (1–500).

Links and References

Discussion