The CaptureKit Website Crawler API fetches the raw HTML of a page in request mode (no rendering) — fast and cheap for audits, monitoring and link extraction.
- Website Crawler API — Website Crawler API fetches raw HTML from any webpage in request mode (no rendering) for fast scraping, audits, monitoring, and link/metadata extraction.
Use it for SEO crawls, uptime/content monitoring and HTML parsing pipelines.
| Endpoint | Request | Credits |
|---|---|---|
| Website Crawler API | GET /v1/website/crawler |
1 |
- How it works
- Website Crawler API
- Code examples in other languages
- Use cases
- Why CaptureKit?
- FAQ
- Related repositories
- Support
- Create a CaptureKit account and copy your API key from the dashboard.
- Call
https://api.capturekit.devwith the headerx-api-key: YOUR_API_KEY. - Use the result in your app — no infrastructure to run.
export CAPTUREKIT_API_KEY="your-api-key"
pip install requests # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`Website Crawler API fetches raw HTML from any webpage in request mode (no rendering) for fast scraping, audits, monitoring, and link/metadata extraction.
GET https://api.capturekit.dev/v1/website/crawler · 1 credit per request · API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
query |
query | string | ✅ | A website URL with either the http or https protocol. |
allow_redirects |
query | boolean | — | If set to false, do not follow redirects. |
return_page_source |
query | boolean | — | If set to true, the response will be the HTML source of the page. |
import os
import requests
API_KEY = os.environ["CAPTUREKIT_API_KEY"]
HEADERS = {"x-api-key": API_KEY}
response = requests.get(
"https://api.capturekit.dev/v1/website/crawler",
headers=HEADERS,
params={
"query": "https://github.com/seaweedfs/seaweedfs",
},
timeout=120,
)
response.raise_for_status()
print(response.text[:2000])const headers = { "x-api-key": process.env.CAPTUREKIT_API_KEY!, "Content-Type": "application/json" };
const params = new URLSearchParams({
"query": "https://github.com/seaweedfs/seaweedfs",
});
const response = await fetch(`https://api.capturekit.dev/v1/website/crawler?${params}`, { headers });
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log((await response.text()).slice(0, 2000));The response body is the raw page content (HTML/text), returned as-is.
Ready-to-run examples live in examples/; each reads your key from CAPTUREKIT_API_KEY.
| Language | website-crawler |
|---|---|
| cURL (Bash) | website_crawler.sh |
| PHP | website_crawler.php |
| C# | WebsiteCrawler.cs |
| Go | website_crawler.go |
| Java | WebsiteCrawlerExample.java |
| Ruby | website_crawler.rb |
| Node.js | website_crawler.mjs |
- SEO crawls — Fetch HTML of many pages quickly.
- Monitoring — Detect content changes on pages.
- Screenshots as a service — the response body is the image or PDF; save it or upload it straight to your S3 bucket.
- Pixel-perfect options — full page, viewport size, scale factor, element
selector, 18 mobile/tablet devices, delays and wait conditions. - Clean pages — remove cookie banners, ads and any CSS selector before capturing.
- Beyond screenshots — extract content (metadata, links, HTML, Markdown) or get an AI analysis of any page.
- Copy-paste examples — Python and TypeScript in each README, 7 more languages in
examples/.
Create an account on CaptureKit, copy your API key and send it in the x-api-key header of every request to https://api.capturekit.dev.
Credits per call: /v1/website/crawler 1. See CaptureKit pricing.
Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.
- Screenshot API
- Full Page Screenshot API
- Website to PDF API
- Mobile Screenshot API
- Website Content API
- AI Website Analyzer API
- All CaptureKit repositories
- 💬 Join the Discord to ask questions and share what you build.
- 📚 Read the API reference.
- 🔑 Get your API key.
Built by CaptureKit. Examples are released under the MIT license.
