# SearXNG — Privacy-First Metasearch Engine > Self-hosted search engine aggregating 70+ sources. No tracking, no ads. Perfect backend for AI search apps. 27K+ stars. ## Install Save in your project root: # SearXNG — Privacy-First Metasearch Engine ## Quick Use ```bash # One-command Docker deployment docker run -d --name searxng -p 8080:8080 \ -v ./searxng:/etc/searxng \ -e SEARXNG_BASE_URL=http://localhost:8080/ \ searxng/searxng ``` Open `http://localhost:8080` — your private search engine is running. For production with Redis caching: ```yaml # docker-compose.yaml services: searxng: image: searxng/searxng ports: - "8080:8080" volumes: - ./searxng:/etc/searxng environment: - SEARXNG_BASE_URL=https://search.yourdomain.com/ redis: image: redis:alpine ``` ```bash docker compose up -d ``` --- ## Intro SearXNG is a free, privacy-respecting metasearch engine with 27,500+ GitHub stars that aggregates results from 70+ search services (Google, Bing, DuckDuckGo, Wikipedia, and more) without tracking users. It's the most popular self-hosted search engine and serves as the ideal backend for AI-powered search applications — tools like Morphic, Perplexica, and Open WebUI use SearXNG as their search provider. Deploy with one Docker command and get a search API that respects privacy, has no rate limits, and costs nothing. Works with: Docker, any AI application needing search (Morphic, Perplexica, Open WebUI, LangChain), any browser. Best for developers building AI search apps or teams wanting private, ad-free search. Setup time: under 2 minutes. --- ## SearXNG Configuration & Features ### Search Engine Categories SearXNG aggregates results from 70+ engines across categories: | Category | Engines | Example Results | |----------|---------|-----------------| | **General** | Google, Bing, DuckDuckGo, Brave, Qwant | Web pages | | **Science** | Google Scholar, Semantic Scholar, arXiv, PubMed | Academic papers | | **IT** | GitHub, Stack Overflow, Arch Wiki, Hacker News | Code & docs | | **Images** | Google Images, Bing Images, Flickr, Unsplash | Photos | | **Videos** | YouTube, PeerTube, Dailymotion | Videos | | **News** | Google News, Bing News, Reuters, AP | News articles | | **Maps** | OpenStreetMap, Photon, Nominatim | Locations | | **Music** | SoundCloud, Bandcamp, Radio Browser | Audio | | **Files** | 1337x, Piratebay, Nyaa | Torrents | ### JSON API for AI Applications SearXNG provides a clean JSON API — perfect for AI pipelines: ```bash # Search and get JSON results curl "http://localhost:8080/search?q=AI+agents+2026&format=json" ``` ```python import requests def search(query, categories="general", num_results=10): resp = requests.get("http://localhost:8080/search", params={ "q": query, "format": "json", "categories": categories, "pageno": 1, }) results = resp.json()["results"][:num_results] return [{"title": r["title"], "url": r["url"], "content": r["content"]} for r in results] # Use in your AI pipeline results = search("best practices for RAG pipelines") context = "\n".join(f"- {r['title']}: {r['content']}" for r in results) # Feed context to your LLM ``` ### Integration with AI Search Apps SearXNG is the default search backend for major AI search tools: ```yaml # Morphic .env SEARXNG_API_URL=http://localhost:8080 # Perplexica .env SEARXNG_URL=http://localhost:8080 # Open WebUI — enable in admin settings # Settings > Web Search > SearXNG URL: http://localhost:8080 ``` ### Settings Configuration ```yaml # searxng/settings.yml use_default_settings: true general: instance_name: "My Search" search: safe_search: 0 default_lang: "en" autocomplete: "google" server: secret_key: "your-secret-key-here" bind_address: "0.0.0.0" port: 8080 engines: - name: google engine: google shortcut: g disabled: false - name: github engine: github shortcut: gh disabled: false - name: arxiv engine: arxiv shortcut: ax disabled: false ``` ### Privacy Features - **No tracking** — Zero cookies, no user profiles, no search history on server - **No ads** — Clean results without sponsored content - **Proxy support** — Route image and result links through SearXNG - **Tor-friendly** — Works as a Tor hidden service - **Self-hosted** — Your data never leaves your infrastructure --- ## FAQ **Q: What is SearXNG?** A: SearXNG is a free, self-hosted metasearch engine with 27,500+ GitHub stars that aggregates results from 70+ search providers without tracking. It's the most popular search backend for AI applications like Morphic and Perplexica. **Q: How is SearXNG different from Google or DuckDuckGo?** A: SearXNG aggregates results from multiple engines (including Google and DDG) but strips all tracking. Being self-hosted, there are no rate limits, no API keys needed, and no costs — you control the entire search infrastructure. **Q: Is SearXNG free?** A: Yes, fully open-source under AGPL-3.0. Self-host on your own infrastructure at zero cost. --- ## Source & Thanks > Created by [SearXNG team](https://github.com/searxng). Licensed under AGPL-3.0. > > [searxng](https://github.com/searxng/searxng) — ⭐ 27,500+ Thanks to the SearXNG community for keeping private, open-source search alive. --- ## 快速使用 ```bash docker run -d --name searxng -p 8080:8080 searxng/searxng ``` 打开 `http://localhost:8080` — 你的私有搜索引擎就绑定了。 --- ## 简介 SearXNG 是一个拥有 27,500+ GitHub stars 的免费隐私搜索引擎,聚合 70+ 搜索源(Google、Bing、DuckDuckGo 等)的结果,不追踪用户。它是最流行的自托管搜索引擎,也是 AI 搜索应用(Morphic、Perplexica、Open WebUI)的理想后端。一条 Docker 命令即可部署,获得免费、无限速、无广告的搜索 API。 适用于:Docker、任何需要搜索的 AI 应用、任何浏览器。适合构建 AI 搜索应用或需要私有无广告搜索的团队。 --- ## 核心特性 ### 70+ 搜索源聚合 涵盖通用、学术、代码、图片、视频、新闻等类别。 ### JSON API 为 AI 管线提供干净的 JSON 搜索 API,无需 API 密钥。 ### AI 搜索应用集成 Morphic、Perplexica、Open WebUI 等均支持 SearXNG 作为搜索后端。 ### 完全隐私 无追踪、无广告、无 Cookie、支持 Tor。 --- ## 来源与感谢 > Created by [SearXNG team](https://github.com/searxng). Licensed under AGPL-3.0. > > [searxng](https://github.com/searxng/searxng) — ⭐ 27,500+ --- Source: https://tokrepo.com/en/workflows/9ea22ab4-b41c-4838-aa3c-e7a7ea650408 Author: TokRepo精选