on master help sign in
add generated files
commitfeb25d3a530cc073bb4b65f69ea361b8fd6afe47 authorNoémi Ványi <sitbackandwait@gmail.com> dateTue 6 Sep 2016, 18:22 (10 years ago) parent09a46da
2 files changed+30
_sources/admin/api.txt+16 admin/api.html+14
_sources/admin/api.txt+16
@@ -76,3 +76,19 @@ Sample response
7676 ],
7777 "safe_search": 0
7878 }
79+
80+Embed search bar
81+----------------
82+
83+The search bar can be embedded into websites. Just paste the example into the HTML of the site.
84+URL of the searx instance and values are customizable.
85+
86+.. code:: html
87+
88+ <form method="post" action="https://searx.me/">
89+ <!-- search query --> <input type="text" name="q" />
90+ <!-- categories --> <input type="hidden" name="categories" value="general,social media" />
91+ <!-- language --> <input type="hidden" name="lang" value="all" />
92+ <!-- locale --> <input type="hidden" name="locale" value="en" />
93+ <!-- date filter --> <input type="hidden" name="time_range" value="month" />
94+ </form>
admin/api.html+14
@@ -113,6 +113,20 @@
113113</div>
114114</div>
115115</div>
116+</div>
117+<div class="section" id="embed-search-bar">
118+<h1>Embed search bar<a class="headerlink" href="#embed-search-bar" title="Permalink to this headline">¶</a></h1>
119+<p>The search bar can be embedded into websites. Just paste the example into the HTML of the site.
120+URL of the searx instance and values are customizable.</p>
121+<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;
122+ &lt;!-- search query --&gt; &lt;input type=&quot;text&quot; name=&quot;q&quot; /&gt;
123+ &lt;!-- categories --&gt; &lt;input type=&quot;hidden&quot; name=&quot;categories&quot; value=&quot;general,social media&quot; /&gt;
124+ &lt;!-- language --&gt; &lt;input type=&quot;hidden&quot; name=&quot;lang&quot; value=&quot;all&quot; /&gt;
125+ &lt;!-- locale --&gt; &lt;input type=&quot;hidden&quot; name=&quot;locale&quot; value=&quot;en&quot; /&gt;
126+ &lt;!-- date filter --&gt; &lt;input type=&quot;hidden&quot; name=&quot;time_range&quot; value=&quot;month&quot; /&gt;
127+&lt;/form&gt;
128+</pre></div>
129+</div>
116130</div>
117131
118132