# SearxSearchWrapper

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/searx_search/SearxSearchWrapper)

Wrapper for Searx API.

To use you need to provide the searx host by passing the named parameter
``searx_host`` or exporting the environment variable ``SEARX_HOST``.

In some situations you might want to disable SSL verification, for example
if you are running searx locally. You can do this by passing the named parameter
``unsecure``. You can also pass the host url scheme as ``http`` to disable SSL.

## Signature

```python
SearxSearchWrapper()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.utilities import SearxSearchWrapper
searx = SearxSearchWrapper(searx_host="http://localhost:8888")

**Example with SSL disabled:**

.. code-block:: python

from langchain_community.utilities import SearxSearchWrapper
# note the unsecure parameter is not needed if you pass the url scheme as
# http
searx = SearxSearchWrapper(searx_host="http://localhost:8888",
                                        unsecure=True)

## Extends

- `BaseModel`

## Properties

- `searx_host`
- `unsecure`
- `params`
- `headers`
- `engines`
- `categories`
- `query_suffix`
- `k`
- `aiosession`
- `model_config`

## Methods

- [`validate_params()`](https://reference.langchain.com/python/langchain-community/utilities/searx_search/SearxSearchWrapper/validate_params)
- [`run()`](https://reference.langchain.com/python/langchain-community/utilities/searx_search/SearxSearchWrapper/run)
- [`arun()`](https://reference.langchain.com/python/langchain-community/utilities/searx_search/SearxSearchWrapper/arun)
- [`results()`](https://reference.langchain.com/python/langchain-community/utilities/searx_search/SearxSearchWrapper/results)
- [`aresults()`](https://reference.langchain.com/python/langchain-community/utilities/searx_search/SearxSearchWrapper/aresults)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/utilities/searx_search.py#L175)