Skip to content

JavaScript and TypeScript SDK 0.4.2

Choose a tag to compare

@JacobiusMakes JacobiusMakes released this 01 Dec 02:42
7e758d4

Install the JavaScript or TypeScript client directly from this release with Node 18 or newer.

npm install https://github.com/JacobiusMakes/parlay-api-js/releases/download/v0.4.2/parlay-api-0.4.2.tgz

Try a fictional NBA odds response without creating an account.

import { ParlayAPI } from "parlay-api";
const sandbox = new ParlayAPI({ sandbox: true, apiKey: "" });
const events = await sandbox.odds("nba", { markets: ["h2h"] });
console.log(events.map(event => event.id));

Short league names now work across sport-scoped requests and streaming URLs. Existing full keys keep working. Both ES modules and CommonJS include TypeScript declarations. Thanks to Harlan Jones for the original contribution. Contributor pull request

When the sandbox shows the fields your integration needs, get your own API key for a live request.