Repository navigation
JavaScript and TypeScript SDK 0.4.2
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.tgzTry 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.