123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Administration API &#8212; searx 0.12.0 documentation</title>
  7. <link rel="stylesheet" href="../_static/style.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.12.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true,
  16. SOURCELINK_SUFFIX: '.txt'
  17. };
  18. </script>
  19. <script type="text/javascript" src="../_static/jquery.js"></script>
  20. <script type="text/javascript" src="../_static/underscore.js"></script>
  21. <script type="text/javascript" src="../_static/doctools.js"></script>
  22. <link rel="index" title="Index" href="../genindex.html" />
  23. <link rel="search" title="Search" href="../search.html" />
  24. <link rel="next" title="How to protect an instance" href="filtron.html" />
  25. <link rel="prev" title="Installation" href="../dev/install/installation.html" />
  26. <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  27. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  28. </head>
  29. <body>
  30. <div class="document">
  31. <div class="documentwrapper">
  32. <div class="bodywrapper">
  33. <div class="body" role="main">
  34. <div class="section" id="administration-api">
  35. <span id="adminapi"></span><h1>Administration API<a class="headerlink" href="#administration-api" title="Permalink to this headline">¶</a></h1>
  36. <div class="section" id="get-configuration-data">
  37. <h2>Get configuration data<a class="headerlink" href="#get-configuration-data" title="Permalink to this headline">¶</a></h2>
  38. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">GET</span> <span class="o">/</span><span class="n">config</span>
  39. </pre></div>
  40. </div>
  41. <div class="section" id="sample-response">
  42. <h3>Sample response<a class="headerlink" href="#sample-response" title="Permalink to this headline">¶</a></h3>
  43. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="p">{</span>
  44. <span class="s2">&quot;autocomplete&quot;</span><span class="p">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
  45. <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
  46. <span class="s2">&quot;map&quot;</span><span class="p">,</span>
  47. <span class="s2">&quot;it&quot;</span><span class="p">,</span>
  48. <span class="s2">&quot;images&quot;</span><span class="p">,</span>
  49. <span class="p">],</span>
  50. <span class="s2">&quot;default_locale&quot;</span><span class="p">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
  51. <span class="s2">&quot;default_theme&quot;</span><span class="p">:</span> <span class="s2">&quot;oscar&quot;</span><span class="p">,</span>
  52. <span class="s2">&quot;engines&quot;</span><span class="p">:</span> <span class="p">[</span>
  53. <span class="p">{</span>
  54. <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
  55. <span class="s2">&quot;map&quot;</span>
  56. <span class="p">],</span>
  57. <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
  58. <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;openstreetmap&quot;</span><span class="p">,</span>
  59. <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;osm&quot;</span>
  60. <span class="p">},</span>
  61. <span class="p">{</span>
  62. <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
  63. <span class="s2">&quot;it&quot;</span>
  64. <span class="p">],</span>
  65. <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
  66. <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;arch linux wiki&quot;</span><span class="p">,</span>
  67. <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;al&quot;</span>
  68. <span class="p">},</span>
  69. <span class="p">{</span>
  70. <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
  71. <span class="s2">&quot;images&quot;</span>
  72. <span class="p">],</span>
  73. <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
  74. <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;google images&quot;</span><span class="p">,</span>
  75. <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;goi&quot;</span>
  76. <span class="p">},</span>
  77. <span class="p">{</span>
  78. <span class="s2">&quot;categories&quot;</span><span class="p">:</span> <span class="p">[</span>
  79. <span class="s2">&quot;it&quot;</span>
  80. <span class="p">],</span>
  81. <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span>
  82. <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;bitbucket&quot;</span><span class="p">,</span>
  83. <span class="s2">&quot;shortcut&quot;</span><span class="p">:</span> <span class="s2">&quot;bb&quot;</span>
  84. <span class="p">},</span>
  85. <span class="p">],</span>
  86. <span class="s2">&quot;instance_name&quot;</span><span class="p">:</span> <span class="s2">&quot;searx&quot;</span><span class="p">,</span>
  87. <span class="s2">&quot;locales&quot;</span><span class="p">:</span> <span class="p">{</span>
  88. <span class="s2">&quot;de&quot;</span><span class="p">:</span> <span class="s2">&quot;Deutsch (German)&quot;</span><span class="p">,</span>
  89. <span class="s2">&quot;en&quot;</span><span class="p">:</span> <span class="s2">&quot;English&quot;</span><span class="p">,</span>
  90. <span class="s2">&quot;eo&quot;</span><span class="p">:</span> <span class="s2">&quot;Esperanto (Esperanto)&quot;</span><span class="p">,</span>
  91. <span class="p">},</span>
  92. <span class="s2">&quot;plugins&quot;</span><span class="p">:</span> <span class="p">[</span>
  93. <span class="p">{</span>
  94. <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span>
  95. <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;HTTPS rewrite&quot;</span>
  96. <span class="p">},</span>
  97. <span class="p">{</span>
  98. <span class="s2">&quot;enabled&quot;</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span>
  99. <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;Vim-like hotkeys&quot;</span>
  100. <span class="p">}</span>
  101. <span class="p">],</span>
  102. <span class="s2">&quot;safe_search&quot;</span><span class="p">:</span> <span class="mi">0</span>
  103. <span class="p">}</span>
  104. </pre></div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="section" id="embed-search-bar">
  110. <h1>Embed search bar<a class="headerlink" href="#embed-search-bar" title="Permalink to this headline">¶</a></h1>
  111. <p>The search bar can be embedded into websites. Just paste the example into the HTML of the site.
  112. URL of the searx instance and values are customizable.</p>
  113. <div class="code html highlight-default"><div class="highlight"><pre><span></span>&lt;form method=&quot;post&quot; action=&quot;https://searx.me/&quot;&gt;
  114. &lt;!-- search query --&gt; &lt;input type=&quot;text&quot; name=&quot;q&quot; /&gt;
  115. &lt;!-- categories --&gt; &lt;input type=&quot;hidden&quot; name=&quot;categories&quot; value=&quot;general,social media&quot; /&gt;
  116. &lt;!-- language --&gt; &lt;input type=&quot;hidden&quot; name=&quot;lang&quot; value=&quot;all&quot; /&gt;
  117. &lt;!-- locale --&gt; &lt;input type=&quot;hidden&quot; name=&quot;locale&quot; value=&quot;en&quot; /&gt;
  118. &lt;!-- date filter --&gt; &lt;input type=&quot;hidden&quot; name=&quot;time_range&quot; value=&quot;month&quot; /&gt;
  119. &lt;/form&gt;
  120. </pre></div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  127. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  128. <h1>Searx</h1>
  129. <ul>
  130. <li><a href="../index.html">Home</a></li>
  131. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  132. <li><a href="../blog/blog.html">Blog</a></li>
  133. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  134. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  135. </ul>
  136. <hr />
  137. <ul>
  138. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  139. <li><a href="https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software">Flattr</a></li>
  140. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  141. </ul>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="clearer"></div>
  146. </div>
  147. <div class="footer">
  148. &copy; Copyright 2015-2017, Adam Tauber.
  149. </div>
  150. </body>
  151. </html>