Installation
Install the TypeScript, Python or Go client and make your first call.
The TypeScript, Python and Go clients are generated from the same OpenAPI spec as these docs, so they cover the same endpoints, each with its own language's naming and types.
Install
npm install @predictorsdk/clientInitialize the client
import { PredictorSDKClient } from "@predictorsdk/client";
const client = new PredictorSDKClient({
token: "YOUR_API_KEY",
});Pass token, your API key: every call needs it except getPlans, and a call
without it answers 401. Each SDK page lists the other options, such as
timeouts and retries.
Packages
| Language | Package | Needs |
|---|---|---|
| TypeScript | @predictorsdk/client | Node.js 18 or later |
| Python | predictorsdk | Python 3.8 or later |
| Go | github.com/PredictorSDK/sdk-go | Go 1.21 or later |
Next, the Quickstart makes your first calls, and the TypeScript, Python and Go pages list every method and type.