Preview

HTMLForge API

The same processing engine, now scriptable. Access is free and open to everyone as part of the HTMLForge toolkit.

POST/v1/merge

Merge a batch of HTML documents into one.

curl -X POST https://api.htmlforge.app/v1/merge \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "files=@page-1.html" \
  -F "files=@page-2.html" \
  -F 'options={"minify":true,"removeDuplicates":true}'
POST/v1/convert/txt

Convert HTML documents into TXT or Markdown.

curl -X POST https://api.htmlforge.app/v1/convert/txt \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "files=@article.html" \
  -F 'options={"exportFormat":"markdown","preserveLinks":true}'
GET/v1/jobs/:id

Poll the status and result of an async job.

curl https://api.htmlforge.app/v1/jobs/job_2k4xa \
  -H "Authorization: Bearer YOUR_API_KEY"