search_api.rst 2.3KB

12345678910111213141516171819202122232425262728293031
  1. Search API
  2. ==========
  3. 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. Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
  5. .. code:: sh
  6. GET /
  7. .. code:: sh
  8. GET /search
  9. Parameters
  10. ``````````
  11. +------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
  12. | Name | Description | |
  13. +==================+====================================================================================================+=============================+
  14. | ``q`` | The search query, see :doc:`/user/search_syntax` | required |
  15. +------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
  16. | ``categories`` | Comma separated list, specifies the active search categories | optional |
  17. +------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
  18. | ``engines`` | Comma separated list, specifies the active search engines | optional |
  19. +------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
  20. | ``lang`` | Code of the language | optional (default: ``all``) |
  21. +------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
  22. | ``pageno`` | Search page number | optional (default: ``1``) |
  23. +------------------+----------------------------------------------------------------------------------------------------+-----------------------------+