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
Python SDK
The official PyPI SDK: monitor calls, async tasks and batches with the same response shapes as the REST API.
Hosted MCP Server
Give Claude, Cursor or any MCP client search and AI-answer tools in one line — no code, no infrastructure.
n8n Community Node
Drop AnswerLine into n8n workflows: run monitors, queue tasks and read credits as native nodes.
Zapier App
Trigger Zaps from AI answers: Run Monitor for quick calls, Create Task with a webhook callback for long-running engines.
LangChain Tools
Ready-made LangChain tools for JavaScript and Python: one monitor tool per engine, plus task and credit tools.