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. It runs in Node 18 or later and any runtime with fetch, includes types, and needs no key. Package: npmjs.com/package/ateliq. The same package has the Ateliq 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), detail (how to fix it), errors (one message for each field) and, on a 429, retryAfter in seconds.
Also
- Ateliq CLI:
npx ateliq search "...". - Ateliq MCP server: the same answers as MCP tools, remote or as the
ateliq-mcpnpm package. - Source and plugins: GitHub.
Something missing or unclear? Write to pb@ateliq.co and we will answer and fix this page. Last reviewed 12 November 2026.