SDKs

Official SDKs for JavaScript and Python. Type-safe, zero-dependency (JS), and async-first.

JavaScript

Zero dependencies. Works in Node.js, Deno, and browsers.

npm install @datasentry/sdk

Python

Async and sync APIs. Uses httpx under the hood.

pip install datasentry-sdk

JavaScript Example

import { DataSentry } from "@datasentry/sdk";

const client = new DataSentry({
  apiKey: "ds_prod_xxxxxxxx",
});

const result = await client.lookup("8.8.8.8");
console.log(result.location.country); // "United States"
console.log(result.security.riskLevel); // "low"

Python Example

from datasentry import DataSentry

client = DataSentry(api_key="ds_prod_xxxxxxxx")

result = client.lookup("8.8.8.8")
print(result.location.country)  # "United States"
print(result.security.risk_level)  # "low"

# Async
result = await client.lookup("8.8.8.8")

Start Building