123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- Search API
- ==========
-
- The search supports both ``GET`` and ``POST``.
-
- Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
-
-
- ``GET /``
-
- ``GET /search``
-
- Parameters
- ~~~~~~~~~~
-
- .. code:: sh
-
- q
-
- The search query. This string is passed to external search services.
- Thus, searx supports syntax of each search service. For example, ``site:github.com searx`` is a valid
- query for Google. However, if simply the query above is passed to any search engine which does not filter its
- results based on this syntax, you might not get the results you wanted.
-
-
- See more at :doc:`/user/search_syntax`
-
- Required.
-
- .. code:: sh
-
- categories
-
- Comma separated list, specifies the active search categories
-
- Optional.
-
- .. code:: sh
-
- engines
-
- Comma separated list, specifies the active search engines.
-
- Optional.
-
- .. code:: sh
-
- lang
-
- Code of the language.
-
- Optional.
-
- Default: ``all``
-
- .. code:: sh
-
- pageno
-
- Search page number.
-
- Optional.
-
- Default: ``1``
-
- .. code:: sh
-
- time_range
-
- Time range of search for engines which support it. See if an engine supports time range search in the preferences page of an instance.
-
- Optional.
-
- Possible: ``day``, ``month``, ``year``
-
- .. code:: sh
-
- format
-
- Output format of results.
-
- Optional.
-
- Possible: ``json``, ``csv``, ``rss``
-
- .. code:: sh
-
- results_on_new_tab
-
- Open search results on new tab.
-
- Optional.
-
- Default: ``0``
-
- Possible: ``0``, ``1``
-
- .. code:: sh
-
- image_proxy
-
- Proxy image results through searx.
-
- Optional.
-
- Default: ``False``
-
- Possible: ``True``, ``False``
-
- .. code:: sh
-
- autocomplete
-
- Service which completes words as you type.
-
- Optional.
-
- Default: empty
-
- Possible: ``google``, ``dbpedia``, ``duckduckgo``, ``startpage``, ``wikipedia``
-
- .. code:: sh
-
- safesearch
-
- Filter search results of engines which support safe search. See if an engine supports safe search in the preferences page of an instance.
-
- Optional.
-
- Default: ``None``
-
- Possible: ``0``, ``1``, ``None``
-
- .. code:: sh
-
- theme
-
- Theme of instance.
-
- Optional.
-
- Default: ``oscar``
-
- Possible: ``oscar``, ``simple``, ``legacy``, ``pix-art``, ``courgette``
-
- Please note, available themes depend on an instance. It is possible that an instance administrator deleted, created or renamed themes on his/her instance. See the available options in the preferences page of the instance.
-
- .. code:: sh
-
- oscar-style
-
- Style of Oscar theme. It is only parsed if the theme of an instance is ``oscar``.
-
- Optional.
-
- Default: ``logicodev``
-
- Possible: ``pointhi``, ``logicodev``
-
- Please note, available styles depend on an instance. It is possible that an instance administrator deleted, created or renamed styles on his/her instance. See the available options in the preferences page of the instance.
-
- .. code:: sh
-
- enabled_plugins
-
- List of enabled plugins.
-
- Optional.
-
- Default: ``HTTPS_rewrite``, ``Self_Informations``, ``Search_on_category_select``, ``Tracker_URL_remover``
-
- Possible: ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``, ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``, ``Search_on_category_select``
-
- .. code:: sh
-
- disabled_plugins
-
- List of disabled plugins.
-
- Optional.
-
- Default: ``DOAI_rewrite``, ``Infinite_scroll``, ``Vim-like_hotkeys``
-
- Possible: ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``, ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``, ``Search_on_category_select``
-
- .. code:: sh
-
- enabled_engines
-
- List of enabled engines.
-
- Optional.
-
- Possible: all engines
-
- .. code:: sh
-
- disabled_engines
-
- List of disabled engines.
-
- Optional.
-
- Possible: all engines
|