---
title: "Deploy AnakinScraper"
description: "Self-hosted scraping API: web pages to markdown or JSON, Camoufox browser"
category: "AI/ML"
url: https://railway.com/deploy/anakinscraper
---

# Deploy AnakinScraper

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

**[Deploy AnakinScraper on Railway](https://railway.com/template/anakinscraper)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/anakinscraper/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### AnakinScraper https://anakin.io/favicon.png

- **Source:** https://github.com/aalfath/anakin-railway-template
- **Health check:** /health
- **Public domain:** Yes

### Browser https://anakin.io/favicon.png

- **Source:** https://github.com/aalfath/anakin-railway-template
- **Health check:** /health

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Dashboard https://anakin.io/favicon.png

- **Source:** https://github.com/aalfath/anakin-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# 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

* AnakinScraper source: https://github.com/Anakin-Inc/anakin
* Template repo: https://github.com/aalfath/anakin-railway-template
* API reference: https://github.com/Anakin-Inc/anakin/blob/master/docs/API.md

### 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:

```bash
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.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/anakinscraper
