xtract.bot

API reference

Every tool is one HTTPS endpoint at /api/<id>. Calls require an API key (sign in first) — the key pins requests to your monthly quota.

Authentication

# Every /api/* call requires an account id + API key.
# Generate yours after signing in at https://xtract.bot/account/keys.
curl -X POST https://api.xtract.bot/api/jq-filter \
  -H "content-type: application/json" \
  -H "x-account-id: <your account id>" \
  -H "x-api-key: <your api key>" \
  -d '{"input":"<base64 json>","filter":".name"}'

TypeScript SDK

@xtract-bot/sdk wraps the API in one fully-typed run() call — input shapes for every tool are generated from the same registry that drives this site. Works in Node 18+, browsers, Deno, Bun, and Workers.

import { XtractClient } from "@xtract-bot/sdk";

const client = new XtractClient({ apiKey, accountId });
const res = await client.run("image-info", { image: bytes });
console.log(await res.json()); // { format: "heic", width: 4032, … }

Tools (224)