Deploy SearXNG API

A pre-configured SearXNG optimized for private and LLM tool use.

Deploy SearXNG API

Just deployed

/data

Deploy and Host SearXNG API on Railway

SearXNG is a privacy-respecting metasearch engine that aggregates results from multiple sources. This template configures SearXNG as a JSON API with GET requests enabled, making it easy to integrate with backends, scripts, and LLM agents that need web search capabilities.

About Hosting SearXNG API

Running SearXNG typically requires configuring YAML settings, managing search engine lists, and tuning timeouts. This template handles all of that. It ships with a curated engine list (DuckDuckGo, Brave, GitHub, arXiv, StackOverflow, and more), extended timeouts for reliability, and settings tuned for API access rather than browser use. Rate limiting is disabled since you control who has access. Add Redis for caching and you're done.

Common Use Cases

  • Search tool for AI agents and LLM applications
  • Backend search API for applications that need web results without third-party API costs
  • Private search instance for teams or personal use

Dependencies for SearXNG API Hosting

  • Redis (optional but recommended for caching)
  • A secret key for the instance

Deployment Dependencies

Implementation Details

Query the API with standard GET requests:

# JSON search
curl "https://your-instance.up.railway.app/search?q=python+async&format=json"

# Target specific engines
curl "https://your-instance.up.railway.app/search?q=machine+learning&format=json&engines=arxiv,semantic+scholar"

Set these environment variables in Railway:

  • SEARXNG_SECRET_KEY - any random string
  • SEARXNG_REDIS_URL - Railway's Redis connection string (if using Redis service)

Why Deploy SearXNG API on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying SearXNG API on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

View Template
openui
Deploy OpenUI: AI-powered UI generation with GitHub OAuth and OpenAI API.

View Template
firecrawl
firecrawl api server + worker without auth, works with dify