api.rst 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. }