Skip to content

About

Website Crawler API by CaptureKit: Fetch raw HTML of any page, fast. Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website Crawler API by CaptureKit

Website Crawler API

Discord Get API key API docs License: MIT

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

Table of contents

How it works

  1. Create a CaptureKit account and copy your API key from the dashboard.
  2. Call https://api.capturekit.dev with the header x-api-key: YOUR_API_KEY.
  3. 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

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

Request parameters

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.

Python example

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])

TypeScript example

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));

Output

The response body is the raw page content (HTML/text), returned as-is.

Code examples in other languages

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

Use cases

  • SEO crawls — Fetch HTML of many pages quickly.
  • Monitoring — Detect content changes on pages.

Why CaptureKit?

  • 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/.

FAQ

How do I authenticate?

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.

How much does a request cost?

Credits per call: /v1/website/crawler 1. See CaptureKit pricing.

Which languages are supported?

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.

Related repositories

Support


CaptureKit
Built by CaptureKit. Examples are released under the MIT license.

About

Website Crawler API by CaptureKit: Fetch raw HTML of any page, fast. Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors