Skip to main content
This notebook goes over how to use a self hosted SearxNG search API to search the web. You can check this link for more informations about Searx API parameters.
For some engines, if a direct answer is available the warpper will print the answer instead of the full list of search results. You can use the results method of the wrapper if you want to obtain all the results.

Custom parameters

SearxNG supports 135 search engines. You can also customize the Searx wrapper with arbitrary named parameters that will be passed to the Searx search API . In the below example we will making a more interesting use of custom search parameters from searx search api. In this example we will be using the engines parameters to query wikipedia
Passing other Searx parameters for searx like language

Obtaining results with metadata

In this example we will be looking for scientific paper using the categories parameter and limiting the results to a time_range (not all engines support the time range option). We also would like to obtain the results in a structured way including metadata. For this we will be using the results method of the wrapper.
Get papers from arxiv
In this example we query for large language models under the it category. We then filter the results that come from github.
We could also directly query for results from github and other source forges.

Connect these docs to Claude, VSCode, and more via MCP for real-time answers.