> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parsetx.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Node.js SDK

> Official TypeScript/Node.js client for ParseTx.

## Installation

Install the official client SDK via npm:

```bash theme={null}
npm install @parsetx/sdk
```

*(Note: The global unscoped package name `parsetx` is blocked by the npm registry's typosquatting similarity rules due to its character closeness to the existing package `parse5`. Therefore, the SDK is published under the official organization scope as `@parsetx/sdk`).*

### Standalone Alternative (No Install)

If you prefer not to manage npm dependencies, you can import the standalone ES module directly via the jsDelivr CDN:

```javascript theme={null}
import { ParseTxClient } from 'https://cdn.jsdelivr.net/gh/parsetx/API-Webservices-Nova@main/sdks/node/parsetx.js';
```

## Usage

```javascript theme={null}
import { ParseTxClient } from '@parsetx/sdk';

const client = new ParseTxClient('ptx_live_...');

// Synchronous (up to 10 items)
const response = await client.enrich([
  'AMZN Mktp US*1A2B3C4D5'
]);
console.log(response.results);

// Asynchronous Batch (up to 500 items)
const jobId = await client.enrichAsync([
  // ... 500 items ...
]);

// Poll until complete with built-in backoff
const jobResult = await client.pollJob(jobId);
console.log(jobResult.results);
```
