Install
npm install @datajuice/sdkpip install datajuicego get github.com/datajuice/datajuice-gogem install datajuiceYour 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[] }from datajuice import DataJuice
dj = DataJuice()
co = dj.companies.get("northwindlabs.io", include=["intent"])
co.intent[0].topic # 'data warehouse' (typed with dataclasses)client := datajuice.NewClient() // reads DATAJUICE_KEY
co, err := client.Companies.Get(ctx, "northwindlabs.io", &datajuice.GetParams{Include: []string{"intent"}})
if err != nil { return err }
fmt.Println(co.EmployeeCount)dj = DataJuice::Client.new
co = dj.companies.get("northwindlabs.io", include: ["intent"])
puts co.employee_countWhat 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
429and5xxwith exponential backoff, honoringRetry-After. - Webhook helpers that verify
DJ-Signaturein 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/hooksGenerate 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.pyFAQ
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.