---
title: "Ateliq SDK for JavaScript and TypeScript (npm: ateliq) · Ateliq docs"
description: "The official Ateliq SDK on npm. npm install ateliq, then search ateliq.co, get products, prices, agents and the gold price, and request a demo from Node or the…"
canonical: https://ateliq.co/docs/sdk/
last-updated: 2026-12-04
---

Documentation menu

Integrations and API // 01 23:00

# Ateliq SDK for JavaScript and TypeScript (npm: ateliq)

The official Ateliq SDK on npm. npm install ateliq, then search ateliq.co, get products, prices, agents and the gold price, and request a demo from Node or the browser. Types included, no key.

ateliq is the official JavaScript and TypeScript SDK for the [Ateliq API](https://ateliq.co/docs/api/). It runs in Node 18 or later and any runtime with fetch , includes types, and needs **no key**. Package: [npmjs.com/package/ateliq](https://www.npmjs.com/package/ateliq). The same package has the [Ateliq CLI](https://ateliq.co/docs/cli/).

```
npm install ateliq
```

## Use it

```
const { Ateliq } = require('ateliq');
// or: import { Ateliq } from 'ateliq';

const ateliq = new Ateliq();

const hits = await ateliq.search('virtual try-on mirror');
const pricing = await ateliq.getPricing();
const mirror = await ateliq.getProduct('mirror');
const page = await ateliq.getPage('product/mirror');

for await (const agent of ateliq.paginate((o) => ateliq.listAgents(o))) {
 console.log(agent.name);
}
```

## Request a demo

Only for a person who asked for one. Try it in the sandbox first: new Ateliq({ sandbox: true }) checks the request and answers the same way, but keeps and sends nothing.

```
await ateliq.createDemoRequest(
 { name: 'Asha Rao', email: 'asha@yourbrand.com', brand: 'Your Brand', sells: 'Jewellery' },
 { idempotencyKey: crypto.randomUUID() },
);
```

## Methods

| Method | API |
| search(q, { section, limit, cursor }) | GET /search |
| listPages() , getPage(path) , listSections() | GET /pages , /pages/{path} , /sections |
| listProducts() , getProduct(id) | GET /products , /products/{id} |
| getPricing() | GET /pricing |
| listAgents() , getAgent(id) | GET /agents , /agents/{id} |
| getGoldPrice() | GET /gold-price |
| createDemoRequest(input, { idempotencyKey }) , getDemoRequest(id) | POST /demo-requests , GET /demo-requests/{id} |
| paginate(fn) | Every item of a list, page by page |

Options: baseUrl , sandbox , fetch , userAgent , timeoutMs (default 30 seconds).

## Errors

Every failure throws AteliqError with status , code (see [error codes](https://ateliq.co/docs/api/#errors)), detail (how to fix it), errors (one message for each field) and, on a 429, retryAfter in seconds.

## Also

- [Ateliq CLI](https://ateliq.co/docs/cli/): npx ateliq search "..." .
- [Ateliq MCP server](https://ateliq.co/docs/mcp/): the same answers as MCP tools, remote or as the ateliq-mcp npm package.
- Source and plugins: [GitHub](https://github.com/PWIN-Technologies-Pvt-Ltd/ateliq-agent-plugin).

**Evaluating Ateliq?** See it on your own catalogue in a 30-minute walkthrough, or open our demo store now.

[Book a walkthrough](https://cal.id/nagent/product-walkthrough?duration=30)[Try the live demo](https://ateliq.co/#live-demo)

Something missing or unclear? Write to [pb@ateliq.co](mailto:pb@ateliq.co) and we will answer and fix this page. Last reviewed 12 November 2026.

On this page
- [Use it](#use-it)
- [Request a demo](#request-a-demo)
- [Methods](#methods)
- [Errors](#errors)
- [Also](#also)
