A FastAPI-based web scraper service that accepts POST requests with URLs and returns the content in markdown format.
Run the container with the API key environment variable:
docker run -d -p 8000:8000 -e API_KEY=xkey --name scraper clivern/scraper:0.4.0Once the container is running, the API will be available at http://localhost:8000.
Check if the API is running:
curl -H "X-API-Key: xkey" http://localhost:8000/Send a POST request to crawl a URL and get markdown content:
curl -X POST http://localhost:8000/crawl \
-H "Content-Type: application/json" \
-H "X-API-Key: xkey" \
-d '{"url": "https://example.com"}'Using jq for formatted JSON output:
curl -X POST http://localhost:8000/crawl \
-H "Content-Type: application/json" \
-H "X-API-Key: xkey" \
-d '{"url": "https://ziee.io"}' \
-s | jq .GET /- Health check endpointPOST /crawl- Crawl a URL and return markdown content- Request body:
{"url": "https://example.com"} - Response:
{"markdown": "..."}
- Request body:
Copyright 2025 Clivern
Licensed under the Apache License, Version 2.0