Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

add embedded search to docs

Noémi Ványi013139b036e3
diff --git a/docs/admin/api.rst b/docs/admin/api.rst
index 94508a28c..8d6162247 100644
--- a/docs/admin/api.rst
+++ b/docs/admin/api.rst
@@ -76,3 +76,19 @@ Sample response
],
"safe_search": 0
}
+
+Embed search bar
+----------------
+
+The search bar can be embedded into websites. Just paste the example into the HTML of the site.
+URL of the searx instance and values are customizable.
+
+.. code:: html
+
+ <form method="post" action="https://searx.me/">
+ <!-- search query --> <input type="text" name="q" />
+ <!-- categories --> <input type="hidden" name="categories" value="general,social media" />
+ <!-- language --> <input type="hidden" name="lang" value="all" />
+ <!-- locale --> <input type="hidden" name="locale" value="en" />
+ <!-- date filter --> <input type="hidden" name="time_range" value="month" />
+ </form>