Client Libraries

The official TypeScript and Python clients, and how to call ByteKit from Go.

For AI agents: https://bytekit.com/llms.txt — every docs page is available as markdown by appending .md

ByteKit ships official SDKs for TypeScript and Python. Both are thin wrappers over the same REST endpoints, so nothing they do is out of reach from a language without an SDK — the Go page shows the plain standard-library equivalent. These pages cover installing and configuring each client; the per-method reference is in the SDK Reference.

Install @hunt-labs/bytekit-sdk (npm) / bytekit-sdk (PyPI).

TypeScript:

npm install @hunt-labs/bytekit-sdk
import { ByteKit } from '@hunt-labs/bytekit-sdk';

const client = new ByteKit({ apiKey: process.env.BYTEKIT_API_KEY! });
const result = await client.scrape.create({ url: 'https://example.com', formats: ['markdown'] });
if (result.status === 'success') {
  console.log(result.metadata.title);
  console.log(result.formats.markdown);
} else {
  console.log(result); // the queued receipt; a failed scrape throws ByteKitError instead
}

Python:

pip install bytekit-sdk
import os

from bytekit import ByteKit
from bytekit.models import ScrapeSuccessEnvelope

client = ByteKit(api_key=os.environ["BYTEKIT_API_KEY"])
result = client.scrape.create(url="https://example.com", formats=["markdown"])
if isinstance(result, ScrapeSuccessEnvelope):
    print(result.metadata.title)
    print(result.formats.markdown)
else:
    print(result)  # the queued receipt; a non-2xx response or a failed scrape raises ByteKitError