Deploy AnakinScraper

Self-hosted scraping API: web pages to markdown or JSON, Camoufox browser

Deploy AnakinScraper

Just deployed

/var/lib/postgresql/data

Just deployed

Deploy and Host AnakinScraper on Railway

AnakinScraper is Anakin's open-source web scraping API (AGPL-3.0). You send it a URL and it returns the page as clean markdown, HTML or structured JSON. It tries a fast HTTP fetch first and falls back to a Camoufox anti-detect browser for JavaScript-heavy pages, with per-domain rules, async jobs and optional proxy rotation.

About Hosting AnakinScraper

Hosting AnakinScraper means running three parts next to a Postgres database: the Go API server, a headless Camoufox browser that the API drives over a Playwright WebSocket, and an optional React dashboard. Upstream publishes no container images, so this template builds each part from a pinned upstream commit on digest-pinned base images. The API needs a key on every /v1 route and blocks requests to private and internal addresses. The browser service stays on Railway's private network. The dashboard sits behind HTTP basic auth and adds the API key server-side. Postgres keeps jobs, results and domain rules on a volume, and the schema is applied on each start.

Common Use Cases

  • Turn web pages into clean markdown for LLM, RAG and AI agent pipelines
  • Scrape JavaScript-heavy or bot-protected sites through a real browser engine
  • Run batch and async scraping jobs from your own apps through a simple REST API

Dependencies for AnakinScraper Hosting

  • PostgreSQL (Railway Postgres) for jobs, results and domain configs
  • Camoufox browser service (Playwright WebSocket, private network)

Deployment Dependencies

Implementation Details

The template generates API_KEY on the AnakinScraper service and DASHBOARD_PASSWORD on the Dashboard service (user admin); read both in each service's Variables tab. Call the API like this:

curl -X POST https://YOUR-API-DOMAIN/v1/scrape \
  -H "X-API-Key: YOUR-API-KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "useBrowser": false}'

Set "useBrowser": true to render the page in Camoufox. Optional settings on the AnakinScraper service: GEMINI_API_KEY for structured JSON extraction, PROXY_URL or PROXY_URLS for a proxy pool, and TELEMETRY=off to turn off upstream's anonymous usage counts. The browser image is large (about 3.5 GB), so the first build takes several minutes.

Why Deploy AnakinScraper 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 AnakinScraper 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.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1