AnswerLine Sign in Start free

Integrations

TypeScript / JavaScript SDK

The official npm SDK: typed monitor and task methods, batches, webhooks and error classes for Node and edge runtimes.

Install

npm install @answerline/sdk

Example

import { Client } from "@answerline/sdk";

const client = new Client({ apiKey: process.env.API_KEY });
const res = await client.monitor.chatgpt({
  prompt: "What are the best running shoes for flat feet?",
  country: "US",
});
console.log(res.result.text);

Every endpoint is a typed method — monitor calls return the parsed result, task calls return ids you poll or receive by webhook, and batches queue up to 500 requests at once.

Errors are raised as typed classes carrying the API error code and request id, so handling a 429 or a failed task is a catch, not a fetch wrapper.

Other integrations