API

Prepend this host to a URL to convert it. Batch, extract, jobs, and deep crawl need an API key.

Quick Start

# Get raw Markdown curl -H "Accept: text/markdown" https://md.genedai.me/https://example.com
# Get JSON output curl "https://md.genedai.me/https://example.com?raw=true&format=json"
# Batch conversion curl -X POST https://md.genedai.me/api/batch \ -H "Authorization: Bearer API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"urls":["https://example.com"]}'
# Structured extraction curl -X POST https://md.genedai.me/api/extract \ -H "Authorization: Bearer API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"strategy":"css","url":"https://example.com","schema":{"fields":[{"name":"title","selector":"h1","type":"text","required":true}]}}'
# Deep crawl curl -X POST https://md.genedai.me/api/deepcrawl \ -H "Authorization: Bearer API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"seed":"https://example.com/docs","stream":true}'

API Reference

Routes
GET /{url}Convert a single URL to Markdown
GET /api/streamSSE progress for single-URL conversion (step / done / fail)
POST /api/batchConvert up to 10 URLs (requires API_TOKEN)
POST /api/extractStructured extraction (css / xpath / regex)
POST /api/jobsCreate, query, stream, and run jobs
POST /api/deepcrawlBFS / BestFirst deep crawl with filters and scoring
GET /api/healthHealth check and operational metrics
GET /api/ogShare-image generator
GET /llms.txtAI-readable API description

Query Parameters

?raw=trueReturn raw Markdown (no HTML wrapper)
?format=Output format (markdown | html | text | json)
?selector=.cssExtract only matching CSS selector
?force_browser=trueForce headless browser rendering
?engine=jina|firecrawl|cfConvert via specific engine (jina / firecrawl / cf)
?no_cache=trueBypass cache, fetch fresh content
?token=Public API token

Authentication

PUBLIC_API_TOKEN Single-URL convert and /api/stream accept Bearer or ?token=...

API_TOKEN /api/batch, /api/extract, /api/jobs*, and /api/deepcrawl require API_TOKEN

Response Headers

X-Markdown-Methodnative | readability+turndown | browser+readability+turndown | jina
X-Cache-StatusHIT | MISS
X-Source-URLThe original target URL