mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
36 lines
3.1 KiB
ReStructuredText
36 lines
3.1 KiB
ReStructuredText
Search API
|
|
==========
|
|
|
|
The search supports both ``GET`` and ``POST``.
|
|
|
|
Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
|
|
|
|
.. code:: sh
|
|
|
|
GET /
|
|
|
|
.. code:: sh
|
|
|
|
GET /search
|
|
|
|
Parameters
|
|
``````````
|
|
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
| Name | Description | |
|
|
+==================+====================================================================================================+==================================================+
|
|
| ``q`` | The search query, see :doc:`/user/search_syntax` | required |
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
| ``categories`` | Comma separated list, specifies the active search categories | optional |
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
| ``engines`` | Comma separated list, specifies the active search engines | optional |
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
| ``lang`` | Code of the language | optional (default: ``all``) |
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
| ``pageno`` | Search page number | optional (default: ``1``) |
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
| ``time_range`` | Time range of search | optional (possible: ``day``, ``month``, ``year``)|
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
| ``format`` | Output format of results | optional (possible: ``json``, ``csv``, ``rss``) |
|
|
+------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|