search_api.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ==========
  2. Search API
  3. ==========
  4. The search supports both ``GET`` and ``POST``.
  5. Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
  6. ``GET /``
  7. ``GET /search``
  8. Parameters
  9. ==========
  10. ``q`` : required
  11. The search query. This string is passed to external search services. Thus,
  12. searx supports syntax of each search service. For example, ``site:github.com
  13. searx`` is a valid query for Google. However, if simply the query above is
  14. passed to any search engine which does not filter its results based on this
  15. syntax, you might not get the results you wanted.
  16. See more at :ref:`search-syntax`
  17. ``categories`` : optional
  18. Comma separated list, specifies the active search categories
  19. ``engines``: optional
  20. Comma separated list, specifies the active search engines.
  21. ``lang``: default ``all``
  22. Code of the language.
  23. ``pageno``: default ``1``
  24. Search page number.
  25. ``time_range``: optional
  26. [ ``day``, ``month``, ``year`` ]
  27. Time range of search for engines which support it. See if an engine supports
  28. time range search in the preferences page of an instance.
  29. ``format``: optional
  30. [ ``json``, ``csv``, ``rss`` ]
  31. Output format of results.
  32. ``results_on_new_tab``: default ``0``
  33. [ ``0``, ``1`` ]
  34. Open search results on new tab.
  35. ``image_proxy``: default ``False``
  36. [ ``True``, ``False`` ]
  37. Proxy image results through searx.
  38. ``autocomplete``: default *empty*
  39. [ ``google``, ``dbpedia``, ``duckduckgo``, ``startpage``, ``wikipedia`` ]
  40. Service which completes words as you type.
  41. ``safesearch``: default ``None``
  42. [ ``0``, ``1``, ``None`` ]
  43. Filter search results of engines which support safe search. See if an engine
  44. supports safe search in the preferences page of an instance.
  45. ``theme``: default ``oscar``
  46. [ ``oscar``, ``simple``, ``legacy``, ``pix-art``, ``courgette`` ]
  47. Theme of instance.
  48. Please note, available themes depend on an instance. It is possible that an
  49. instance administrator deleted, created or renamed themes on his/her instance.
  50. See the available options in the preferences page of the instance.
  51. ``oscar-style``: default ``logicodev``
  52. [ ``pointhi``, ``logicodev`` ]
  53. Style of Oscar theme. It is only parsed if the theme of an instance is
  54. ``oscar``.
  55. Please note, available styles depend on an instance. It is possible that an
  56. instance administrator deleted, created or renamed styles on his/her
  57. instance. See the available options in the preferences page of the instance.
  58. ``enabled_plugins``: optional
  59. List of enabled plugins.
  60. :default: ``HTTPS_rewrite``, ``Self_Informations``,
  61. ``Search_on_category_select``, ``Tracker_URL_remover``
  62. :values: [ ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``,
  63. ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``,
  64. ``Search_on_category_select`` ]
  65. ``disabled_plugins``: optional
  66. List of disabled plugins.
  67. :default: ``DOAI_rewrite``, ``Infinite_scroll``, ``Vim-like_hotkeys``
  68. :values: ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``,
  69. ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``,
  70. ``Search_on_category_select``
  71. ``enabled_engines``: optional : *all* :origin:`engines <searx/engines>`
  72. List of enabled engines.
  73. ``disabled_engines``: optional : *all* :origin:`engines <searx/engines>`
  74. List of disabled engines.