|
@@ -1,7 +1,7 @@
|
1
|
1
|
Search API
|
2
|
2
|
==========
|
3
|
3
|
|
4
|
|
-The search supports both ``GET`` and ``POST``. However, using ``GET`` the parameters of the request remain hidden. So it is advised to use ``GET`` for querying.
|
|
4
|
+The search supports both ``GET`` and ``POST``.
|
5
|
5
|
|
6
|
6
|
Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
|
7
|
7
|
|
|
@@ -16,16 +16,18 @@ Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
|
16
|
16
|
Parameters
|
17
|
17
|
``````````
|
18
|
18
|
|
19
|
|
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
|
20
|
|
-| Name | Description | |
|
21
|
|
-+==================+====================================================================================================+=============================+
|
22
|
|
-| ``q`` | The search query, see :doc:`/user/search_syntax` | required |
|
23
|
|
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
|
24
|
|
-| ``categories`` | Comma separated list, specifies the active search categories | optional |
|
25
|
|
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
|
26
|
|
-| ``engines`` | Comma separated list, specifies the active search engines | optional |
|
27
|
|
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
|
28
|
|
-| ``lang`` | Code of the language | optional (default: ``all``) |
|
29
|
|
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
|
30
|
|
-| ``pageno`` | Search page number | optional (default: ``1``) |
|
31
|
|
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
|
|
19
|
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
20
|
+| Name | Description | |
|
|
21
|
++==================+====================================================================================================+==================================================+
|
|
22
|
+| ``q`` | The search query, see :doc:`/user/search_syntax` | required |
|
|
23
|
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
24
|
+| ``categories`` | Comma separated list, specifies the active search categories | optional |
|
|
25
|
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
26
|
+| ``engines`` | Comma separated list, specifies the active search engines | optional |
|
|
27
|
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
28
|
+| ``lang`` | Code of the language | optional (default: ``all``) |
|
|
29
|
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
30
|
+| ``pageno`` | Search page number | optional (default: ``1``) |
|
|
31
|
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|
|
32
|
+| ``time_range`` | Time range of search | optional (possible: ``day``, ``month``, ``year``)|
|
|
33
|
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
|