12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. .. _adminapi:
  2. Administration API
  3. ------------------
  4. Get configuration data
  5. ~~~~~~~~~~~~~~~~~~~~~~
  6. .. code:: sh
  7. GET /config
  8. Sample response
  9. ```````````````
  10. .. code:: sh
  11. {
  12. "autocomplete": "",
  13. "categories": [
  14. "map",
  15. "it",
  16. "images",
  17. ],
  18. "default_locale": "",
  19. "default_theme": "oscar",
  20. "engines": [
  21. {
  22. "categories": [
  23. "map"
  24. ],
  25. "enabled": true,
  26. "name": "openstreetmap",
  27. "shortcut": "osm"
  28. },
  29. {
  30. "categories": [
  31. "it"
  32. ],
  33. "enabled": true,
  34. "name": "arch linux wiki",
  35. "shortcut": "al"
  36. },
  37. {
  38. "categories": [
  39. "images"
  40. ],
  41. "enabled": true,
  42. "name": "google images",
  43. "shortcut": "goi"
  44. },
  45. {
  46. "categories": [
  47. "it"
  48. ],
  49. "enabled": false,
  50. "name": "bitbucket",
  51. "shortcut": "bb"
  52. },
  53. ],
  54. "instance_name": "searx",
  55. "locales": {
  56. "de": "Deutsch (German)",
  57. "en": "English",
  58. "eo": "Esperanto (Esperanto)",
  59. },
  60. "plugins": [
  61. {
  62. "enabled": true,
  63. "name": "HTTPS rewrite"
  64. },
  65. {
  66. "enabled": false,
  67. "name": "Vim-like hotkeys"
  68. }
  69. ],
  70. "safe_search": 0
  71. }
  72. Embed search bar
  73. ----------------
  74. The search bar can be embedded into websites. Just paste the example into the HTML of the site.
  75. URL of the searx instance and values are customizable.
  76. .. code:: html
  77. <form method="post" action="https://searx.me/">
  78. <!-- search query --> <input type="text" name="q" />
  79. <!-- categories --> <input type="hidden" name="categories" value="general,social media" />
  80. <!-- language --> <input type="hidden" name="lang" value="all" />
  81. <!-- locale --> <input type="hidden" name="locale" value="en" />
  82. <!-- date filter --> <input type="hidden" name="time_range" value="month" />
  83. </form>