We've shipped our Node.js SDK. If you've been working with our API directly, this should make your life easier. It’s written in Typescript but can also be used in any Javascript environment.
The SDK handles all the API complexity for you: authentication, error handling, pagination. So you can focus on extracting the data you need.
npm install @kadoa/node-sdk
Here's the simplest way to extract data:
import { KadoaClient } from '@kadoa/node-sdk';
const client = new KadoaClient({ apiKey: 'your-api-key' });
const result = await client.extraction.run({
urls: ['https://example.com/products'],
name: 'Product Catalog'
});
console.log(result.data);
When you need more control, you can define exactly what to extract:
const extraction = await client
.extract({
urls: ['https://example.com'],
extraction: builder => builder
.entity('Product')
.field('name', 'Product name', 'STRING', { example: 'MacBook Pro' })
.field('price', 'Product price', 'MONEY')
.field('inStock', 'Availability', 'BOOLEAN')
})
.create();
The SDK also includes built-in support for real-time updates via WebSockets, data validation rules, and notification management. The SDK should become the default way of interacting with Kadoa programmatically.
We're working on the Python SDK next. If you need early access, let us know.