1. Home
  2. Platform
  3. SDKs & CLI

SDKs & CLI

SDKs and CLI. Typed end to end.

DataJuice ships official SDKs for TypeScript, Python, Go and Ruby, plus a CLI. Typed models, auto-pagination and retries are built in, so the integration is the part you don't think about.

1,000 free credits a month · Test keys are always free

Install

npm install @datajuice/sdk

Your first call

Every SDK reads DATAJUICE_KEY from the environment, so the first line of code is the useful one.

import { DataJuice } from "@datajuice/sdk";

const dj = new DataJuice(); // reads DATAJUICE_KEY

const co = await dj.companies.get("northwindlabs.io", { include: ["intent"] });
//    ^? Company & { intent: IntentSignal[] }

What every SDK does for you

  • Typed models generated from the same schema as the API, so your editor knows every field.
  • Auto-pagination with async iterators: loop over a search and pages load as you go.
  • Retries on 429 and 5xx with exponential backoff, honoring Retry-After.
  • Webhook helpers that verify DJ-Signature in one call.
  • Test mode: pass a dj_test_ key and get realistic sample data for free.

CLI

Try queries, export lists and forward webhooks to localhost without writing code.

npm install -g @datajuice/cli    # or: brew install datajuice/tap/dj

dj login                                       # opens the browser, stores a test key
dj companies get northwindlabs.io
dj companies search --tech snowflake --headcount 200-1000 --format csv > list.csv
dj types generate --lang ts --out src/datajuice.d.ts
dj webhooks listen --forward http://localhost:3000/hooks

Generate types for your codebase

Already have your own HTTP client? Generate types straight from the live schema and keep them in sync in CI.

dj types generate --lang ts --out src/datajuice.d.ts
dj types generate --lang py --out datajuice_types.py

FAQ

TypeScript/JavaScript, Python, Go and Ruby. Any other language can call the REST or GraphQL API directly.

Yes. They retry 429 and 5xx responses with exponential backoff and honor Retry-After.

Yes. Use a dj_test_ key and dj webhooks listen to forward test events to localhost.

Five minutes to
your first call.

Create a key, make a request, subscribe to an event. Test keys are free forever.

1,000 free credits every month · No card