Skip to Content
PredictorSDK

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/client

Initialize 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

LanguagePackageNeeds
TypeScript@predictorsdk/clientNode.js 18 or later
PythonpredictorsdkPython 3.8 or later
Gogithub.com/PredictorSDK/sdk-goGo 1.21 or later

Next, the Quickstart makes your first calls, and the TypeScript, Python and Go pages list every method and type.

On this page