Skip to content
Back to top
View this page
Edit this page

# Qwant

This engine uses the Qwant API (https://api.qwant.com/v3) to implement Qwant -Web, -News, -Images and -Videos. The API is undocumented but can be reverse engineered by reading the network log of https://www.qwant.com/ queries.

For Qwant’s web-search two alternatives are implemented:

- `web`: uses the `api_url` which returns a JSON structure

## Configuration

The engine has the following additional settings:

- `qwant_categ`

This implementation is used by different qwant engines in the settings.yml:

    - name: qwant
      qwant_categ: web
      ...
    - name: qwant news
      qwant_categ: news
      ...
    - name: qwant images
      qwant_categ: images
      ...
    - name: qwant videos
      qwant_categ: videos
      ...

## Implementations

searx.engines.qwant.max_page = 5

  5 pages maximum (`&p=5`): Trying to do more just results in an improper redirect

searx.engines.qwant.qwant_categ: str = None

  One of `web`, `news`, `images` or `videos`

searx.engines.qwant.api_url = 'https://api.qwant.com/v3/search/'

  URL of Qwant’s API (JSON)

searx.engines.qwant.request(query: str, params: OnlineParams) → None

  Qwant search request

searx.engines.qwant.response(resp: SXNG_Response) → EngineResults

  Parse results from Qwant’s API