Self-Hosting · Search

SearXNG: Your Own Search Front Door

SearXNG is a metasearch engine you run yourself: it takes your query, asks several search engines in parallel, and merges what comes back into one results page with the tracking stripped out. It has no crawler and no index of its own, which is both its appeal — an afternoon to deploy, a small container to run — and the source of every caveat in this guide. Upstream engines still receive your queries, they arrive from your server’s address, and engines that decide your instance behaves like a bot will block it. Self-hosting SearXNG moves where trust sits; it does not make searches invisible. Set up with that understood, it is one of the most satisfying services on a home server.

Published Nov 23, 2026

What metasearch means in practice

Every setting lives in settings.yml, mounted into the container at /etc/searxng/. The maintainable pattern from the official installation guide is to start from the defaults: set use_default_settings: true and override only what you change, so unspecified keys inherit the built-in defaults, including the default engine list. To adjust one engine you add a minimal entry with its name and only the keys you override — its implementation, its bang shortcut such as !bi, the categories it sits in, a timeout, or a state flag. An engine marked disabled is off by default but a user can switch it on in Preferences; an engine marked inactive is removed entirely, which is how engines that need an API key ship until a key is supplied.

The defaults define well over a hundred engines across categories — general, images, videos, news, music, files and more — and the correct response to that list is to prune it hard. Every enabled engine is another upstream that can time out, rate-limit or challenge your instance, and a category tab queries all of its active engines at once. Most readers need one or two general engines from different providers, so that a single upstream block does not empty the results page, plus a small set of category engines they actually use. Bangs target one engine or a whole category, in the style DuckDuckGo made familiar.

Versioning needs one warning before any of this is deployed. SearXNG has no semantic releases and no numbered versions: it is a rolling project, and its Docker images are tagged by date and commit. Pin a dated tag in your Compose file rather than running a moving latest tag in production, and treat any page that quotes a SearXNG version number as a release with suspicion.

The warning section: the limiter is not optional

The project’s own limiter documentation explains the failure mode directly. SearXNG passes your requests through to upstream engines, so those engines classify the SearXNG instance itself as a bot. The result is that the engine answers the instance with a CAPTCHA or a block. Bot traffic hitting your instance therefore gets your instance blocked upstream, which is why an exposed instance needs server.limiter: true with a Valkey database behind it, correct forwarded-for header handling at your reverse proxy, and public_instance: true when it is genuinely public, which additionally enables link-token bot detection and the image proxy.

The practical rule follows from that mechanism. Do not expose a personal instance to the open internet without the limiter, Valkey and some form of access control: an open instance is found, used by strangers and bots, and burned. For home use the comfortable options are LAN-only access, access through your VPN, or a reverse proxy with authentication in front. Set a real secret_key in the server settings while you are there; the shipped placeholder is not a secret.

Expect partial failure as normal operation regardless. Community experience consistently reports that engines challenge datacenter addresses far more readily than residential ones, so the same install usually keeps more engines working on a home connection than on a VPS — that gradient is experience, not a documented upstream policy, and it is labeled that way here deliberately. When an engine errors or is challenged, SearXNG suspends it for a while and carries on with the rest, so a results page drawn from fewer engines than you enabled is the system degrading gracefully, not a broken install.

The JSON API, and the 403 everyone meets

SearXNG exposes a search API at its /search endpoint, with parameters for the query, categories, language, page number, time range and format. Programs use it — chat front ends, automation tools and scripts — and the first thing every one of them meets is a 403 Forbidden, because the JSON format is not enabled by default. The container template ships with HTML as the only permitted format, and the documentation states the rule plainly: a format returns 403 until it is listed under search.formats in your settings. The fix is one block and a restart:

search:
  formats:
    - html
    - json

After that, a request with format=json returns a JSON object with a results array — each result carrying its URL, title, content snippet, engine and score — alongside answers, corrections, infoboxes and suggestions where the engines supplied them. Many public instances leave these formats disabled, which is one more reason the API is a self-hoster’s feature rather than something to borrow from a stranger’s instance.

Setting it as your browser’s search engine

Keep this separate from the API, because readers constantly merge the two: your browser does not need the JSON API, and enabling it changes nothing about browser setup. A browser’s custom search engine uses the ordinary HTML endpoint, with the query placeholder in the URL — your instance address followed by /search?q=%s. Add that as a custom search engine in Chromium-based browsers through the search engine settings, or visit the instance in Firefox and accept the search engine it offers through its OpenSearch description. From then on, address-bar searches land on your instance, and your instance fans them out.

What it needs to run

The official documentation publishes no minimum specification, so every figure in this section is a community norm from deployment guides and templates, labeled as such rather than quoted as a requirement. The consistent picture: about 512 megabytes of memory is the working floor for personal use, one gigabyte is comfortable for a household or a few programmatic consumers, Valkey adds roughly fifty to a hundred and twenty-eight megabytes on top, and one virtual CPU suffices for personal use because the work is waiting on upstreams rather than computing. Disk needs are around a gigabyte for the image and small caches. On a typical home NAS those numbers make SearXNG a trivial tenant beside your other services — the scarce resource in this deployment is never the hardware. It is the patience to prune the engine list and keep the instance private.

Official documentation and references

Frequently asked questions

Does SearXNG have its own search index?

No. SearXNG is a metasearch engine with no crawler and no index of its own. It sends your query to the upstream engines you have enabled, in parallel, and merges and deduplicates what they return. The results are those engines’ results, with tracking stripped out by your instance.

Why does the JSON API return 403 Forbidden?

Because the JSON format is not enabled in your settings. The default configuration permits only the HTML format, and any format returns 403 until it is listed under search.formats in settings.yml. Add json to that list, restart the instance, and requests with format=json return a results array.

Do I need the JSON API to use SearXNG in my browser?

No. A browser’s custom search engine uses the HTML endpoint — your instance address with /search?q=%s as the search URL — or the OpenSearch description the instance offers. The JSON API is for programs such as chat front ends, automation tools and scripts.

Can I run a public SearXNG instance for anyone to use?

Only with the protections the project documents: the limiter enabled, a Valkey database behind it, correct proxy headers, and public_instance set, which adds link-token bot detection and the image proxy. An unprotected open instance attracts bot traffic, and upstream engines respond by challenging or blocking the instance itself. For personal use, keep it on your LAN or behind your VPN or an authenticated proxy.

How much memory and CPU does SearXNG need?

The project publishes no official minimum, so treat these as community norms rather than requirements: roughly 512 megabytes of memory as a working floor for personal use, one gigabyte to be comfortable, Valkey adding about fifty to a hundred and twenty-eight megabytes, and one virtual CPU being enough because the workload waits on upstream engines.

What version of SearXNG should I install?

There are no numbered releases to pick from. SearXNG is a rolling project whose Docker images are tagged by date and commit. Pin one of those dated tags in your Compose file and update it deliberately, rather than running a moving latest tag in production.

Related guides