RAG & knowledge-base ingestion
Feed clean, main-content Markdown into your vector database instead of noisy HTML.
The challenge
Raw HTML is full of navigation, cookie notices and scripts that waste tokens and pollute embeddings.
How it works
Request Markdown with Defuddle enabled, keep only the fields you need, then chunk and embed. Use the sitemap output to discover every page to ingest.
- include_markdown=true
- use_defuddle=true
- fields=data.markdown,data.metadata.title
curl -G "https://api.screenshotdude.com/v1/content" \
--data-urlencode "url=https://docs.example/getting-started" \
-d include_markdown=true -d use_defuddle=true \
-d fields=data.markdown,data.metadata.title \
-H "x-api-key: $SCREENSHOTDUDE_API_KEY"