SearXNG Tool node
The SearXNG Tool node allows you to integrate search capabilities into your workflows using SearXNG. SearXNG aggregates results from multiple search engines without tracking you.
On this page, you'll find the node options for the SearXNG Tool node, and links to more resources.
Credentials: You can find authentication information for this node here.
Node Options
- Number of Results: The number of results to retrieve. The default is 10.
- Page Number: The page number of the search results to retrieve. The default is 1.
- Language: A two-letter language code (opens in a new tab) to filter search results by language. For example:
enfor English,frfor French. The default isen. - Safe Search: Enables or disables filtering explicit content in the search results. Can be None, Moderate, or Strict. The default is None.
Running a SearXNG instance
This node requires running the SearXNG service on the same network as your n8n instance. Ensure your n8n instance has network access to the SearXNG service.
This node requires results in JSON format, which isn't enabled in the default SearXNG configuration. To enable JSON output, add json to the search.formats section of your SearXNG instance's settings.yml file:
search:
# options available for formats: [html, csv, json, rss]
formats:
- html
- jsonIf the formats section isn't there, add it. The exact location of the settings.yml file depends on how you installed SearXNG. You can find more by visiting the SearXNG configuration documentation (opens in a new tab).
The quality and availability of search results depend on the configuration and health of the SearXNG instance you use.
Related resources
Refer to SearXNG's documentation (opens in a new tab) for more information about the service. You can also view LangChain's documentation on their SearXNG integration (opens in a new tab).