SDKs

TypeScript SDK

Installation

Install the official SDK package with your preferred package manager.

bun add @quercle/sdk
View repository

Instantiate a client

Create the client once and reuse it across endpoint calls.

import { QuercleClient } from "@quercle/sdk";

const client = new QuercleClient({ apiKey: "qk_your_api_key" });

Endpoint examples

Switch endpoint tabs to view SDK method examples.

import { quercle } from "@quercle/sdk";

const client = quercle({ apiKey: "qk_your_api_key" });
const response = await client.fetch("https://example.com", "Summarize the main points");
console.log(response.result);